Преглед изворни кода

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

Issue #2383
Jason Rumney пре 1 година
родитељ
комит
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
       name: switch
     - id: 62
     - id: 62
       type: integer
       type: integer
+      optional: true
       name: speed
       name: speed
       range:
       range:
         min: 1
         min: 1
         max: 6
         max: 6
     - id: 63
     - id: 63
       type: string
       type: string
+      optional: true
       name: direction
       name: direction
 secondary_entities:
 secondary_entities:
   - entity: light
   - entity: light
@@ -30,6 +32,7 @@ secondary_entities:
       - id: 23
       - id: 23
         name: color_temp
         name: color_temp
         type: integer
         type: integer
+        optional: true
         range:
         range:
           min: 0
           min: 0
           max: 1000
           max: 1000