-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: api for open relay for n miliseconds #831
Comments
maybe you want to use the pulse feature ? on your espurna, go to switches, choose pulse mode normally off and give it a pulse time of, say, 0.3 s ? |
eventuelly yes, but api would be more comfortable. Some clients also wont short and long pulse for door lock. |
Thanks to @mcspr for #902. I've added the HTTP API entry point to his work. Now you can pulse any relay for an arbitrary time. To toggle the relay and toggle it back after 2.5 seconds just send this request (notice times are in milliseconds):
or using MQTT:
(edited: units in seconds) |
Staging for release |
it could be a great feature not only in pulse mode, but also in swutch button mode : a timer. you could turn on the light for limited time, then it turn off |
I would like use sonoff basic for electric door lock. If I use standard api for relay {root topic}/relay/0/set and call it by complicated central unit (raspberry j2ee) which connected throw not 100% reliable wifi, the system could fall and the lock would remain open.
Best solution should be api(mqtt, web) such as
{root topic}/relay/0/pulse => { 5000}
The text was updated successfully, but these errors were encountered: