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.75k stars 361 forks source link

Bad configuration for a dry contact relay with ESP8266 #2271

Closed MaximeNv closed 5 months ago

MaximeNv commented 5 months ago

Hi,

I am currently working on my roller shades' controllers (only way I found to add them in my Home).

My plan is to replicate a push on each button of the controller via a dry contact relay.

For that, I use an ESP8266, and a relay. Hardware is working fine, as I tested it in other circumstances.

I think HAA is correctly configured on my ESP, as I can see it and add it to my Home App.

Here comes my problem : I do not manage to build the right JSON to control my relay.

Here under, code as I try to paste it in HAA setup : { "a": [ { "t": 1, "i": 1, "0": { "r": [ { "g": 12, "v": 0, "i": 1 } ] } } ] }

I probably missed something, but don't understand what precisely..

Thanks for any future help and insights !