Sax: fix battery control(#22000)

Co-authored-by: andig <cpuidle@gmail.com>
This commit is contained in:
Jürgen Weber 2025-06-23 14:11:07 +02:00 • committed by GitHub
parent 6de801f861
commit 51d0419253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ render: |
register:
address: 43 # 2Bh battery discharging power [W]
type: writemultiple
encoding: uint32
encoding: uint16
- case: 2 # holding mode puts discharge to 0W
set:
source: const
@ -88,6 +88,6 @@ render: |
register:
address: 43 # 2Bh battery discharging power [W]
type: writemultiple
encoding: uint32
encoding: uint16
capacity: {{ .capacity }} # kWh
{{- end }}