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

Simple switch with timer V2: add compatible CB2S model

Add attributes for inching, cycle and random timers (complex data formats)

Issue #2952
Jason Rumney 1 год назад
Родитель
Сommit
b6b4ba483c
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      custom_components/tuya_local/devices/simple_switch_timerv2.yaml

+ 14 - 0
custom_components/tuya_local/devices/simple_switch_timerv2.yaml

@@ -15,12 +15,18 @@ products:
     name: Outdoor smartplug
   - id: uyvxoqhmac1dhvlm
     manufacturer: Moes House
+  - id: a1yn4awusjnwmmvj
+    model: CB2S
 entities:
   - entity: switch
     dps:
       - id: 1
         name: switch
         type: boolean
+      - id: 44
+        name: inching
+        type: string
+        optional: true
   - entity: number
     category: config
     class: duration
@@ -36,6 +42,14 @@ entities:
         mapping:
           - scale: 60
             step: 60
+      - id: 42
+        name: cycle_timer
+        type: string
+        optional: true
+      - id: 43
+        name: random_timer
+        type: string
+        optional: true
   - entity: select
     translation_key: initial_state
     hidden: unavailable