Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update huawei-sun2000.yaml #17695

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions templates/definition/meter/huawei-sun2000.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,26 @@ render: |
switch:
- case: 1 # normal
set:
source: const
value: 0 # stop
source: sequence
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 47100 # Forcible charge/discharge
type: writesingle
encoding: uint16
- source: const
value: 0 # stop
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 47100 # Forcible charge/discharge
type: writesingle
encoding: uint16
- source: const
value: 0 # Disable
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 47087 # Charge from grid
type: writesingle
encoding: uint16
- case: 2 # hold
set:
source: sequence
Expand Down
Loading