Unable to find action with the name ‘sensor.the_encoder.publish’.
Even though I copied it literally from the documentation, so I am a bit confused what I’m doing wrong here. could anyone tell me what I am doing wrong and how I can fix it? Thanks!
Actually I think he is trying to synchronise the volume in HA to the number in the rotary encoder. Otherwise when you, for example, reboot the esp, it resets the volume level.
That is exactly what I would like to achieve. The knob already works, but it stands on my desk. But if I change the volume from HA itself for example, then the value of the rotary encoder is not the same anymore as the volume level of my Sonos.
I have a screen salvaged from an ender 3 printer, which also includes a rotary encoder. I am programming it to use it as an interface for Home-Assistant on my desk. So I can quickly change the volume and see which song is playing.
I’ve come to the conclusion that what I initially had in mind is not useful and necessary. In the future I would like to use the rotary encoder for other tasks, like select inputs, playlists, etc. That won’t work if the encoder has a certain value set or is continuously updated.
That’s why the best is to not even “try” to synchronize the two entities but just use the one “truth” (the ha volume) and only in-/decrement it with (anti)clockwise values from the rotary encoder like in the example I posted.
For that reason don’t try to have two truth’ but go with a solution that just works like presented earlier
Again this just raises complexity unnecessary. Because this just works with ha it’s no problem to show the volume level directly on the display and use the rotary encoder only to send service calls to de/increment volume. Winner winner chicken dinner
Might be worth a shot to see what other people doing already - for example: