New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

Has anyone raised the issue of @Thorgal789 regarding a display system for our beloved Domoticz?
I have been struggling for several weeks with no results. It keeps giving me some errors in Platformio. If we do not improve the operation of our Domoticz ourselves, the project will eventually die in favor of Home Assistant. I'm not saying HA is bad. It is a very well-supported system. This happens because of the users. My friend @Thorgal789's project seems great. Only from the movie for now :(
If anyone managed to get something out of this project, please let me know on this forum.
My friend @Thorgal789 is trying very hard. It keeps sending me files but without success. It's hard to create something blindly because my friend @Thorgal789 doesn't have any other displays apart from Sunton. I have a Makerfabs 4.3" display and together with @Thorgal789 we are trying to do something with it. I am counting on my friends from the forum. Let's not give up.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by waltervl »

@knazio I can understand your doubts using this new development. I can only not see why failing this development would run you to HA? What has that to do with this? There are also other nice Domoticz dashboards on Android possible.

If you have issue on platformio don't blame Domoticz.....

And you do not share here what exact your issues are. You could also support Thorgal789 with the funds to buy a makerfab 4.3?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

I don't blame Domoticz. It didn't even occur to me. I love Domoticz.
I am from Poland and my English is poor. I use Google translator. Maybe that's why you misunderstood me. I'll say it again: I love Domoticz and use it all the time. I can't think of a better system to use at home.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by waltervl »

Good! Love that :-)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by Thorgal789 »

He don't share his issues because they are specific to his hardware, but we are trying to adapt the code to the esp32-E32S3RGB43 hardware.
There is a branch "called" test on the github where were are working ATM but for the moment not a success.
As issue it's simple, not working at all ^^.
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

Maybe I'm just uploading this file to my display incorrectly. I do it with flash_download_tool_3.9.5
In the same way, I upload the bin file from Openhasp and it works. The only thing is that I load the Full.bin file into Openhasp and @Thorgal789 probably sends me OTA files from Platformio. That's why I wanted him to send me the Full.bin file
Attachments
esptool.jpg
esptool.jpg (62.25 KiB) Viewed 1636 times
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

As far as I know, in order to obtain two files full.bin and ota.bin in Platformio, the project must be loaded via Git
Attachments
platformio2.jpg
platformio2.jpg (230.19 KiB) Viewed 1631 times
platformio1.jpg
platformio1.jpg (184.84 KiB) Viewed 1631 times
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by Thorgal789 »

On your capture you are using DIO, and they are saying here to use QIO https://wiki.makerfabs.com/ESP32_S3_Par ... Touch.html
There is so much contradictory information for this device ...

On my platformio I haven't configured anything for OTA, when I start a compilation, I have only 1 file every time. Can you share your platformio logs when launching the compilation ? (But on separate site, like pastebin pls ?)
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

I uploaded it with the QIO setting. Same. Black screen. If you do as I wrote in the last post on the forum (pictures), you will receive two files from Platformio. (full and ota)
But I'm telling you again that you need to change line 14 in the esp32-E32S3RGB43.json file from the boards directory "-DTFT_BACKLIGHT_ON=HIGH" to "-DTFT_BACKLIGHT_ON=LOW",
otherwise my display with a soldered resistor will not work. The screen will be turned off.
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

Is the CYD project dead?
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by Thorgal789 »

Nope, I m still ont it.
For the moment, I m searching a square device but less than 7cm*7cm (after reflexion all my wall switch/plug are square)
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

PXL_20240216_184830329_rs.jpg
PXL_20240216_184830329_rs.jpg (18.48 KiB) Viewed 1406 times
I also compiled and uploaded your project to esp32-2432S028R. I connected to the network (selected my SSID) and entered the password. I also filled in the data for Domoticz (IP and Port). I entered the IDX of three of my devices. This is what I got on the screen:

And that's all. I can't see my idx. I don't even know if it connected to my Domoticz. It's useless to me for now
Attachments
PXL_20240216_184853437_rs.jpg
PXL_20240216_184853437_rs.jpg (16.36 KiB) Viewed 1406 times
PXL_20240216_184843069_rs.jpg
PXL_20240216_184843069_rs.jpg (15.58 KiB) Viewed 1406 times
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

And where are the water fountains shown in the film?
gropi
Posts: 13
Joined: Thursday 26 April 2018 20:03
Target OS: Linux
Domoticz version: 4.11786
Location: Germany
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by gropi »

Is there a possibiity to display Dashticz on that screen? Like to cast it or serve the html from the server where Domoticz is located.
In that case You could edit the screen content quite easily and have a fancy site.
Domoticz Version: 2023.1
Platform: Openmediavault 6; Docker; HP Microserver Gen8
Plugin/Hardware: MySensors Gateway; Philips HUE Bridge; OMG; ZigBee;
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by Thorgal789 »

@kniazio, on your first capture, go in "setting".
- Check or uncheck "Invert colors"
- On bottom "Dft devices", set the devices you want to be displayed in home page, else it will be 1,2,3,4,5,6,7,8,9.

If you want to be faster on the code, on file platoformio.ini enable the line 33

Code: Select all

-DFORCE_CONFIG
and you can set all your setings in main.cpp file. Wifi, domoticz and IDX to display, easier than using the touchpad to set them.

Code: Select all

const static int t[] = {37, 81, 16, 36, 28, 35, 57, 3, 45};
On your last capture, press "light", you will see all your "lights" devices.

"Water foutain" ? was not an Humidity sensor ?

@gropi, no, those devices are not powerfull enought to use a complete web browser.
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

Work on the Makerfabs display is in full swing. Working with @Thorgal789 is a pleasure. He reacts and responds to my requests and inquiries immediately. Every comment I make is accepted and resolved as far as possible. @Thorgal789 approaches it very professionally.
Here are samples of my display made by @Thorgal789.
Attachments
PXL_20240218_060649616_rs.jpg
PXL_20240218_060649616_rs.jpg (55.25 KiB) Viewed 1329 times
PXL_20240218_060642819_rs.jpg
PXL_20240218_060642819_rs.jpg (38.31 KiB) Viewed 1329 times
PXL_20240217_162106183_rs.jpg
PXL_20240217_162106183_rs.jpg (24.35 KiB) Viewed 1329 times
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by kniazio »

homescreen
Attachments
PXL_20240219_183011770_rs.jpg
PXL_20240219_183011770_rs.jpg (39.45 KiB) Viewed 1304 times
palnic
Posts: 36
Joined: Wednesday 13 September 2017 15:40
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8153
Location: Chicago
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by palnic »

Thank you for your amazing job, it is going to be a good addition to domoticz. I am trying to use esp32-2432S024C board, updated the board definition but still got an error "error: 'TFT_WIDTH' was not declared in this scope" and " 'TFT_HEIGTH' was not declared in this scope". Your help will be greatly appreciated. Thanks.
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by Thorgal789 »

I have updated the code to "trying" to support your device (just comment/uncomment in platformio.ini file), I m using pin from here https://github.com/Smanar/CYD-Domoticz-Remote/issues/2
The code compile, but I think your device don't use the same driver, I m using DILI9341_2_DRIVER but I think you need to use DILI9341_DRIVER, problem with this driver you will miss some declaration.

I m searching a working project with this device, and you will probably need the same lib than @kniazio (lovyanGFX), but I prefer make try first with TFT_eSPI

Edit:
Have found a new configuration

Code: Select all

      "-DILI9341_DRIVER=1",
      "-DESP32_2432S024C",
This one is compiling, I don't think the touch will work but I think the display will be fine.
This last change is not yet on the github.
User avatar
madpatrick
Posts: 636
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: New project, a small wall display to control Domoticz using CYD (Cheap ESP32 touchscreen)

Post by madpatrick »

Thorgal789 wrote: Tuesday 13 February 2024 19:07 Nope, I m still ont it.
For the moment, I m searching a square device but less than 7cm*7cm (after reflexion all my wall switch/plug are square)
Maybe this is womething your are looking for ?

https://nl.aliexpress.com/item/10050063 ... pt=glo2nld
2024-02-25 15_23_08-ESP32-S3 3.92 Inch Ips Lcd Touch Display 3.92 ''Smart Screen Displaywall Schakel.png
2024-02-25 15_23_08-ESP32-S3 3.92 Inch Ips Lcd Touch Display 3.92 ''Smart Screen Displaywall Schakel.png (275.99 KiB) Viewed 1065 times
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests