Want to make a temporary solution for now.
Just a simple button on the frontend - Coming home.
This would trigger events and so could be a simple script call but… I also want to check for some conditions (temperature in the house) and do some maths (pass the google travelling time - 30 minutes for the script to start).
But couldn’t find the solution to trigger the automation from the front-end. An option of course is to use an input boolean. But 2 states it provides (on/off) are not needed. So any other options?
Scripts have an activate button on the front end. Press it and the script runs.
But, by the sound of it, you could be using an automation to fire it based on proximity instead?
Exactly - i could fire up an automation, but will lose the ability to use for conditions (temp above certain level).
It is a proximity automation. I will use the google travel time to determine arrival home and a/c’s will switch on 15 minutes prior to arrival. So just need a simple button to tell HA i’m going home. So i can press it and tell HA my intensions.
Why do you need to tell it you’re going home in a day? Will it not work it out itself by proximity?
Well it’s worth checking out but currently i can think of a lot of scenarios when it will have false positives. And i guess it’s for another topic. This one can be named a simple way to fire off automation with a single button on the frontend