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

on_clockwise & on_anticlockwise triggers invalid options for [Adafruit StemmaQT Rotary Encoder] #79

Open
zala143 opened this issue May 31, 2024 · 2 comments

Comments

@zala143
Copy link

zala143 commented May 31, 2024

looking for some help.. I'm trying to use the [Adafruit StemmaQT Rotary Encoder] with ESPHome 2024.5.4; I've got most of the basic functionality working/responding to actions (rotary, button and the neopixel) - the part I cannot get working is the rotary encoder trigger that recognizes on_clockwise or on_anticlockwise triggers?

kinda stuck if thats not supported - trying to use this sensor as a knob for a thermostat so need to simplify and know if dial is being turned in either direction. I wanted to use simple wiring (I2C) so opted for this type of rotary encoder versus a regular 5 wire ver..

Any help would be greatly appreciated.

Martin

@ssieb
Copy link
Owner

ssieb commented May 31, 2024

That's not supported yet. You can use the on_value and store the previous value in a static local variable or a global to compare against.

@zala143
Copy link
Author

zala143 commented Jun 1, 2024

ok many thanks, I guessed that might be the case - would be awesome for this feature to exist as it greatly simplifies using it within ESPHome. I will work out how to do as you said as I still feel the simplicity of the I2C wiring is my best route.. thank you

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

2 participants