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

Ltech
Posts: 4
Joined: Sunday 23 February 2025 21:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Ltech »

Yes, roll back the invert ligt, and put the lightness to 0
Thorgal789
Posts: 874
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 »

Nice, so if I m right code updated with your device.
iw2fag
Posts: 5
Joined: Sunday 19 February 2023 15:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by iw2fag »

Good morning, this is an interesting project.
To display the instantaneous powers instead of the accumulation, I made a change to the code.
It would also be very interesting to have more than one page that can be updated.
I have tried to make a few changes but so far nothing significant, I need to read the code better to understand what to do.
My CYD device has the ILI9342 driver (9341 vs 9342 landscape vs portrait)

Starting from CYD-Domoticz-Remote-3.0.0.tar.gz for now I have made two moficies working perfectly
The first one because the device names would not be clearly visible.
in platformio.ini
..... omissis
#-DSMOOTH_FONT=1
-DTOTAL_ICONX=2 # How many icon widht
-DTOTAL_ICONY=3 # How many icon heights
-DDEVICE_SIZE=1 # Device display size
..... omissis

in data_setup.cpp
omissis ......
//if (RJson2.containsKey(“Data”)) JSondata = RJson2[“Data”];
//if (RJson2.containsKey(“Level”)) JSonLevel = RJson2[“Level”];
if (RJson2[“Data”].is<const char*>()) JSondata = RJson2[“Data”];
if ((myDevices[ID].type == TYPE_CONSUMPTION) || (myDevices[ID].type == TYPE_POWER))
{
JSondata = RJson2["Usage"];
}
...... omossis

In the near future, I will try to introduce a switch, e.g. something like
#-DFIELD_SEL=1 // energy on meter power.
Thorgal789
Posts: 874
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 »

Hello,
It would also be very interesting to have more than one page that can be updated
You mean if you use the option

Code: Select all

DBONUSPAGE=X
?

Edit:
Have started something, but after reflexion, I m not sure it's usefull.
The homepage is to display your more usefull widgets, permanently, if you have 2 pages, it mean you loose 50% of your importants widgets because you can't see them, if I want to display more than 3*3 widget permanently, better to take a bigger display.

Others page than the homepage are updated when you display them ? (but not in real time)

For the "JSondata = RJson2["Usage"];"
I have made a try on my side, device type TYPE_POWER, are displaying instantaneous powers on my side by defaut
And right, TYPE_CONSUMPTION display lot of data, but never the instantaneous powers, but for me it's normal this widget is for consumption.

If you are interested by "Consumption Statistic" I m on a new project, using E-paper, not in real time (to save battery, so bad for instantaneous power), not action possible, but bigger display and work on battery, so it's possible to put it everywhere.
maybellebodie
Posts: 1
Joined: Wednesday 03 December 2025 8:17
Target OS: Windows
Domoticz version:
Contact:

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

Post by maybellebodie »

Following this thread actually reminds me of those simple wall panels you see in a lot of home-automation scenes in movies. Nothing fancy — just clean, quick controls. The CYD setup here feels pretty close to that, and it's great to see it working so smoothly. Thanks for sharing all the updates!
Thorgal789
Posts: 874
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 »

Few updates for the moment.
I m wating for the new widget that mix a temperature sensor + the setpoint (with options like min/max)
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

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

Post by waltervl »

Thorgal789 wrote: Wednesday 03 December 2025 16:52 Few updates for the moment.
I m wating for the new widget that mix a temperature sensor + the setpoint (with options like min/max)
Should be there in latest beta : https://github.com/domoticz/domoticz/pull/6444
https://github.com/domoticz/domoticz/pull/6467
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: 874
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 »

waltervl wrote: Wednesday 03 December 2025 17:04 Should be there in latest beta : https://github.com/domoticz/domoticz/pull/6444
https://github.com/domoticz/domoticz/pull/6467
Yeah ^^.
I don't think I'm the only one who's going to love the new widget :).

And they are still working on it
https://github.com/domoticz/domoticz/pull/6475
Thorgal789
Posts: 874
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 »

Ok, so the code is updated on branch "test"
Not official yet, because I need to re-test all widgets, it seems some libs was updated and have broked some features.

But I have added the weight widget (I need it for my cat) and have improved the thermostat widget, now it support min/max/step, I m using an "arc" widget instead of a "slider".
And If you are using the new "mixed" thermostat (the same widget can be used for temperature and setpoint), you have the temperature on the homepage, but if you select the widget you have access to the setpoint.
Have corrected the dimmer slider, it send request only on release, not during the selection with the finger.
-
-
Thermostat_widget.jpg
Thermostat_widget.jpg (117.05 KiB) Viewed 92 times
dashboard_thermostat.jpg
dashboard_thermostat.jpg (163.91 KiB) Viewed 92 times
Thorgal789
Posts: 874
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 »

The new version is now online, on master branch.
Some cosmetic changes, the group/scene widget now react on clic.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest