# Issues with Flow to automate HVAC using Motion/Temp Sensor

**URL:** https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263
**Category:** Flows
**Created:** [May 28, 2025, 9:24pm UTC](https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263 "2025-05-28T21:24:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Player2](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Player2](https://community.homey.app/u/Player2)
#### Post date: [May 28, 2025, 9:24pm UTC](https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263/1 "2025-05-28T21:24:34Z")

</div>

I am trying to copy and automation I had setup in Smartthings

Essentially at times I work from a home office that can get much hotter than the rest of the house.

Given that I have attempted to setup an automation that will turn on when my Aeotec Motion/Temp Sensor is above a certain temperature and senses motion. I also have it set that my light needs to be turned on to avoid triggering it if I just walk in quickly to get something.

Below is what I have put together but I am not able to get it to work

 ![Screen Shot 2025-05-28 at 17.21.02 PM](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/ab1d8e1bc6373f3adaae24e046960f68887f2309.jpeg)

I also tried setting it up with and statements and can not get it to trigger

 ![Screen Shot 2025-05-28 at 17.22.55 PM](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/5/65901b234d7ceeb013a284b3c1c1adcf5542ff8f.png)

Thanks in advance for any tips on what I might be overlooking.

---

<div class="post-metadata">

### Author: ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)
#### Post date: [May 28, 2025, 10:20pm UTC](https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263/2 "2025-05-28T22:20:04Z")

</div>

Hi @Player2 ,  
The first one cannot work, as _ALL_ does never fire from different _When_ triggers.  
The second one is a good start, but it is only one possible event, that starts the flow.  
Either you start with each of the three possible events in your first try, check the other two each time in an _And_ conditions and then you can combine them with the _Any_ card.  
Or you combine all three triggers with the _any_ card and then check all three conditions again.  
One example is in the multi condition test.

 ![MultiCondition Test](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/492fc873611952e01007393ab0be78bb1b947320.png)  
Kind regards, Dirk

---

<div class="post-metadata">

### Author: ![Player2](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Player2](https://community.homey.app/u/Player2)
#### Post date: [May 29, 2025, 10:54am UTC](https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263/3 "2025-05-29T10:54:44Z")

</div>

Thanks.

Good to know the first one just will not work.

For the second, I am actually OK with just one event starting the event. Really the primary trigger is that the temperature reading on the sensor is 79. It seems when doing an AND statement with the temperature sensor I can only test the temp reading via a Logic card

I did set this one up yesterday and it seems to be working, but I am really not sure what that logic card is doing. I have not been able to test this one enough to see if it is working as intended.

What I want to happen is When There is Motion AND Temp is above 79 AND the light is to turn down the AC

 ![Screen Shot 2025-05-29 at 06.38.58 AM](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/6/e64ebb7f987974979233824151d62699ce711a32.jpeg)

In your example let me make sure I am understanding the ANY statement correctly

So are you saying the left hand are WHEN triggers. So when any of those 4 things happen it will then check the status of each of the middle set of cards (are those AND flow cards). Only if they all pass the test will the far right action happen

 ![Screen Shot 2025-05-29 at 06.52.29 AM](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/9/a90cddec796025ab8ce7da31e457a67bb387cfec.jpeg)

---

<div class="post-metadata">

### Author: ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)
#### Post date: [May 30, 2025, 11:10am UTC](https://community.homey.app/t/issues-with-flow-to-automate-hvac-using-motion-temp-sensor/137263/4 "2025-05-30T11:10:56Z")

</div>

> [@Player2](#):
>
> So are you saying the left hand are WHEN triggers. So when any of those 4 things happen it will then check the status of each of the middle set of cards (are those AND flow cards). Only if they all pass the test will the far right action happen

I just see **three** things that start the flow 😇. But yes, it should work exactly as you described.  
So have fun!
