# Invert sensor for zone activity

**URL:** <https://community.homey.app/t/invert-sensor-for-zone-activity/71993>\
**Category:** Ideas & Suggestions\
**Created:** [November 10, 2022, 11:55am UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993 "2022-11-10T11:55:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johanneso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanneso/32/70273_2.png) [@Johanneso](https://community.homey.app/u/Johanneso)\
**Post date:** [November 10, 2022, 11:55am UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/1 "2022-11-10T11:55:52Z")

</div>

It would be super useful to be able to invert the zone activity status of sensors, similarly to the “exclude from zone activity” option.

This would be great for modified door sensors that can be used for seat detection et cetera. Otherwise we end up with a seat detector that, when occupied, tells Homey that the zone is inactive 😁

Another solution would be to set zone activity manually in a flow, like “THEN: Set ‘Zone A’ to Active”.

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [November 10, 2022, 3:40pm UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/2 "2022-11-10T15:40:58Z")

</div>

For zone activity this would be useful. For use in a flow it’s easy to achieve with logic cards

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 8, 2023, 2:43pm UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/3 "2023-02-08T14:43:19Z")

</div>

> [@Johanneso](#):
>
> to be able to invert the zone activity status of sensors

In the device advanced-settings for many sensors it is possible to reverse the function:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/3/e35b028cb7732584c7854d160bd5cfdfe3a950ab.png)

---

<div class="post-metadata">

**Author:** ![Johanneso](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanneso/32/70273_2.png) [@Johanneso](https://community.homey.app/u/Johanneso)\
**Post date:** [February 8, 2023, 3:37pm UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/4 "2023-02-08T15:37:09Z")

</div>

I’ve seen that Aqara door sensors can reverse their logic. Are you using the advanced settings app to enable it for other stuff?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 8, 2023, 4:00pm UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/5 "2023-02-08T16:00:47Z")

</div>

This was done in the WebApp on my PC, right-click on the device and choose Settings.  
This also can be done with the mobile App. ( device … cogwheel… Advanced-setting )  
sorry for Dutch text, think it explaines it selves. This is for an Aqara door sensor.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0da41dd27d397ad818f4ab853e612e9382f45cd9.png)

---

<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:** [February 8, 2023, 9:24pm UTC](https://community.homey.app/t/invert-sensor-for-zone-activity/71993/6 "2023-02-08T21:24:45Z")

</div>

When reversing the function is not possible with your sensor type, you can use a virtual sensor and send reversed commands to it:

> [@Share Your Device! - Advanced Virtual Devices from Device Capabilities](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676/45):
>
> Reversed Switch When you want a switch to be reversed, so On becomes Off and Off becomes On Here an advanced virtual device is used to be the opposite of some switch\_A, and becomes virtual switch\_A; Then move that switch\_A in a zone name starting with z or 99 to ‘hide’ it. …
