Skip to content

Commit

Permalink
DSMR: add mhendriks P1 dongle meter (#15928)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronajon authored Sep 7, 2024
1 parent d9db30c commit be4fd33
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ asset-stats.html
/playwright-report/
/playwright/.cache/
.gitpod.yml
/evcc.db
34 changes: 26 additions & 8 deletions templates/definition/meter/slimmelezer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,27 @@ products:
- brand: ESPHome
description:
generic: DSMR
- brand: mhendriks
description:
generic: P1 dongle
params:
- name: usage
choice: ["grid"]
- name: scale
example: 1 | 10 | 100 | 1000
default: 1000
required: true
advanced: true
description:
de: Skalierungsfaktor
en: Scale factor
help:
de: |
Verwenden Skala von 1000 für Zuidwijk Slimmelezer.
Verwenden Skala 1 für ESPHome DSMR und mhendriks P1 Dongle
en: |
Use scale of 1000 for Zuidwijk Slimmelezer.
Use scale 1 for ESPHome DSMR and mhendriks P1 Dongle
- name: host
render: |
type: custom
Expand All @@ -20,13 +38,13 @@ render: |
headers:
- content-type: application/json
jq: .value
scale: 1000
scale: {{ .scale }}
- source: http
uri: http://{{ .host }}/sensor/power_returned
headers:
- content-type: application/json
jq: .value
scale: -1000
scale: -{{ .scale }}
energy:
source: calc
add:
Expand Down Expand Up @@ -64,38 +82,38 @@ render: |
headers:
- content-type: application/json
jq: .value
scale: 1000
scale: {{ .scale }}
- source: http
uri: http://{{ .host }}/sensor/power_returned_l1
headers:
- content-type: application/json
jq: .value
scale: -1000
scale: -{{ .scale }}
- source: calc
add:
- source: http
uri: http://{{ .host }}/sensor/power_delivered_l2
headers:
- content-type: application/json
jq: .value
scale: 1000
scale: {{ .scale }}
- source: http
uri: http://{{ .host }}/sensor/power_returned_l2
headers:
- content-type: application/json
jq: .value
scale: -1000
scale: -{{ .scale }}
- source: calc
add:
- source: http
uri: http://{{ .host }}/sensor/power_delivered_l3
headers:
- content-type: application/json
jq: .value
scale: 1000
scale: {{ .scale }}
- source: http
uri: http://{{ .host }}/sensor/power_returned_l3
headers:
- content-type: application/json
jq: .value
scale: -1000
scale: -{{ .scale }}

0 comments on commit be4fd33

Please sign in to comment.