danobot / entity-controller

Home Assistant Entity and lighting controller for managing devices with timers, scripts, and sun-based time restrictions.
https://danobot.github.io/ec-docs/
GNU General Public License v3.0
299 stars 40 forks source link

When there is no motion for x mins then turn off #319

Closed Winzy54 closed 9 months ago

Winzy54 commented 9 months ago

hello. is it possible to use this for:

when there is no motion for x mins then turn of the light, but if during that x mins there was again a motion then the timer should restart again and start counting x mins.

so basically the results should be that only when there was no motion at all for x mins then turn off a light.

thanks in advnace

matmoeh commented 9 months ago

Hi, Try this:

sensor_type: duration
sensor_resets_timer: True