Explorar el Código

feat(minoston_timer_switch): make active timer selectable

Was originally implemented as a sensor, as the details of how the device worked
on #2013 were unclear.

Issue #5724
Jason Rumney hace 19 horas
padre
commit
b6985f6249
Se han modificado 1 ficheros con 24 adiciones y 0 borrados
  1. 24 0
      custom_components/tuya_local/devices/minoston_timer_switch.yaml

+ 24 - 0
custom_components/tuya_local/devices/minoston_timer_switch.yaml

@@ -95,7 +95,31 @@ entities:
         range:
           min: 0
           max: 100
+  - entity: select
+    name: Active timer
+    icon: "mdi:timer-cog"
+    category: config
+    dps:
+      - id: 108
+        type: integer
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: None
+          - dps_val: 1
+            value: Preset 1
+          - dps_val: 2
+            value: Preset 2
+          - dps_val: 3
+            value: Preset 3
+          - dps_val: 4
+            value: Preset 4
+          - dps_val: 5
+            value: Preset 5
+          - dps_val: 6
+            value: Preset 6
   - entity: sensor
+    deprecated: select_active_timer  # 2026-07-30
     name: Active timer
     class: enum
     category: diagnostic