# "When" any air conditioner is "not off", then

**URL:** https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020
**Category:** Flows
**Created:** [July 2, 2021, 9:33am UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020 "2021-07-02T09:33:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)
#### Post date: [July 2, 2021, 9:33am UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/1 "2021-07-02T09:33:10Z")

</div>

Hi there!!

I’m trying to create a Virtual Device or Group that shows if any air conditioner is ON.  
Since all of my 4 Daikin devices as Operation Mode have “OFF” plus other modes (Dryer, Cooling, Heat, Fan, Auto).

I succesfully created a Virtual Device to control all the Air Conditioners togheter, but I can’t get how to manage this…do you have any hint?

Thanks in advance, ciao!

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [July 2, 2021, 1:28pm UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/2 "2021-07-02T13:28:53Z")

</div>

Good day Alessandro,

With the group app you can add an airco group device. I used device type “_fan_” for this.  
This way you can control all airco’s together (switch all on at once, and switch any airco which is on to off).

AND, it can show the status:  
If any airco is on, then the device tile is active.  
If all airco’s are off, the device tile is inactive.  
It responds to the on/off state of your individual airco’s.  
No flow needed.

> Setting of airco group device (ON if any on)
> 
> ![Screenshot_20210702-151347_Homey~01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/c/1c14c60d59230fdf97f1aada7bbd6056edc9b392.jpeg)

> Device tiles view, the group device is on the right.  
> State shown: The two airco devices are off, so the group device is also off.
> 
> ![Screenshot_20210702-151659_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c106222e5b161c9c4d162b09c120ba4a7ff218a0.jpeg)

> If one (or more) airco device is switched on, the group device also gets the ON state:
> 
> ![Screenshot_20210702-151746_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/3/439d641d73985a03c5345ff04522f75845c0bce0.jpeg)

I hope this gets you going!

---

<div class="post-metadata">

### Author: ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)
#### Post date: [July 2, 2021, 1:57pm UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/3 "2021-07-02T13:57:15Z")

</div>

Hi Peter, thanks for your reply!

This way was the first I tried, but when I select the “fan” type in app, it gives me the following capabilities to choose:  
 ![FAN](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/885ecee51ac515a0803e650380fa48826ffc7740.jpeg)  
 ![CAPABILITY](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d74c69925b835a50f3059b8add0fdd6eddd10106.jpeg)

If I select “TURNED ON”, the App shows me some of my devices but the air con’s.

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [July 2, 2021, 2:21pm UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/4 "2021-07-02T14:21:52Z")

</div>

YW!  
Oww that’s a pity Alessandro. I expected the airco devices should at least have the on/off capability.  
You can try with type “smart plug” f.i.  
Maybe then your airco devices do pop up when you select the on/off value.

You can find all used capabilities of your airco devices [here](https://tools.developer.homey.app/tools/devices); enter the airco device name at the search bar at the top.

An example view (of a thermostat):

 ![Screenshot_20210702-162854_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/4/943242870630ce972ac727bdcd57b71a105c41a1.jpeg)

---

<div class="post-metadata">

### Author: ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)
#### Post date: [July 2, 2021, 3:49pm UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/5 "2021-07-02T15:49:37Z")

</div>

![Immagine 2021-07-02 174740](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11befe2fa13fda4e43655be540d1d12e0a13191a.png)

Thermostat Mode also includes “OFF” and I tried to use this capability, but in the app my devices aren’t listed when I select this capability.

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [July 2, 2021, 4:34pm UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/6 "2021-07-02T16:34:19Z")

</div>

I think `special_mode_pwr` is the AC on/off capability.  
While it is not a Homey standard capability, it is not available in both Virtual Devices and Group apps.

An alternative way is:  
Using a virtual device as indicator: any AC on / all AC off, just like your initial idea.

Flow1  
I use Better Logics, and created Boolean vars Airco1 to Airco4  
The virtual device is called “All Airco’s”  
_The `?` signs should show BL tags [Airco1] to [Airco4]_

Flow 2 to5:  
To set the vars, for each Airco On/Off flow the corresponding var has to be set to true or false.  
Example for Airco1:

Alternative to flow1 using JavascriptLogic:

_The `?` signs should show BL tags [Airco1] to [Airco4]_

---

<div class="post-metadata">

### Author: ![Martin\_Zijderhand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_zijderhand/32/31766_2.png) [@Martin\_Zijderhand](https://community.homey.app/u/Martin_Zijderhand)
#### Post date: [July 3, 2021, 7:21am UTC](https://community.homey.app/t/when-any-air-conditioner-is-not-off-then/49020/7 "2021-07-03T07:21:16Z")

</div>

Make for every airco a flow.  
First card: When Airco Workmode is changed off  
Other cards: And airco1 workmode is off, next and airco2 workmode is off, next and airco3 workmode is off  
Then set mode (Virual device) mode off without trigger.  
else set mode (virtual device) mode on without trigger.  
Like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1b4e2c50bee676d0d84ec60b861e3dc0c610fd2.png)
