فهرست منبع

fix(lsc_smart_ceiling_light): expose mode as select entity

Apparently required to switch out of scene mode

PR #2359
Jason Rumney 12 ساعت پیش
والد
کامیت
51dcae13fa
1فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  1. 15 0
      custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

+ 15 - 0
custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

@@ -72,6 +72,21 @@ entities:
           max: 1000
         mask: "00000000FFFF"
 
+  - entity: select
+    translation_key: mode
+    category: config
+    dps:
+      - id: 21
+        type: string
+        name: option
+        mapping:
+          - dps_val: white
+            value: White
+          - dps_val: colour
+            value: Colour
+          - dps_val: scene
+            value: Scene
+
   - entity: select
     translation_key: initial_state
     category: config