Skip to content
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

Switch Double/Tripple toggle #7519

Closed
jensuffhaus opened this issue Jan 15, 2020 · 3 comments
Closed

Switch Double/Tripple toggle #7519

jensuffhaus opened this issue Jan 15, 2020 · 3 comments
Labels
duplicated Result - Duplicated Issue

Comments

@jensuffhaus
Copy link

Have you looked for this feature in other issues and in the docs? YES

Is your feature request related to a problem? Please describe.
I use Sonoff Mini's with Tasmota to enhance all my existing light switches and swapped them for momentarty push buttons. All lights work as they did before using the local input of the mini but I now get the added HOLD feature for scenes/automation. On some switches however I could physically not get a momentary button and am forced to use a latching switch. This means I loose the HOLD feature but would still like to have it at that switch.

Describe the solution you'd like
Implement a long hold feature for latching switches where instead of holding long, you toggle quickly, on/off. The local relay is only toggled if the switch does not toggle more than once within a give delay. there could be any number of actions and the MQTT message could include the actual number of toggles as the payload. on/off/on/off/on would have a payload of 5.

Describe alternatives you've considered
I could not find any alternatives that did not involve changing to a momentary button and that would require physical destruction of the device making the change pointless.

Additional context
This is for bedside lamps that I have enahnced with a sonoff mini. the original toggle switch of the lamp works as it did via the mini but the lamp can now also be controlled by the system. I would like the multi toggle feature so I can engage the "Good night" scene once I am in bed using the toggle switch of the lamp.

(Please, remember to close the issue when the problem has been addressed)

@ascillato
Copy link
Contributor

Hold it is already implemented. If you want to use it in a latching switch, you just need to configure it properly with switchmode command.

Please, address this to the Tasmota Support Chat. The chat is a better and more dynamic channel for helping you. Github issues are meant for Tasmota Software Bug Reporting.

Please check the Contributing Guideline and Policy and the Support Guide.

Thanks.


Support Information

See Wiki for more information.
See FAQ for common questions/answers and links if none of your question is in the list
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@to-scho
Copy link

to-scho commented Jan 15, 2020

If I understood right, this is not supported up to now by any SwitchMode or button feature. Feature requested is similar to some LED dimmers that you can operate by a standard wall mount stationary (non momentary) switch. When you change position fast within a certain interval some extra action is done. On/Off State of the dimmer is only switched when there is no 2nd switch action within a certain interval.

I created PR #7522 that introduce three new switch modes which should at least give a double toggle according to @jensuffhaus needs.

@jensuffhaus
Copy link
Author

@to-scho Thank you. You are spot on. Will wait for the PR to be included in the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicated Result - Duplicated Issue
Projects
None yet
Development

No branches or pull requests

4 participants