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

Thanks, but I’ve already managed to fix it.
2024.9.2 was giving these errors:

/config/esphome/painelquarto.yaml:485:44: error: 'class esphome::image::Image' has no member named 'get_lv_img_dsc'
             src: base
                                            ^             
/config/esphome/painelquarto.yaml:866:60: error: 'class esphome::image::Image' has no member named 'get_lv_img_dsc'
             src: fr_esq_on
                                                          ^             

and

/config/esphome/480_panel/include/weather_images.yaml:17:47: error: 'lv_img_from' was not declared in this scope
             lv_img_set_src(display_weather_image, lv_img_from(clear_night));
                                               ^~~~~~~~~~~
Compiling .pioenvs/painelquarto/lib864/lvgl/font/lv_font_montserrat_36.o
/config/esphome/480_panel/include/weather_images.yaml:17:47: note: suggested alternative: 'lv_img_t_id'
             lv_img_set_src(display_weather_image, lv_img_from(clear_night));

The first erros were fixed with update 2024.10.0.

The second errors were fixed by changing:
From:

            lv_img_set_src(display_weather_image, lv_img_from(clear_night));

To:

            lv_img_set_src(display_weather_image, clear_night->get_lv_img_dsc());

Still have the same error code ,after I remove these lines from my code

guition-esp32-s3-4848s040-display_basic.yaml

Try building this file. Does that work?

I change just a part with ID’s, still no luck. Now I got different error message:

Yeah not sure. It must be an issue with your code.

really struggling wtih getting a button to display a sensor value instead of its name.

  1. defined the sensor in sensor: -platform:homeassistant.
  2. cant get the next bit as it requires lambda and theres no guides and chatgpt seems to be struggling too

If I get what you mean, I show a sensor of an Athom smart plug on my Guition screen:

 - platform: homeassistant
    id: athom_voltage
    entity_id: sensor.athom_smart_plug_v3_f8c944_voltage
    entity_category: diagnostic
    unit_of_measurement: "V"
    on_value:
        then:
          - lvgl.label.update:
              id: label_athom_voltage
              text:
                format: "Voltage: %.0f V"
                args: [ 'id(athom_voltage).state' ]

So this will let you pull the voltage being run through the athom device?
what bits do you put in to make it display as a label though? (under the button: bit of it?)

  - platform: homeassistant
    id: total_load
    entity_id: sensor.solis_household_load_power
    entity_category: diagnostic
    unit_of_measurement: "W"
    on_value:
        then:
          - lvgl.label.update:
              id: label_total_load
              text:
                format: "Load: %.0f W"
                args: [ 'id(total_load).state' ]

thats what ive put in under sensor.
but when i put in this into the button it doenst show it:

        - button:
            height: $button_height_single
            checkable: false
            id: lv_button_7
            widgets:
              - label:
                  text_font: $icon_font
                  align: top_right
                  text: 33
                  id: lv_button_7_icon
              - label:
                  align: center
                  text: $label_total_load

Will check all lines of my code.
But before last esphome update was no problems to do the updates,and I didn’t change anything since I put this code together

This code says to update the text field of id: label_total_load with id(total_load).state

None of these have an id of label_total_load so nothing gets updated

try this

              - label:
                  id: label_total_load
                  align: center
                  text: "Load: N/A"

thanks for your input - which makes sense.
however i get this now:

Compiling .pioenvs/guition-esp32-s3-4848s040-1/src/main.o
Linking .pioenvs/guition-esp32-s3-4848s040-1/firmware.elf
/data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pioenvs/guition-esp32-s3-4848s040-1/src/main.o:(.literal._Z5setupv+0x6ac): undefined reference to `vtable for esphome::homeassistant::HomeassistantSensor'
/data/cache/platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pioenvs/guition-esp32-s3-4848s040-1/src/main.o:(.literal._Z5setupv+0x6b0): undefined reference to `vtable for esphome::homeassistant::HomeassistantSensor'
collect2: error: ld returned 1 exit status
*** [.pioenvs/guition-esp32-s3-4848s040-1/firmware.elf] Error 1
========================= [FAILED] Took 14.08 seconds =========================

I love this man!
i had to do something called ‘clean build files’ then it seems to all work.

i am going to update my climate buttons to show the values now.

1 Like

Yeah if you clean before build it eliminates a lot of possible errors. But it’s slower so I only do it if I get an error!

Check out my modular button system

You can see all my buttons have labels so they can be updated.

1 Like

oh wow you have updated it!
I am using your system and it really is fantastic.
ill update mine now - the problem I have is now that I have it installed on a wall I cant mess it up, else ill get gip from the wifey.

Hello there,

These Parts are missing on my display: C1 L4 and R4

I already added the C1 and R4, but need some info with L4 part. Somebody able to measure it, that what the correct type that need to buy?

What values did you insert for C4 and R1?
I guess that inductor should be ok any from a dimmer or similar device. I see that aliexpress sells them, values are from 1 to 10mH…
I just looked: parts are missing in my lcd, too…

Wile doing research on the device I came upon this post that lists the missing parts.

https://michiel.vanderwulp.be/domotica/Modules/SmartDisplay-ESP32-S3-4.0inch/power-supply/

Yes i also found it, but it only talking about C4 and R1

Is that just for filtering main supply I guess? I have 5 of those displays now, but none of them has those parts.

Yes, for filtering mains spikes, interference etc. I guess it may affect those random touches on some devices also.
I’ll just order one of THESE (oops… wrong link! Look a few posts lower!) according to dimensions (to fit on the pcb), since exact value doesn’t really matter much (anythyng is better than none).