I would like to have logic called "anyone in home?" etc. and call / read it from automations. What is the right approach?
If I want to make change in logic I want to make the change in 1 place wit effect on all automations.
What is the right approach in HA?
By intuition I would use saved templates, but something like this doesn't exist. Scripts don't return values. BluePrint is pain in the .....
Should I make automation which as a result will change my custom entity? This is the only solution which come into my mind.