To match other brands using the same dps layout, the initial state needs to accept both "0", "1", "2" values and the common "off", "on", "memory" values. Issue #962
@@ -2,6 +2,8 @@ name: Wall switch
products:
- id: nqodepctqralr6su
name: Novadigital switch
+ - id: vxo9yezswiumvync
+ name: PST WT-E1
primary_entity:
entity: switch
dps:
@@ -33,12 +35,23 @@ secondary_entities:
name: option
optional: true
mapping:
- - dps_val: "0"
- value: "Off"
- - dps_val: "1"
- value: "On"
- - dps_val: "2"
- value: Last state
+ conditions:
+ - dps_val: ["0", "1", "2"]
+ mapping:
+ - dps_val: "0"
+ value: "Off"
+ - dps_val: "1"
+ value: "On"
+ - dps_val: "2"
+ value: Last state
+ - dps_val: ["memory", "off", "on"]
+ - dps_val: "off"
+ - dps_val: "on"
+ - dps_val: memory
- entity: light
name: Backlight
category: config