Hi all,
I’m trying to create a Home Assistant automation setup with the following behavior:
- A motion sensor should automatically turn on and off a light.
- However, if a physical light switch (ZBMINIL2, connected via Zigbee2MQTT) is used to toggle the light manually, I want that action to override the motion automation for a period of time (e.g., 30 minutes).
- After that time, the motion automation can take back control.
I’m not sure how best to structure the automations to:
- Detect manual toggles from the ZBMINIL2 and activate the override
- Prevent the motion sensor from controlling the light during the override period
- Resume motion automation after the override times out
Has anyone implemented something similar or have advice on how to handle the override logic cleanly?
Thanks in advance!