RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.72k stars 357 forks source link

How to interlock relays #624

Closed GPL71 closed 4 years ago

GPL71 commented 4 years ago

Hi josè .... I have 3 relays to manage as follow: Relay 1 ON, Relay 2, 3 OFF Relay 2 ON, Relay 1, 3 OFF Relay 3 ON, Relay 1, 2 OFF

Is it possible manage it in the json config? Or an automation is necessary?

Thank you

RavenSystem commented 4 years ago

Actually, you can interlock relays, but I think you want to interlock HomeKit switches (then each switch manages its relay), no?

GPL71 commented 4 years ago

mumble .... mumble .... that's correct josè .... relays and homekit switches too. Is it possible?

RavenSystem commented 4 years ago

Yes, with last version of HAA: https://github.com/RavenSystem/esp-homekit-devices/wiki/Home-Accessory-Architect#m-accessory-manager-actions-array-of-orders-attached-to-an-action-to-manage-other-accessories-from-same-device

GPL71 commented 4 years ago

Thank you very much .... sounds good ear now it’s a feature