Skip to content

ESPHome based thermostat controller for Cheap Yellow Display (CYD)

License

Notifications You must be signed in to change notification settings

crtvrmn/cyd-thermostat-usb-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cyd-thermostat

ESPHome/Home Assistant based thermostat controller for Cheap Yellow Display (CYD).

cyd-thermostat in action! CYD thermostat controller controlling my studio thermostat

The "ESP32-2432S028R", an ESP32 with a built in 320 x 240 2.8" LCD display with touch screen, is colloquially known as the "Cheap Yellow Display" or CYD. It's about $15 delivered and offers an easy, no-solder touch display to control your smart home. It is supported in ESPHome and can be used to easily visualize Home Assistant entities and control Home Assistant itself, straight out of the box. You can find out more about the CYD on Brian Lough's CYD repository, check out this Hackster article, or watch Brian's video on YouTube:

Cheap and Easy to Use ESP32 Screen!

This code is my first experiment to create a thermostat controller on a CYD, programmed using ESPHome and connected to a thermostat in Home Assistant.

Installation

  • Follow normal ESPHome instructions.
  • Copy the yaml code into a new ESPHome project.
  • Modify the substitutions. Pay particular attention to:
  • thermostat_entity: Fill in the climate entity in Home Assistant that you are controlling with this CYD.
  • temperature_entity: Fill in the current temperature sensor you want to display. The sensors built into TRV climate entities are often too sensitive to heat (close to the radiator) and cold (close to windows) so it's better to use a temperature sensor located more centrally in the room for accurate readings.
  • If you still want to use the current temperature sensor built into your climate entity, scroll down to the sensor: part of the yaml code. There is a replacement block of code you can use in the comments.
  • You need to the connect the CYD by cable for the first flash of an ESPHome firmware; all future updates are flashed over-the-air.

ESPHome no longer lets devices make Home Assistant service calls by default. Because the thermostat commands used here are service calls, you will need to turn this on manually for every new device:

Go to: Settings > Devices & Services > ESPHome > Configure (on the right of your CYD device) > turn on "Allow the device to make Home Assistant service calls."

ESPHome device service calls window!

Thanks

This code is based on the ESPHome example code by Jonny Bergdahl.

About

ESPHome based thermostat controller for Cheap Yellow Display (CYD)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published