HomeAssistant Light after sunset via motion and light always off after time

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

GitHub Link Click Here

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).

What is needed

  • An entity from the domain light
  • An entity of the domain binary_sensor and Device_Class Motion

Has been tested with

  • ELTAKO EnOcean FSR14_4x (Light)
  • ELTAKO EnOcean FTS14EM (Input from motion detector)

Example

Motion
Motion detected - light on
End of movement - light off
End

Light on through something
The light was switched on. (By something)
Possibility 1: Light was switched off by something.
Possibility 2: Light is switched off after time X.
End

Otherwise
The right path is run through if it was not dark enough but the motion detector was triggered.

1 Like