Skip to content

Commit

Permalink
fix: Deye Time of Use dictionary values
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Sep 28, 2024
1 parent cdcb28e commit 598cc43
Show file tree
Hide file tree
Showing 16 changed files with 162 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ parameters:
- name: "Device State"
rule: 1
registers: [0x09C4]
icon: "mdi:information"
icon: "mdi:state-machine"
lookup:
- key: 0
value: "Init"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x003B]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x003B]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand Down
22 changes: 11 additions & 11 deletions custom_components/solarman/inverter_definitions/deye_hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x003B]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand Down Expand Up @@ -1387,25 +1387,25 @@ parameters:
lookup:
- key: 0x0000
value: "Disabled"
- key: 0x0001
- key: 0x0003
value: "Monday"
- key: 0x0002
- key: 0x0005
value: "Tuesday"
- key: 0x0004
- key: 0x0009
value: "Wednesday"
- key: 0x0008
- key: 0x0011
value: "Thursday"
- key: 0x0010
- key: 0x0021
value: "Friday"
- key: 0x0020
- key: 0x0041
value: "Saturday"
- key: 0x0040
- key: 0x0081
value: "Sunday"
- key: 0x001F
- key: 0x003F
value: "Weekdays"
- key: 0x0060
- key: 0x00C1
value: "Weekend"
- key: 0x007F
- key: 0x00FF
default:
value: "Enabled"

Expand Down
24 changes: 12 additions & 12 deletions custom_components/solarman/inverter_definitions/deye_sg01hp3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -757,25 +757,25 @@ parameters:
lookup:
- key: 0x0000
value: "Disabled"
- key: 0x0001
- key: 0x0003
value: "Monday"
- key: 0x0002
- key: 0x0005
value: "Tuesday"
- key: 0x0004
- key: 0x0009
value: "Wednesday"
- key: 0x0008
- key: 0x0011
value: "Thursday"
- key: 0x0010
- key: 0x0021
value: "Friday"
- key: 0x0020
- key: 0x0041
value: "Saturday"
- key: 0x0040
- key: 0x0081
value: "Sunday"
- key: 0x001F
- key: 0x003F
value: "Weekdays"
- key: 0x0060
- key: 0x00C1
value: "Weekend"
- key: 0x007F
- key: 0x00FF
default:
value: "Enabled"

Expand Down Expand Up @@ -1620,7 +1620,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x01F4]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand All @@ -1646,7 +1646,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x0228]
icon: "mdi:information"
icon: "mdi:directions-fork"
lookup:
- key: 0x0000
value: "Off"
Expand Down
24 changes: 12 additions & 12 deletions custom_components/solarman/inverter_definitions/deye_sg04lp3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -755,25 +755,25 @@ parameters:
lookup:
- key: 0x0000
value: "Disabled"
- key: 0x0001
- key: 0x0003
value: "Monday"
- key: 0x0002
- key: 0x0005
value: "Tuesday"
- key: 0x0004
- key: 0x0009
value: "Wednesday"
- key: 0x0008
- key: 0x0011
value: "Thursday"
- key: 0x0010
- key: 0x0021
value: "Friday"
- key: 0x0020
- key: 0x0041
value: "Saturday"
- key: 0x0040
- key: 0x0081
value: "Sunday"
- key: 0x001F
- key: 0x003F
value: "Weekdays"
- key: 0x0060
- key: 0x00C1
value: "Weekend"
- key: 0x007F
- key: 0x00FF
default:
value: "Enabled"

Expand Down Expand Up @@ -1585,7 +1585,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x01F4]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand All @@ -1611,7 +1611,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x0228]
icon: "mdi:information"
icon: "mdi:directions-fork"
lookup:
- key: 0x0000
value: "Off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x003B]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ parameters:
value: "Grid Peak Shift"
- key: 2
value: "Battery Priority (Storm Watch)"
icon: "mdi:cog-outline"
icon: "mdi:state-machine"

- name: "Temperature"
class: "Temperature"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x0200]
icon: "mdi:state-machine"
lookup:
- key: 0
value: "Standby"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x0000]
icon: "mdi:state-machine"
lookup:
- key: 0x0000
value: "Standby"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ parameters:
class: "enum"
rule: 1
registers: [0x0404]
icon: "mdi:information"
icon: "mdi:state-machine"
range:
min: 0
max: 7
Expand Down
Loading

0 comments on commit 598cc43

Please sign in to comment.