Synchronizing the rotary encoder and dimmer values #24234
-
|
Hello, I need the rotary encoder value to be updated when a dimmer value is adjusted through software. This would allow for the dimmer value to always be the same as the rotary encoder value. As it stands, they are almost always different because I have multiple sources changing the software value in addition to users changing the hardware value. And it makes for a usability issue because when the rotary encoder is changed, it causes the dimmer value to jump from its software value to the hardware value. Right now, I can rotate the encoder and it changes the dimmer. But if I change the dimmer in software, it doesn't update the encoder value. Then, when I adjust the encoder again, the dimmer value jumps from what it was to what the encoder value is, which is usually very different at this point and makes for annoying bright flashes or dark "anti-flashes". I'd like something like this, assuming this is the right way. Keeping the dimmer value and rotary encoder in sync seems like standard basic smart dimmer functionality. Did I miss the documentation about it somewhere? Can this be done in Tasmota? I have tried this also: (Extra spaces and periods are how I am overwriting screen artifacts because it's slightly faster than clearing the screen on every update.) The dimming value changes, but the DisplayText never updates. And the dimmer changes by increments of 10 instead of 1, which doesn't work for my case. So then this: Just gives me: Console configs: Thanks! EDIT: Immediately after posting, I realized I probably don't want SetOption68 set to ON for this project. I defaulted to ON because my last project with Tasmota was a 5-channel dimmer. That for sure needed it! But this probably doesn't. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Did you look into what you get with |
Beta Was this translation helpful? Give feedback.
-
|
I thought that might be the case, and I did try it, but it didn't function. But I'll check again and see if I missed something. Missing details seems to be plaguing me on this project. |
Beta Was this translation helpful? Give feedback.
-
|
OK, all dimming functions and encoder work perfectly, after applying the SetOptions you posted above and disabling all rules. Even the dimmer and encoder stay in sync whether changed via encoder or software. But ONLY if I also disable the display by removing Option A3. As soon as the display is introduced, things get mapped/assigned/associated wrong and Tasmota fails to report dimmer values to HA. The HA dimmer dialog will dim the LED, but changing the value with the encoder does not update HA, and HA resets its dimmer slider to zero every time I open it. And in some cases, the HA dimmer won't dim the LED because somehow it is tied to a non-existent dimmer instead of the one assigned PWM dimmer. I have not identified the cause of the inconsistency. Since my remaining issues are related to the display, I'm considering this thread solved. Thank you! |
Beta Was this translation helpful? Give feedback.
Did you look into what you get with
SetOption98 0,SetOption68 0,SetOption43 100,SetOption15 1and no rules? Tasmota is already able to control a PWM directly based on rotary operation. For the display of the number, you could then add rules to pick up the messages when the dimmer changes, including when you use theDimmercommand to set a new level directly.