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

Loycco sound nightlight

DP 1 does not seem to be a master power switch, so don't expose it as a switch.
Issue #1042
Jason Rumney 2 лет назад
Родитель
Сommit
8d4505cfdd
1 измененных файлов с 4 добавлено и 13 удалено
  1. 4 13
      custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

+ 4 - 13
custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

@@ -51,20 +51,11 @@ primary_entity:
           range:
           range:
             min: 0
             min: 0
             max: 1000
             max: 1000
+    - id: 1
+      type: boolean
+      name: power
+      optional: true
 secondary_entities:
 secondary_entities:
-  - entity: switch
-    name: Power
-    icon: "mdi:power-standby"
-    category: config
-    dps:
-      - id: 1
-        type: boolean
-        name: switch
-        optional: true
-        mapping:
-          - dps_val: null
-            value: false
-            hidden: true
   - entity: select
   - entity: select
     name: Light mode
     name: Light mode
     icon: "mdi:lightbulb-question"
     icon: "mdi:lightbulb-question"