Hello,
I have question about and automation I created. The first one turns on the light when movement is detected after sunset, the second one turns the light off when the motion sensor detects no more motion.
- id: '0022'
hide_entity: false
alias: motion-detection-kueche-on
trigger:
- entity_id: sensor.vision_zp3111_multisensor_4in1_burglar
platform: state
to: '8'
condition:
condition: and
conditions:
- condition: sun
after: 'sunset'
after_offset: "01:00:00"
- condition: state
entity_id: light.kueche_led
state: 'off'
action:
- service: scene.turn_on
entity_id: scene.kueche_alle_led_dim
- id: '0023'
hide_entity: false
alias: motion-detection-kueche-off
trigger:
- entity_id: sensor.vision_zp3111_multisensor_4in1_burglar
platform: state
to: '0'
condition: []
action:
- service: light.turn_off
entity_id: light.kueche_led
So far so good, as this works for me.
Now my problem: If I turn on the light manually over the UI and want it to stay on, how can I prevent the automation from turning it off, when there is no movement in the kitchen?
Is there any condition like “light turned on via UI” I can use?