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

Create fan: match even when the fan and light are off.

Issue #2383
Jason Rumney 1 год назад
Родитель
Сommit
20c122446c
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      custom_components/tuya_local/devices/create_fan_light.yaml

+ 3 - 0
custom_components/tuya_local/devices/create_fan_light.yaml

@@ -10,12 +10,14 @@ primary_entity:
       name: switch
     - id: 62
       type: integer
+      optional: true
       name: speed
       range:
         min: 1
         max: 6
     - id: 63
       type: string
+      optional: true
       name: direction
 secondary_entities:
   - entity: light
@@ -30,6 +32,7 @@ secondary_entities:
       - id: 23
         name: color_temp
         type: integer
+        optional: true
         range:
           min: 0
           max: 1000