Add left/right action to dial #208
Replies: 3 comments 3 replies
-
Here's a workaround I use for controlling my Sonos volume. The trick is to create a helper input_number to use as your entity for Stream Deck and then do the automation in Home Assistant. For me, I want to add or subtract the number of "ticks" to the current volume. In your case, you'd probably use a slightly different method, such as choose if the number is positive, send one IR code, and negative send a different IR code. Either way, it's a good idea to reset your input_number after each automation so that when you turn the dial a second time, HA knows it's a different value. Here's my code for you to modify. If you need help, let me know what your automation is for each IR code and I'll try to help with something more specific. Anyways, here's what I use:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your "workaround" (wich is in fact it is a valid approach to the problem). @zeekens Of course it would be possible to add different service configurations for left/right rotations. The problem is, that the configuration is getting more and more complex. I am not yet sure, if and how i want to add this feature... |
Beta Was this translation helpful? Give feedback.
-
I use a much simpeler script which can be easily modified to accommodate different actions:
And with the encoder actions for rotations, just call this script with service data JSON:
|
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add different service calls to the left and right rotation?'
I want to use the rotation to for instance send an IR signal for volume up with the right rotation and volume down with the left one
Beta Was this translation helpful? Give feedback.
All reactions