Przeglądaj źródła

Arlec panel heater v2: make preset_mode optional

Preset mode seems to be not reported when the device is off.
Make it optional so device can be detected.

Discussion #1544
Jason Rumney 2 lat temu
rodzic
commit
9d23683253

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

@@ -27,6 +27,7 @@ primary_entity:
     - id: 4
     - id: 4
       name: preset_mode
       name: preset_mode
       type: string
       type: string
+      optional: true
       mapping:
       mapping:
         - dps_val: ECO
         - dps_val: ECO
           value: eco
           value: eco
@@ -34,6 +35,8 @@ primary_entity:
           value: comfort
           value: comfort
         - dps_val: Antifrost
         - dps_val: Antifrost
           value: away
           value: away
+        - dps_val: null
+          value: unknown
 secondary_entities:
 secondary_entities:
   - entity: lock
   - entity: lock
     name: Child lock
     name: Child lock