Hey HA automation geeks, since winter is approaching, I've turned the piggy bank upside down and out fell enough money to outfit all my windows and doors with sensors, as well as replace all my ancient expanding-oil thermostats with digital ones.
I've got a nice setup to disable those whenever an external door is opened, and it's working nicely enough.
Now what I want to do is, propagate the off or on command to adjacent rooms if the internal doors are open. That is to say, if a window gets opened in the living room, and the door to the hallway is open, I want the thermostat in the hallway to turn off too.
I think the best way to do that would be to set a semaphore variable in the living room automation and use that together with the hallway door sensor as a trigger for the automation controlling the thermostat in the hallway and so on.
Now the fear that I have is that the system might get stuck or disjuncted if the conditions change in an unexpected way.
I'd love to hear everyone's ideas about how to build the interlock in such a way that the propagation of the condition throughout the house cannot break down.