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

REQUEST: Sonoff SV as a simple "push button" for opening gate #1100

Closed Gejza75 closed 4 years ago

Gejza75 commented 4 years ago

Can someone generate JSON for Sonoff SV which work as a simple push button - ON/OFF in a 0,5 seconds, please? No additional sensors, nothing. Just simple push button. Thank you very much.

NikDevx commented 4 years ago

Can someone generate JSON for Sonoff SV which work as a simple push button - ON/OFF in a 0,5 seconds, please? No additional sensors, nothing. Just simple push button. Thank you very much.

https://github.com/RavenSystem/esp-homekit-devices/wiki/Stateless-Button

You can use configurator https://glumb.github.io/haa-configurator/

Gejza75 commented 4 years ago

Thanks Nik. Tried but without success.. I tried to modify Garage Door, but it works just partly. I would be greatful, if someone would help me with that.

Thank you very much for any help!

QDUNI commented 4 years ago

Try this config of a stateless button:

{ "c": { "b": [{ "g": 0, "t": 5 }] }, "a": [{ "t": 3, "0": {"r":[{"g":12,"v":1,"i":0.5}]}, "f0": [{ "g": 0, "t": 1 }] }] }

In one line:

{"c":{"b":[{"g":0,"t":5}]},"a":[{"t":3,"0":{"r":[{"g":12,"v":1,"i":0.5}]},"f0":[{"g":0,"t":1}]}]}

Gejza75 commented 4 years ago

Hi all. After couple of testing and playing I found formula. And finally it works like I wanted. Here it is:

{"c": {"l": 13,"b": [{"g": 0,"t": 5}]},"a": [{"0": {"r": [{"g": 12}]},"1": {"r": [{"g": 12,"v": 1}]}, "b": [{"g": 0,"t": 2,"p": 0,"i": 0}],"s": 0,"i": 0.2}]}

Thanks to all, who try to help. If there is possibility, please put it in device database.

Thank you.

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.