Skip to content

Commit

Permalink
feat: Add Timed Programs control settings - Sofar G3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Dec 22, 2024
1 parent 1a3c0c6 commit 75a2ca5
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions custom_components/solarman/inverter_definitions/sofar_g3hyd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1395,3 +1395,80 @@ parameters:
- key: 6
value: "Generator"
icon: "mdi:power-settings"

- group: Settings
update_interval: 300
items:
- name: "Timed Program"
platform: number
rule: 1
registers: [0x11111]
configurable:
mode: box
range:
min: 0
max: 3

- name: Timed Control
platform: select
rule: 1
registers: [0x1112]
lookup:
- key: 0
value: "Disable"
- key: 1
value: "Charge"
- key: 2
value: "Discharge"
- key: 3
value: "Both"

- name: Timed Charge Start
platform: time
rule: 9
registers: [0x1113]

- name: Timed Charge End
platform: time
rule: 9
registers: [0x1114]

- name: Timed Discharge Start
platform: time
rule: 9
registers: [0x1115]

- name: Timed Discharge End
platform: time
rule: 9
registers: [0x1116]

- name: "Timed Charge Power"
platform: number
class: "power"
state_class: "measurement"
uom: "W"
rule: 1
registers: [0x1117, 0x1118]
range:
min: 0
max: 4294967296

- name: "Timed Discharge Power"
platform: number
class: "power"
state_class: "measurement"
uom: "W"
rule: 1
registers: [0x1119, 0x111A]
range:
min: 0
max: 4294967296

- name: Timed Set Program
platform: button
class: restart
rule: 0
code:
write: 0x06
registers: [0x111F]

0 comments on commit 75a2ca5

Please sign in to comment.