-
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
button with delayed ON or OFF actions #161
Comments
Looks neat. I will test it and maybe add a configuration code in the web interface... |
Hi |
Original comment by Carlos (Bitbucket: cnieves1, GitHub: cnieves1): Hi, Your thought about this being a relay property is also what I first thought. I wanted this for a presence detector, so both ways will work. What made me change my mind was thinking about more generic situations.
In these two scenarios, having the delay as a switch property, the user will be able to configure it to do what he wants. It is just a matter of configuration. That is why I preferred to have the delay as a button property instead of a relay property. That way it is more configurable and flexible, it can be configured to make more things... Best regards, Carlos |
I see, it makes sense. But maybe that would imply more deep changes in the firmware to be able to configure different behaviours depending on the source of the event, it could be a button, a different button, and MQTT message, the web interface,... In the meantime I prefer to keep it simple and consistent across different sources, even thou it means it's not as flexible and someone would like to. |
Original comment by Carlos (Bitbucket: cnieves1, GitHub: cnieves1): Different behaviors for different buttons were already supported, and I don't think delayed actions are needed for mqtt or web interfaces. Anyway, it's ok. Of course you know the code better than me and you are free to do that. If it works, I will be able to use a presence detector. I am not having complex setups so it is not a problem for me... Are you finally going to make this configurable in the web interface? Thanks, Carlos |
Released with 1.9.0. Configurable only through build parameters. |
Removing milestone: 1.8.4 (automated comment) |
Originally reported by: Carlos (Bitbucket: cnieves1, GitHub: cnieves1)
Hi,
Attached is a diff showing how to implement a button with delayed on or off actions.
The main purpose is using it with a presence detector (delayed off). See Issue #123.
Please tell me what do you think about that.
Thanks,
Carlos
The text was updated successfully, but these errors were encountered: