Skip to content

Commit

Permalink
Add HomeWizard Wi-Fi P1 Meter (evcc-io#7868)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored May 9, 2023
1 parent 8ba05ff commit 1a55d91
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/definition/meter/homewizard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
template: homewizard
products:
- brand: HomeWizard
description:
generic: Wi-Fi P1 Meter
params:
- name: usage
choice: ["grid"]
- name: host
required: true
render: |
type: custom
power:
source: http
uri: http://{{ .host }}/api/v1/data
method: GET
headers:
- content-type: application/json
jq: .active_power_w
energy:
source: http
uri: http://{{ .host }}/api/v1/data
method: GET
headers:
- content-type: application/json
jq: '[to_entries[] | select(.key|startswith("total_power_import_t")) | .value] | add'
10 changes: 10 additions & 0 deletions templates/docs/meter/homewizard_0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
product:
brand: HomeWizard
description: Wi-Fi P1 Meter
render:
- usage: grid
default: |
type: template
template: homewizard
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
1 change: 1 addition & 0 deletions templates/evcc.io/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"GoodWe",
"Growatt",
"Homematic IP",
"HomeWizard",
"Huawei",
"inepro",
"Janitza",
Expand Down

0 comments on commit 1a55d91

Please sign in to comment.