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

garage door configuration #980

Closed Kosmalev closed 4 years ago

Kosmalev commented 4 years ago

good afternoon. please help, I use this Jonson config, perhaps help redistribute its status indication from normally open contacts to normally closed and the icon in HomeKit from a sliding gate to a sliding one. I can not figure out the configurator, thanks in advance

{"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":12,"v":1,"i":0.5}]},"1":{"a":0},"2":{"r":[{"g":12,"i":1.5}, {"g":12,"v":1,"i":0.5},{"g":12,"v":1,"i":2}]},"3":{"a":2},"t":40,"d":31,"f3":[{"g":14,"t":0}],"f4": [{"g":14}],"f2":[{"g":4,"t":0}],"f5":[{"g":4}]}]}

i3laze commented 4 years ago

Hi! Try using Online HAA Configurator. Just copy&paste your JSON and tune it further. https://glumb.github.io/haa-configurator/

Looks like you've missed "1" action. Consult about it with wiki page: https://github.com/RavenSystem/esp-homekit-devices/wiki/Garage-Door

I actually suggest you to use an existing JSON template in Configurator instead of self-made one above.

Kosmalev commented 4 years ago

good afternoon. Thank you very much, I will definitely try. I took this template from the wiki, it completely works for me, only the indication is made on normally open contacts, and I have normally closed ones, I need to redo this

i3laze commented 4 years ago

You just change in online configurator “Single activation” to “Single Activation. Falling Edge“ or vise versa to invert the status. Alternatively you might click “invert” near the input. Do you have both open and close sensors (GPIO4 and GPIO14) or just one?

Kosmalev commented 4 years ago

Thank you so much for your help, I'll try and unsubscribe tomorrow. two sensors

Kosmalev commented 4 years ago

Thank you very much for your help, everything worked out. I thought you need to fully compose the configuration, but it turned out that you can edit. it remains to figure out how to change the gate icon

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.