evcc-io/templates/definition/meter/hoymiles-opendtu.yaml

20 lines
598 B
YAML

template: hoymiles-opendtu
products:
- brand: Hoymiles
description:
generic: HM & HMS Series (via OpenDTU)
params:
- name: usage
choice: ["pv"]
- name: host
render: |
type: custom
power:
source: http
uri: http://{{ .host }}/api/livedata/status
jq: .total.Power.v
energy:
source: http
uri: http://{{ .host }}/api/livedata/status
# skip partial sums until all inverters are contacted; radio_stats needs firmware 2024.10.22+
jq: 'if all(.inverters[]; .radio_stats.rssi == null or .radio_stats.rssi > -127) then .total.YieldTotal.v else empty end'