Using a cheap yellow display (CYD) to interface to an existing template like a phone

So my wife and I have been using a Blynk App for years to control a thermostat I developed with an ESP8266. The ESP8266 has the logic and Blynk code to control the relays that interface with the auxiliary equipment. Everything works great!

So now I developed a ESP32 Cheap Yellow Display (CYD) interface that looks just like the display on our phones. I would like to use this CYD much like a phone to interface with the Blynk IOT template to control the thermostat. Is there a way to do this?

Regards,
Roger

Yes, it’s possible.
Each time one of your interfaces (Blynk or the touchscreen) is updated it needs to update the other interface.
So, if your Blynk app sets a target temperature of 24° then it will trigger the corresponding BLYNK_WRITE(vPin) routine, and you’ll need to update your touchscreen’s target temperature.
The same applies in reverse, with touchscreen input being reflected in the Blynk app via a Blynk.irtualWrite(vPin, value) command.

I do something similar using a Nextion display, but also use Amazon Alexa commands to control the heating/cooling too….

Pete.