I'm trying to set my bathroom light to turn on a very dim setting when motion sensor is triggered and Bedtime input boolean is on. What I'm seeing is the lights initially turn on to normal daytime brightness and then dimming to the correct level. How can I get it so it initially turns on to the correct levels without starting out in daytime level? @stuck turtle you helped me with this a few years ago but the dpaste is expired.
#Bathroom light briefly turns on to daytime brightness state before switching to dim Bedtime mode
1 messages · Page 1 of 1 (latest)
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.hue_motion_sensor_3_motion
- binary_sensor.hue_motion_sensor_4_motion
to: "on"
condition:
- condition: state
entity_id: input_boolean.sleep
state: "on"
- condition: state
entity_id: input_boolean.master_bathroom_motion_sensor
state: "on"
action:
- service: light.turn_on
target:
entity_id: light.master_bathroom
data:
color_temp: 420
brightness: 20
mode: single
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.hue_motion_sensor_3_motion
- binary_sensor.hue_motion_sensor_4_motion
to: "on"
condition:
- condition: state
entity_id: input_boolean.sleep
state: "off"
- condition: state
entity_id: input_boolean.master_bathroom_motion_sensor
state: "on"
action:
- service: light.turn_on
target:
entity_id: light.master_bathroom
data:
color_temp: 255
brightness: 255
mode: single