fruggy83/openocean

Evaluate Second Action of Rocker Switches

Closed this issue · 2 comments

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
  • Push to Upstream
  • Merge into Upstream