Przeglądaj źródła

Avatto curtain+light: rearrange optional dps

Latest log shows light present but calibration missing.
This is more reasonable, as it would allow to distinguish from other
curtain-only devices still.  Since the device is obviously not
reliable in which dps it decides to leave out, users are probably
going to have to retry a few times to get it recognised.

Issue #987
Jason Rumney 2 lat temu
rodzic
commit
191c0a8f23

+ 1 - 1
custom_components/tuya_local/devices/avatto_curtain_light.yaml

@@ -31,7 +31,6 @@ secondary_entities:
       - id: 102
       - id: 102
         type: boolean
         type: boolean
         name: switch
         name: switch
-        optional: true
   - entity: select
   - entity: select
     name: Calibration
     name: Calibration
     icon: "mdi:curtains"
     icon: "mdi:curtains"
@@ -40,6 +39,7 @@ secondary_entities:
       - id: 3
       - id: 3
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: start
           - dps_val: start
             value: Start
             value: Start