Make this match any kind of simple single DP curtain switch, whether the controls are ("1", "2", "3"), ("open", "close", "stop"), or ("ZZ", "FZ", "STOP"). PR #646
@@ -1,7 +1,9 @@
-name: LoraTap curtain switch
+name: Simple curtain switch
product:
- id: tuh2eatk4hsq336s
- name: SC500W-V1
+ name: Loratap SC500W-V1
+ - id: hwbhrbadjynv7w70
+ name: Zemismart ZM16L
primary_entity:
entity: cover
class: blind
@@ -10,9 +12,28 @@ primary_entity:
name: control
type: string
mapping:
- - dps_val: "1"
- value: open
- - dps_val: "2"
- value: close
- - dps_val: "3"
- value: stop
+ - conditions:
+ - dps_val: [ "1", "2", "3" ]
+ mapping:
+ - dps_val: "1"
+ value: open
+ - dps_val: "2"
+ value: close
+ - dps_val: "3"
+ value: stop
+ - dps_val: [ "open", "close", "stop" ]
+ - dps_val: open
+ - dps_val: close
+ - dps_val: stop
+ - dps_val: [ "ZZ", "FZ", "STOP" ]
+ - dps_val: ZZ
+ - dps_val: FZ
+ - dps_val: STOP