so i have a automation to turn on the LED uplighter if the sun goes and this and that, but guest mode (input boolean) has to be off.
But at 15:17 it triggered. even tho guest mode (input boolean) is set to on.
Am i loosing my mind ?
Can someone just quickly run there eye over my automation.
- alias: Turn LEDUpLighter on when someone comes in after the sun gets dim and the main light is not already on
initial_state: 'on'
trigger:
- platform: state
entity_id: sensor.sn1_pir
from: 'standby'
to: 'motion detected'
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: numeric_state
entity_id: sensor.sn1_ldr
above: 800
- condition: numeric_state
entity_id: sun.sun
value_template: '{{ state.attributes.elevation }}'
below: 3.5
- condition: time
after: '06:00:00'
before: '22:00:00'
- condition: state
entity_id: light.led_uplighter
state: 'off'
action:
- service: scene.turn_on
entity_id: scene.ComingHome