Skip to content

Instantly share code, notes, and snippets.

@LHBL2003
LHBL2003 / HomeAssistant_Light_after_sunset_via_motion_and_light_always_off_after_time.yaml
Last active February 3, 2024 19:15
Home Assistant - Switch light on after sunset via motion detector for time X and light always off after time Y (if it was switched on by something).
blueprint:
name: HomeAssistant Light after sunset via motion and light always off after time
description: >
# HomeAssistant Light after sunset via motion and light always off after time
**Version: 0.1**
**The Automation Process:**
- Switches the light on for a time X when movement is detected. But only when the sun has set far enough.
- And if the light was switched on by something else, the light is switched off after Y minutes. (No button or similar may be specified).