Просмотр исходного кода

feat(simple_dual_switch_timer): add compatible Steren SHOME-110

- add dp 14 initial_state select as optional extra
- left cycle time, random time and inching (dps 17-19), as these are on non-standard dps
  so most likely do not have wide support, and there is nothing useful we can do with them.

Issue #5996
Jason Rumney 2 дней назад
Родитель
Сommit
99303e7c9f
1 измененных файлов с 27 добавлено и 0 удалено
  1. 27 0
      custom_components/tuya_local/devices/simple_dual_switch_timer.yaml

+ 27 - 0
custom_components/tuya_local/devices/simple_dual_switch_timer.yaml

@@ -4,6 +4,9 @@ products:
   - id: ittunrhd
     manufacturer: Outsmart
     model: ZS3LCBCIO
+  - id: key5ckdnys3pqgec
+    manufacturer: Steren
+    model: SHOME-110
 entities:
   - entity: switch
     translation_key: switch_x
@@ -45,3 +48,27 @@ entities:
         range:
           min: 0
           max: 86400
+  - entity: select
+    translation_key: initial_state
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 14
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+          - dps_val: memory
+            value: memory
+      - id: 14
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true