Context
Since the AC in our bedroom isn’t too powerful, but very old and energy-hungry, it doesn’t matter if we run it all day or if we don’t, the next morning our bedroom ends up feeling the same in terms of temperature and stuffiness. No if nobody is going to be home for the rest of the day, I don't want tons of power wasted running it.
Goal
I want to create an actionable notification automation for when Home Assistant notices that my wife and I are out of the house. It will ask us both if we want to still allow the bedroom AC to run, and if both of us say no, any automations that turn it on for us won’t trigger for the rest of the day. But if either of us say yes, then home assistant will continue to automate the bedroom AC so it’s nice and cool when that person gets home later.
Setup (so far)
The automation will trigger if the AC is turned on but HA notices nobody's home. I have a switch helper called Allow Bedroom AC. This has to be on or else automations won't start the AC. I set up a number helper Vote. Yes will raise it and No does nothing, so if Vote is not 0 at the end, Allow Bedroom AC will turn back on.
Here's a human readable breakdown of the desired automation setup.
#Part 1
• SetVoteto 0.
• Turn offAllow Bedroom AC.
• Send Actionable notifications to Husband and Wife
Looks like Nobody's Home?
Should the AC still run?
YesNo#Part 2 (THE PROBLEMATIC PART)
• Wait for Trigger (1st vote)
• Wait for Trigger (2nd vote)#Part 3
• IfVote> -0, turn onAllow Bedroom AC
else, do nothing.
• Notify Husband and Wife of the results.
I need Wait for Trigger to be listening for either UPVOTE or DOWNVOTE, not just one or the other. I've tried a few ways of changing the data field on Wait for Trigger, but everything I tried seemed to just make it unresponsive.