Correct but with LVGL 8.4 (used in ESPHome) you can use FLEX layouts so you don’t have to count pixles anymore your object just “flow” on the screen and if you delete a button everything else just moves up.
Also I do all my testing using SDL on a Linux PC. That way I don’t have to flash anything to test the code. It just runs locally on the x86 box. Very fast to build and test. This is another big advantage of ESPHome
I would say the above are excellent examples. It would be huge if openHASP supported FLEX grids.
I do all my testing using SDL on a Linux PC. It’s very fast and no flashing is required. I don’t even need the actual hardware device for testing. It runs on Linux and MAC if you don’t use Linux.
Uh….too complicated… i did install this (via wsl) on my win11, but then i’m stuck…i guess i’d have to install esphome on win11 (inside ubuntu VM) as well?
I got the SDL working this afternoon, but then domestic duties intervened. Looks interesting. I had tried before but it needed more work. I have a few questions, so I may start another thread and invite you along, provided that’s ok.
Thanks for your comments re esphome benefits too. The flex layouts seem interesting and perhaps a real clincher.
I really like the possibility of using a rotary encoder out of the box too. Still the best way to dim a light, or turn music up to 11.
I am building a modular system that allow you to swap in different types of buttons. You only need to change 1 line of code to add more buttons or change their types. My goal is to have a totally module system like OpenHASP or NSPanel that is easy to use and has a lot of features.
Take a look at this file in my git repo
guition-esp32-s3-4848s040-display_modular.yaml
Right now it has a boot screen, and a system to manage the backlight for different times of day. And I have these button types so far.
Local on/off for a relay attached to a a pin on the ESP32
Remote on/off for Home Assistant devices
Blank button that fills up a button space and pushes the next button down
I want to build a lot more button types.
Time button
Dimmer button
Weather
colored control button for colored lights (these is an LGVL color picker in the works)
If anybody wants to read the documentation, look at other examples online, and get some of these built that would be cool. Otherwise I’ll build them slowly as I figure out how. I have been having the Chatbot build some code for me!
just deployed three of these. One experiences random, intermitting ghost ‘taps’ on the screen all of a sudden, driving the garage doors nuts! Anyone experiencing the same thing?
No I haven’t seen that. Could be a hardware issue with that particular screen. How many of these do you have? Can you tray another unit for the garage door? That should help deterring if this is a hardware issue?
Do you have these problems running esphome?
As said, i did have such problems, running openhasp, yes. Currently the problems seem to be gone with custom modified fw, which includes a kind of “noise cancelling”, which is selectable from 1 to 15: https://github.com/FreeBear-nc/HA-openHASP/tree/main/GT911/firmware
Some guys think it might be connected with 230V supply, since some of them are experiencing problems only when powered by 230V. I admit, i didn’t test this theory, since i have it already installed on a wall. I’m waiting for a second one, which will be used for testing (for now).
So, try to switch screens and see if this problem happens on the same screen (front part) or on the same power supply (back part). This info would be very valuable.
Some displays have an inductor on the main power board (one of mine does, the other doesn’t). Also found I had a loose capacitor on the switch mode PSU module - A right pig to get to to resolder the joints.
Had a couple of ghost touches on the panel currently on the wall. Can’t say for certain if the noise reduction firmware has done anything, but I’ve not experienced any more. But then my mains supply is fairly clean.
@andrew_NH - I have 3, currently all running the same esphome config until I have more time to tinker. Just one experiencing the problem. I disabled the touchscreen for now. Will probably just order another couple.
Yes but this seems to be a hardware problem with just that one single unit not a problem with ESPHome in general or a general problem with the Guition 4" screen.