Hi,
I spent the night investigating how I could re-trigger my motion sensor in an automation or script.
My setup so far looks like:
If motion detected → check if its night (or dark due to closed covers) and then run a script which turns on ambient light in the kitchen and switch it off after 4 mins again.
It works fine but it’s pretty inflexible because if I need to do nurse my coffee machine in the early morning it could easily take more than 4 minutes. On the other hand, if I get up during night and just go down for a glass of water it takes not more than 30 secs.
Du you have a good approach/blue print how I can retrigger the sensor time? It would be ideal if the light turns out after 2 mins without motion.
i.e. The ambient light is also used by default wall switches and during daytime/evening.
Thanks for your hints in advance