How to turn on AC only when multiple contact sensors are "off"

I have a fairly straightforward setup - Homey Pro Mini (2025) and Homey App / Desktop App all with latest software. For devices - I have an LG HVAC that is connected via the LG ThinQ app, and two zigbee contact sensors that are connected via the Third Reality app.

My issue is in trying to set up both contact sensors so that the AC only turns ON if both sensors are off. I tried using the “all” button in the advanced flow but it would not trigger even when both sensors were off. I then saw that maybe I should create a “group” but I do not have that option when I select the device and scroll all the way down. I tried downloading the “group” app, but I cannot see a way to actually use it. I see it under “apps” but there is no option to add groups or devices that I can see.

I can create a flow that will turn on the AC when one sensor is closed, but I can’t figure out how to condition it to only turn on when both sensors are closed.

This feels like it should be a very straightforward and common flow. Am I missing something obvious? Any help is much appreciated.

You can build the flow like this:

WHEN contact sensor 1 is turned off - > AND sensor 2 is off - > THEN turn on AC.

And same for sensor 2.

Make an advanced flow that test the status of each contact sensors. When both are off than start your AC. Start this flow WHEN sensor 1 is turned off. And start this flow when sensor 2 is turned off with a second WHEN card.

I tried this, but when i build the advanced flow - it only gives me one option for “and” which is Contact sensor is ON not off.

You can inverse the card function: Use the alternative mouse button.

1 Like

Every trigger will start its own copy of the flow, so you can never expect multiple triggers to start the flow together.

So this will never work:
WHEN trigger1 AND WHEN trigger2 then do-something.

As Rmb wrote; you should write a flow like this:
WHEN trigger1 AND trigger2 is off (i.e. trigger2 is not on) \
ANY THEN do-something
WHEN trigger2 AND trigger1 is off (i.e. trigger1 is not on) /

1 Like

This is what I ment:

2 Likes

One option is to flip the cards, as @Peter_Kawa already suggested; another option is to use the orange connector on the “And…” card.
You can find information about the connectors here:

Another option is to combine the two sensors into a single sensor using the < group > app.

2 Likes

Thank you! I tested this morning and it worked. I just didn’t know about that hidden invert option…

1 Like

Thank you. That’s a great video. I was able to solve the issue by flipping the cards like you mentioned but I am curious about the < group >. From what I’ve read on the internet, devices like Contact Sensors should be able to be grouped from the cog wheel drop down when you long press on the device. However I do not get that option for some reason. Also - regarding the app which I did download - I did not see any functionality to use it. It does not appear in my flows and did not add any additional functionality as far as I can see to the devices. How do I group after installing the app?

Hi,
All you had to do was follow the link Dirk provided for :wink:

Background: Long before the build-in group functionality was introduced, there was (and is) a community app called < group >, with which you can group almost anything.

1 Like

There are two possibilities to group devices:
– Build-in functionality, like you read in the internet
– Community apps like < group > or Device Capabilities, while the < group > app is exactly what you need for this use case

The build-in functionality supports just lights, window coverings and smart plugs, but unfortunately no contact sensors.
How to create a device group using the < group > app:
– Install the app via the Homey App Store
– Go to the Devices tab in the smartphone or the Web app
– Klick on +New device
– Select the < group > app
– Select the device category you want to group → all compatible devices will be displayed
– Check the boxes next to the devices you want to group
– Follow the next instructions/info