It allows you to define and then set variables (who’s status survives reboots) via script.
You could essentially build a variable.kids_home and set it to either home or not_home based on the triggers you’d like?
I will say, triggering based on door open / closed could trigger false-positives quite often. Having kids myself, I know they’re always opening the door when friends come over, to go get the mail, etc. Anyhow, just my $.02.
Hello. I’ve tried to update/change a variables value and/or its attributes in node red with call service nod, but it doesn’t work. Node configuration:
Server: Home Assistant
Domain: variable
Service: set_variable
Entity Id: variable.example_123
Data: { “value” : “{{Buterbrod}}”}
And… Debug: “Call-service API error. Error Message: extra keys not allowed @ data[‘entity_id’]”
What should I do to make it work?