Browse Source

GE Jasco toggle switch: add almost compatible Loratap switch

Issue #1446

- added timer as optional, as this is supported on the Loratap model, but
  apparently not GE Jasco.
Jason Rumney 1 year ago
parent
commit
4f5be59b7f

+ 20 - 1
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml

@@ -1,8 +1,11 @@
 # Example DPS Status
 # {'dps': {'1': False, '14': 'memory', '15': 'relay', '106': '3way_switch'}}
-name: GE Jasco Ultra Pro Toggle Switch
+name: Toggle switch
 products:
   - id: 7kvomtxxfqcrbiqq
+    name: GE Jasco Ultra Pro
+  - id: nobhkdmuof1zhgle
+    name: Loratap QCRR400W-WB2S
 primary_entity:
   entity: light
   dps:
@@ -38,3 +41,19 @@ secondary_entities:
             value: Indicate switch location
           - dps_val: relay
             value: Indicate switch on/off
+  - entity: number
+    translation_key: timer 
+    category: config
+    dps:
+      - id: 7
+        type: integer
+        optional: true
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - dps_val: null
+          - scale: 60
+            step: 60