Bläddra i källkod

Advanced Fires 1500: make many dps optional.

When the device is off, and maybe depending on other settings, some
dps are not sent, compared with the log in the original report.

#1177
Jason Rumney 2 år sedan
förälder
incheckning
af121e93f1

+ 4 - 0
custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml

@@ -19,6 +19,7 @@ primary_entity:
       range:
       range:
         min: 16
         min: 16
         max: 30
         max: 30
+      optional: true
       mapping:
       mapping:
         - constraint: temperature_unit
         - constraint: temperature_unit
           conditions:
           conditions:
@@ -57,6 +58,7 @@ primary_entity:
       name: temp_set_f
       name: temp_set_f
       type: integer
       type: integer
       hidden: true
       hidden: true
+      optional: true
       range:
       range:
         min: 32
         min: 32
         max: 104
         max: 104
@@ -102,6 +104,7 @@ secondary_entities:
         range:
         range:
           min: 0
           min: 0
           max: 100
           max: 100
+        optional: true
         mapping:
         mapping:
           - scale: 0.392
           - scale: 0.392
       - id: 109
       - id: 109
@@ -127,6 +130,7 @@ secondary_entities:
       - id: 105
       - id: 105
         name: effect
         name: effect
         type: string
         type: string
+        optional: true
         mapping:
         mapping:
           - dps_val: mode1
           - dps_val: mode1
             value: M
             value: M