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

Arknoah aquarium light: split switch out from Blue light

Switch does not seem to work when combined with Blue light.
Leave the switch as a separate entity for now until more is known.

Issue #2941
Jason Rumney 1 год назад
Родитель
Сommit
619fa41af9
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      custom_components/tuya_local/devices/arknoah_aquarium_lights.yaml

+ 6 - 3
custom_components/tuya_local/devices/arknoah_aquarium_lights.yaml

@@ -4,12 +4,15 @@ products:
     manufacturer: Arknoah
     model: 165W 3 channel
 entities:
-  - entity: light
-    name: Blue
+  - entity: switch
+    category: config
     dps:
       - id: 20
         type: boolean
-        name: switch
+        name: switch        
+  - entity: light
+    name: Blue
+    dps:
       - id: 21
         name: effect
         type: string