Joolee / nl.joolee.homey.espeasy

ESP Easy is a firmware for ESP8266 boards like the WeMos D1 and NodeMCU. It allows you to quickly make custom devices with switches, sensors and other hardware. This app adds support to Homey for connecting with ESP Easy units.
GNU General Public License v3.0
6 stars 5 forks source link

Invert value/state #17

Closed MrBlue90 closed 3 years ago

MrBlue90 commented 3 years ago

One of my door contact sensors are connected and the input is NC. So in normal state, it's HIGH and when you open the door, it gets LOW.

When I add the switch in Homey, the default state is also HIGH, which is considered ALARM ON. I might invert the input on the ESP side, however this means that if the intruder would cut the door contact sensor, it wouldn't trigger anything (stays LOW). Is there a way to invert this state in the Homey device so HIGH = ALARM OFF and LOW = ALARM ON?

Let me know if screenshots would be useful.

Joolee commented 3 years ago

What is the name of the device type you use in Homey? I already implemented an invert option for all binary type devices I believe, you can find it in the advanced settings of the device. I might have missed one but it's quite easy to add if I know what driver to modify.

MrBlue90 commented 3 years ago

Great! I used Switch Input > Contact Alarm.

Joolee commented 3 years ago

Looks like I forgot it there. I can add it some time next week.

Joolee commented 3 years ago

Didn't exactly make it that week. Sorry about the (long) delay!