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

Evaluate Second Action of Rocker Switches #111

Closed
fruggy83 opened this issue Sep 2, 2021 · 2 comments
Closed

Evaluate Second Action of Rocker Switches #111

fruggy83 opened this issue Sep 2, 2021 · 2 comments

Comments

@fruggy83
Copy link
Owner

fruggy83 commented Sep 2, 2021

Currently RockerSwitches react only on single actions (one button press). RockerSwitches do not emit an event if a second action is pressed. The following PR already lets RockerSwitches listen to the second action. However it is not possible to distinguish between a single action or a second action. Even if two buttons are pressed it is treated as a single action.
So the following options are missing:

  • Add an indicator if the second action is pressed
  • Add the possibility to react to each button combination individually
    • Add a new trigger channel type which emits the buttons pressed ChannelADirection|ChannelBDirection
    • Add a filter to let this channel just react on a certain button combination (even single actions)
    • Add a toggle profile to easily link this channel to a switch or player item
    • Add filter parameters to this profile to define on which button press combination the linked item should be toggled
@fruggy83
Copy link
Owner Author

fruggy83 commented Sep 2, 2021

  • Push to Upstream
  • Merge into Upstream

@fruggy83
Copy link
Owner Author

Merged by openhab/openhab-addons#10769

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

No branches or pull requests

1 participant