Ok, so to start off, I have two automation’s, one that turns on the yard light 30mins before sunset, and one that turns it off at 10pm everyday unless my device is away, an which, it won’t turn off. And in-turn it off manually when I get home at midnight, which is about 2 to 3 days a week.
Now, I have tried searching for similar scenario, but couldn’t really find what I was looking for, and this might be out of the realm of home assistant, but is there anyway to program the light, or any switch for that matter to turn off 10 mins after my device turns from away to home, but only during the times of say 10pm to 1am?
Reason being I live in snow country, and if I have this turn off every 10 mins after I manually turn it on when snow blowing, it might get annoying.
This is what i have for the 10 mins, but I havent got it working yet
- action:
- data:
entity_id: group.garage
service: switch.turn_off
alias: Turn off garage lights 10 minutes after Preston gets home
condition:
- condition: state
entity_id: device_tracker.preston_phone
state: home
id: '1520307492079'
trigger:
- entity_id: device_tracker.preston_phone
for:
minutes: 10
from: away
platform: state
to: home
Thanks for any assistance.
Preston