Hi Guys,
Am currently new to Home Assistant, am trying to move away from Samsung Smartthings, however am having issue with my motion lighting setup.
I’ve managed to get the lighting working with motion detect, however its not fully what i need.
I would like the light to go on if a motion is detected with condition of
- between Sunset and Sunrise
- If the light state is off (manual override)
Then turn it on.
But also at 23:00 (11:00pm) to Sunrise, i would like the light to reduce brightness to 20%.
If the light is switched on manual and motion is detected then do noting. This part i cant get it working, the motion overrides it and turns it off.
Also from Sunset to 22:59 10:59pm) increase the brightness to 100%.
Am also having issue with the motion timing, it doesn’t carry out the task in the time specified.
Please see my code below, i have striped it all back to just working with motion only:
- id: '1610238984385'
alias: Night light on motion (On)
description: ''
trigger:
- platform: state
entity_id: binary_sensor.aeon_multipurpose_sensor_motion
to: 'on'
condition:
- condition: state
entity_id: light.hue_lightstrip_plus_2_2
state: 'off'
action:
- service: light.turn_on
data: {}
entity_id: light.hue_lightstrip_plus_2_2
mode: single
- id: '1610239347729'
alias: Night light on motion (Off)
description: ''
trigger:
- platform: state
entity_id: binary_sensor.aeon_multipurpose_sensor_motion
to: 'off'
for: 00:00:30
condition: []
action:
- service: light.turn_off
data: {}
entity_id: light.hue_lightstrip_plus_2_2
mode: single
Please help!