I have been seeing these a lot of Aliexpress lately for around $27. They check all the boxes for me
Fast CPU
Lots of memory
Great format
Easy wall mount as a wall switch
120v relay included
Does not require programming another internal device for LVGL like NSPanel
Many thanks to everybody on the ESPhome discussion board for helping me get this working. I initially tested it with the openHASP project. This works very well but you a limited to what you can do with it.
I really like the infinite flexibility of ESPhome. I think it would be easy to build a complete automation system on the is screen without Homeassistant or anything else.
I have concentrated on building a simple light switch with it although it would be easy to build a multi page panel. I used the new LVGL library. The buttons are on a flex grid so if you remove one the other buttons float to fill in the space. This is much easier then locating the button with exact pixel location.
Over all I think this is a huge feature for ESPhome!
This GitHub folder has all the yaml files I have created for this device
(08/22/2024) - Remove dependencies on BETA LVGL code. LVGL is now part of ESPHome 2024.8.0!
(08/04/2024) - Updated to match the recent changes in the LVGL code
(06/17/2024) - Added it to ESPhome supported devices
(05/15/2024) - This is the code for the demo button panel above. It has been updated with the fixes from @rocob below.
This is a DIY forum and you do have to be a little bit creative to mount these. I’m in the USA and I used this box from Ali to mount it in the drywall walls we have here.
There are other types of boxes you can use in pretty much any other part of the world to get this wall mounted. It’s much better then trying to make a 3d printed case for other types of ESP32 screens that have no cases included. This screen comes apart so you can screw it to the wall and the screen hides the screws!
It does work well with openHASP. I tried that first before ESPhome. I had to build my own image but it worked fine. I really like the simplicity of programing but the integration to Home assistant is messy compared to ESPhome and the ESPhome version of LVGL (newer) is much better and way more flexible. It supports FLEX grids!
This configuration is incorrect because with this you have only achieved a color depth of 4 bits for the colors red and blue. The red and blue pins must remain as originally connected (in the correct order). It is only necessary to change the MDT flag to log 0 (command 0xCD). See https://focuslcds.com/wp-content/uploads/Drivers/ST7701S.pdf on page 276 and page 73. There is one more command to be given before this command. See the patched code section below also with the pins reversed back.
Here you can find how to disassemble it and the GPIO for the relay.
The board for 1 relay and 3 relays is the same size.
I have both and they work very nicely in openhasp including relay control.
This action changes the page to the next/previous based on the configuration (pages with their skip option enabled are…skipped). Page changes will wrap around at the end.
I’m forwarded the answer i received from @agillis GitHub
Yes at some point I’ll start adding more features to this code. In the mean time the documentation from ESPHome has information on this subject. Check out the sections “Turn off screen when idle” and also “Prevent burn-in of LCD”
Good day everyone. Thank you guys for your hard work on this devices. I order one and try to programmed. One thing I don’t understand in the code. Fonts in original code don’t let me compile this to the unit: