Working on a thermostat using the #esphome climate platform.

Gets temp data from a #homeassistant entity that is the average of many temp sensors. If that's unavailable, it uses the on-board temp sensor.

Could be reduced to just the #esp32 and relay, and use home assistant's interface but I want a device that can also be used if my #homeassistant is down.

Parts: esp32-c3 (Lolin C3 pico), a relay, SHTC3 temp sensor, OLED display, buttons.

yaml: https://gist.github.com/tkroo/014696aeb0e760bbe80b2a31aa90603d

esphome-thermostat.yaml

GitHub Gist: instantly share code, notes, and snippets.

Gist
@tkroo I have a similar thermostat and desire for offline functionality. I make Home assistant compute an average based on the rooms I care about and then compute an offset between the average and the local sensor in the thermostat. The thermostat copies the offset and if HA or wifi ever goes down, it will use the local sensor with whatever the last offset was.