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
LVGL implementation for ESPHome #6363
base: dev
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #6363 +/- ##
==========================================
+ Coverage 53.70% 54.13% +0.42%
==========================================
Files 50 50
Lines 9408 9619 +211
Branches 1654 1698 +44
==========================================
+ Hits 5053 5207 +154
- Misses 4056 4086 +30
- Partials 299 326 +27 ☔ View full report in Codecov by Sentry. |
🥰 |
Whaooohhhh massive addition .... Congrats!!! |
Pass button id as argument for btnmatrix triggers.
Label can now be a text or text_sensor component.
layout: type: flex flex_align_cross: center flex_align_main: space_between layout: type: grid grid_rows: 2 grid_columns: 2 grid_column_align: space_evenly
Remove output from switch
I just read through the documentation and noticed that this seems to only support touchscreens and rotary encoders. It would be nice if support for what LVGL calls keypad input was added. While adding support for all ways buttons can be connected (direct pin, digital matrix, analogue matrix, ...) would be a bit daunting, offering an action to send button presses to LVGL should be viable. I can see myself slapping a graphic display onto my ESP32 and adding two buttons (LV_KEY_RIGHT and LV_KEY_ENTER)---checking what cheap display I could use brought me here after all---but I wouldn't go for a touchscreen or rotary. Also, I think for using the onscreen keyboard you'd want a touchscreen or some 5-button input, not a rotary. |
Hah like in the good ole days we used to control the Nokia GSM phones, just 3 buttons for the entire screen menu, where the middle one was always "OK" and the two side ones were context-sensitive "Soft" buttons... The numeric keypad was fixed... |
That will come, but is not on the list for the first release - have to draw line somewhere or it will never be done. |
What does this implement/fix?
Implements LVGL in ESPHome in a native way - configured with YAML.
To use this PR prior to being merged, add this to your yaml:
And read the docs as below:
Doc preview is here: https://deploy-preview-3678--esphome.netlify.app/components/lvgl.html
Types of changes
Related issue or feature (if applicable): fixes
Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#3678
Test Environment
Example entry for
config.yaml
:# Example config.yaml
Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: