so i am trying to make an automation that when i get home it turns on an input Boolean for 30 mins and the main automation is supposed to keep checking the input Boolean as long as its turned on and the and if condition is met the rest of the automation should happen but im having problems with the trigger as it only checks the boolean once and i would like it to keep checking as long as the Boolean is turned on
#arriving home, automation
1 messages · Page 1 of 1 (latest)
What's the ultimate goal? Do you want the first automation to trigger if the door is opened while the boolean is on?
so i want when i get home for the lights to turn on
It sounds like you maybe want to swap the trigger and condition in the automation with the door and the boolean
So, when the contact sensor is opened (trigger), and if the boolean is on (condition)
The way I approached this was to use proximity integration: https://www.home-assistant.io/integrations/proximity/
You set your home as the distance to, the device/person and it will give you entities such as distance from the distance to (in this case home) and direction of travel will say if you're heading towards, away, arrived, etc.
With that set up, you can create an automation to say if you're x metres from your home, add a condition to say towards then fire your automation.
The downside to this is you'd need to setup a proximity for each device/person and location you want to to track the distance from. E.g one for myself and home, myself and work, partner and home, partner and their work, etc to track individuals or myself, partner and home as a combined sensor.
I've attached an example of a proximity integration and here's my automation using the integration: https://github.com/dannytsang/homeassistant-config/blob/65c708782b7e3f76596f5fa5738035dc76be48f1/packages/tracker.yaml#L59
I just use our security system state for home/away
ok so i switched it to turn on the lights when the door is open if the lights are off but i cannot get the actions to run i am getting this error
i got it to work the problem was that i had the step also set to active which when i disabled it it worked is there anyway to have it so that the light fades in overe 10 seconds as i cant seem to get it to work
Check the transition check box and set the time field to 10