OpenDTU: tolerate missing radio_stats in energy filter (#33279)

This commit is contained in:
andig 2026-08-29 13:13:32 +02:00 • committed by GitHub
parent 7dd4007cfa
commit 8abae0fd68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,4 +16,5 @@ render: |
energy: energy:
source: http source: http
uri: http://{{ .host }}/api/livedata/status uri: http://{{ .host }}/api/livedata/status
jq: 'if all(.inverters[]; .radio_stats.rssi > -127) then .total.YieldTotal.v else empty end' # 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'