Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
218 stars 36 forks source link

Turning on one switch change status of another #119

Closed antkachenko closed 1 year ago

antkachenko commented 1 year ago

Hello,

I control my roll shutters with double relay ESP-8266 module LC-Tech type. Easy-ESP do not support relay status return for LC-Tech. So I use "toggle" type of accessory. To prevent both relays being turned on simultaneously (and cause occurrence of too high current that cause relay sticking) I send "turn off" request to one relay and than "turn on" to another one. So if the "first one" was on (button in HomeKit is "on") and I turn on second one, technically - all is OK, but the button of the first one stays "on".

Is it possible to send from one accessory command to set status of another accessory to "off"?

P.S. May be you know the addon, that works as a two-way momentary switch, using http requests to the relays?

antkachenko commented 1 year ago

Have done this with https://github.com/Supereg/homebridge-http-notification-server. Sorry annoying community.