Quellcode durchsuchen

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 vor 2 Jahren
Ursprung
Commit
af121e93f1

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

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