Automaction just triggered and scared my mother-inlaw

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

Does it happen every time with guest mode is turned on, or just this one time?

I have a guest mode input boolean as well, but instead of checking it as a condition in my automations, I have an automation that turns off pre-selected automations when guest mode is turned on. and turns them back on when guest mode is turned off.

1 Like

Its just this one it happens on.
Every day now.

I use guest mode to stop alerts in my house, turning lights on/off.

I had two named very close to each other, i was looking and posting the wrong one that triggered.

:joy: