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

homekit icon - garage door > roller shutter #964

Closed dmagraf closed 4 years ago

dmagraf commented 4 years ago

HI! Thank you very much for your tremendous work in the development of the project! Now hands have reached the automation of a street sun-protection awning which is controlled only by the RF433 signal. Nebud will go deep into the details, but all my efforts to integrate the RF433 ended in failure. I have been using Sonoff SV for garage doors for a long time. The idea of ​​using Sonoff SV in combination with the remote control got excited. In essence, it turns out that you only need to briefly close the contacts on the remote control to activate the movement of opening and closing the sun blind, and on the rest of the GPIO I can remove the state open / closed. All the original functionality should remain as it is, just replace the hotkey icon from the garage door at least on a roller shutter or something more suitable? Any ideas? thank Dmitriy

i3laze commented 4 years ago

Привет, Dmitriy.

There’s an accessory type Window Covering right for this case. Wiki page: https://github.com/RavenSystem/esp-homekit-devices/wiki/Window-Covering

I suggest you to try HAA Online Configurator: https://glumb.github.io/haa-configurator/

Although website doesn’t support window covering yet, try this thing:

  1. Paste your Garage JSON into online configurator.
  2. Replace accessory type “t”:40 to 45.
  3. Rename garage accessory keys like “d”, ”c” to relevant window covering keys.
  4. Copy the resulting JSON to HAA Setup, test the result and then alter settings in Online Configurator.
  5. Repeat step 4.

Paste the source and result JSON here for troubleshooting.

P.S. I got window cover arriving today and Sonoff SV ready for testing.

dmagraf commented 4 years ago

yes really replaces the image, I will still test how it works { "c":{"l":13,"b":[{"g":0,"t":5}]}, "a":[{ "t":45, "o":18, "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}, "f3":[{"g":14,"t":0}], "f4":[{"g":14}] }] }

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.