I use ping to detect if the mobiles are at home or not. I would like to create a manual variable to collect if there are people at home or not so that this variable is the one I use in my automations.
That is to create an automation that detects if there are people at home or not by changing at_home from true to false. And having this way already the data of if there are people at home or not… use it as a trigger in new automations, for example if at_home is true turn on the heating.
Can this be done?
I think this is what I need, but I don’t know how to force the status to change its value to match the number of people who are at home via ping. For example as a service it does not appear to me when making an automation.