GUITION 4" 480x480 ESP32-S3-4848S040 Smart Display with LVGL

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.

1 Like

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.

1 Like

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?

Yeah Linux is much easier to use then Windows. If you have ubuntu run ESPhome and the SDL stuff there.

I’ll try, if windows WSL linux is any good i’ll try there. As a last resort i guess i can make a VM on my Synology and install ubuntu there…

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.

Any ideas on how to adjust things to put a slider in to control a light dimmer?
or to put data onto LVGL displaying a sensor?

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?

1 Like

It has been a problem on openhasp on the guition 4 inch.

1 Like

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.

I got a lot of phantom touches at first i thought my unity was defective. Sometimes it occurs every min, sometimes every 8h.

@clydebarrow Can u take a look on this noise cancelling from openhasp? (Sorry for the ping, i know u muted this topic :sweat_smile: )

1 Like

Has anybody actually had issues with phantom touches on ESPhome? I have about 10 screens from different manufactures and have not seen this issue.

Post 273 has the problem

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.

1 Like

Yes, i’m using esphome and sadly the phantom touches occurs

        - button:
            height: $button_height_double
            id: lv_button_14 
            widgets:
              - slider:
                  id: dimmer_slider4
                  x: 30
                  y: 10
                  width: 20
                  height: 180
                  pad_all: 4
                  min_value: 0
                  max_value: 255                 
                  on_release:
                    - homeassistant.action:
                        action: light.turn_on
                        data:
                          entity_id: $lv_button_14
                          brightness: !lambda return int(x);
              - label: 
                  align: bottom_mid
                  text: $button_14_name 

Thats all I put in and was able to draw a slider on and control it