ソースを参照

feat (lights controlled by effect): mark a default value for turn on

- breville_smartmistglowconnect_humidifier: turn on as Colourful when
  no parameter to turn_on
- motion_sensor_light: turn on as mode_on (manual) when no parameter
  to turn_on
Jason Rumney 2 ヶ月 前
コミット
5e4ee00c61

+ 1 - 0
custom_components/tuya_local/devices/breville_smartmistglowconnect_humidifier.yaml

@@ -54,6 +54,7 @@ entities:
             value: "off"
           - dps_val: colourful
             value: Colourful
+            default: true
           - dps_val: mint_green
             value: Mint green
           - dps_val: sunset_yellow

+ 1 - 0
custom_components/tuya_local/devices/motion_sensor_light.yaml

@@ -22,6 +22,7 @@ entities:
             value: auto
           - dps_val: mode_on
             value: "on"
+            default: true
       - id: 102
         type: boolean
         name: switch