Search for a section called “layout:”. Amazingly this is how you change the layout
Thanks for the help.
Now I’m trying to put a digital clock on my screen, and I’m doing it like this:
script:
- id: time_update
then:
- lambda: |-
auto time = id(system_time).now();
id(digital_clock).text = str_sprintf("%02d:%02d:%02d",
time.hour,
time.minute,
time.second);
But I’m getting an error. Does anyone know what the correct setting is?
You did not post the error you got so it’s hard for us to know what is wrong.
That is not the way you update an LVGL object. I recommend reading the documentation or looking at the way I update LVGL objects in my libraries.
I do have a default button that shows the time. Check out SDL-lvgl-display_modular.yaml for an example
Sorry, I thought I’d copied the error, but I didn’t.
Anyway, thanks to your SDL-lvgl-display_modular.yaml file, I was able to fix the problem; it was a syntax error.
Thanks for the help.
Hello
I’m using the guition-esp32-s3-4848s040-display_modular example as the basis for my screen.
But I’ve noticed that the screen occasionally restarts on its own, bringing up the boot_screen again.
I don’t know why it restarts on its own. Has this happened to anyone else?
Thanks.
Power supply? Do you use model with PSU on the back or do you power it via USB?
- if USB: it can be not strong enough. USB2.0 is definitely not enough - since it has 500mA current limit guition’s consumption spikes can cause reboots; i’d say 1A psu is minimum for reliable work - dont’ get me wrong: guition itself doesn’t draw that much current, but there are spikes when 500mA can be too low (like wifi reconnect, rescan …) and that can cause reboots.
- if original: there were reports of badly done psu - especially 330uF capacitor not being soldered properly (on some occasions it just fell off when disassembled). Check whole PCB for faults, especially 230 -->5V part. Just watch out - mains voltage is there!!!
There were also reports of random wake-ups - i experience them on both of my lcd’s. Even with “noise cancel” addon things didn’t improve, only solution is to use “on_long_press” instead “on_press” and set long press time to 50ms or so. Did you have and such random wakeups? It looks like someone touched lcd, so if you have it turned off it will light, or some button will trigger by itself…
The screen is in standby mode and no one touches it, and suddenly it restarts. I’ve been watching the live log and noticed that before the restart, it had lost connection to the HomeAssistant API.
Could that be the reason? And if so, why does it lose connection when the Wi-Fi connection is very good, since the router is right next to it?
Thanks!!
Yes, since by default reboot_timeout is set to 15 minutes (unless you changed it), which means if device doesn’t reconnect to HA in that time it restarts.
If that is happening to you check if device also looses wifi connection (if that happens restart also happens after timeout, default is again 15 minutes).
You can disable auto-reboot by setting reboot_timeout =0, but i guess that you must find out why device is dropping from HA in the first place… my guess would be loosing wifi connection…
The Wi-Fi doesn’t lose its connection, because I’ve been pinging it constantly, and it doesn’t go away until it restarts. I’ve also verified that the restarts don’t always occur after the same amount of time. It can go for hours without restarting, or it can restart twice in less than 10 minutes.
Hm… that’s odd… did you modify reboot_timeout time? If not, only thing i can think of is that your module is constantly dropping connection with HA, but many times just for a short time (if connection is reestablished before 15 min timeout this countdown is zeroed), but occasionally it happens that connection is off for more than 15 minutes, thus reboot.
On the other hand, esp32 module on guition can be defective…
Connect usb from guition to a PC and monitor log output with some terminal program. This way you’ll see what message appears when connection is dropped.
I could write an app in vue where you need to drag and drop ready widgets. But,
- It will take a lot of time
- The problem with the discrepancy of the actual displayed colors
- There may be other problems that I don’t know about yet
In principle, I already have part of the code. I wanted to implement this in another app, when I finish it, which rewrites the home assistant frontend in vue for smart screens on Android and PC for custom designs
Hi!
I haven’t changed the reboot_timeout.
I have the screen connected to the computer via USB, and in the log, when it says “API disconnection,” it reboots!
What I don’t know is if it’s been disconnected for 15 minutes or not. I’ll run some tests and let you know.
more or less final version for me. (Screenshoot support would be finer :))
Clock page with animated weather icons. Open by touch or motion sensor - switch to standby clock after certain time.
Header bar icon and color change based on state.
Brightness slider visible with state when light is on.
Room temperature, radiator state and battery state based on the radiator with colored icon based on battery state.
Sonos page with cover integration, update of titel, artist etc.
Standby clock page - load after certain time automatically as default page, switch off during night.
Heating radiator page.
Covor page.
Added weather page, which is only visible by touching the clock_page everywhere beside the three light buttons (standard main page after standby). Day and night values where available will change over HA accuweather at 8pm.
I think Iḿ done now, no further ideas
little update, added swipe function to change between the pages, instead of only use the footer buttons, for them you prefer it. Not fully tested but seems to working:
[02:16:54][I][touch:4617]: Swipe: left to right
[02:16:54][I][change_page:4742]: Change to page 3
[02:16:56][I][touch:4617]: Swipe: right to left
[02:16:56][I][change_page:4742]: Change to page 4
Looks nice, do you have also the code to share?
Just implemented it at home — translated and adapted it a bit to fit my setup and language… and wow, it looks amazing!
I really love how everything comes together — especially the icons and state-based colors, they make a huge difference in clarity and usability.
Thanks a lot for sharing this, it’s incredibly well done.
you can find everything here: git
Thought I’d share mine
Main page
Air Con Control page. Initially I started with an arc but due to a bug with the hit box extending to undrawn places (the hit box exists as if the arc were a full circle), I’ve gone with buttons
Brightness and colour temperature control page; no support for colour selection yet
Turning off the lights and fans in other areas of the home; from the comfort of the Master Bedroom
General settings and information
Good job @fusionstream. Nice view.
Can you share the code?
Thanks