I have successfully set up my air filter (Govee) and thermostat (Ecobee) to turn off when any window is opened, and it’s working great! However, I’m facing a challenge when closing the windows.
Unfortunately, this setup isn’t functioning as expected. I believe the issue is that not all window sensors are being triggered to “off” because not all windows were opened.
Is there a way to check the status of all window sensors, and once all windows are closed, automatically turn the thermostat and air filter back on?
If this is possible, it would be amazing to implement!
You’ve discovered a ‘need to know’ unfortunately.
It’s a pity the editor does not say No when one wants to connect trigger cards to an ALL function;
ALL cards are meant for states, not triggers.
And the ANY function is optional; you can connect multiple (trigger) cards to the “input(s)” of (an) other conditional or action card(s), just by connecting them.
You could change your flow so, that instead of the all, change it to any. Then add condition cards for each window if the they are all closed, do you action.
As Peter pointed out, multiple trigger cards on an “all” condition, will not work. Triggers are always run when the state happens.
If you don’t have an And card to give you a window’s status, use a variable to record the state of each window as it changes. You can then test the state of all of them when any window closes.
Ok, that’s good to know! Do you recommend an app that can get the state of devices? My windows are actually Virtual Devices - my alarm system doesn’t integrate with Homey but does Homebridge, so I have that connecting to Apple Home and then the Virtual Devices reflect each window. Is there a way to get the state of the Virtual Device?
Any suggestions are welcome - I’m getting into more advanced flows for my home and I am enjoying it so far! @Andy_Henderson - how can I use a variable to get the state?
It’s a useful technique in a number of situations. You set a variable to true when a given trigger occurs and to false when another trigger occurs. You can then test the variable in another flow.