Hello,
I would like to use esp8266 (esp01) for temperature control with esphome via homeassistant. I already have such a solution, but I would need to upgrade (improve) it. I have to heat up to max 28C with homeassistant climate. what I would need to solve: if the temperature value rises above a certain degree (e.g. 30 C) and the esp8266 does not have a wifi connection at that time (that is, it cannot communicate with homeassistant), then I would need to immediately turn off the relay in an emergency.
How could I program it?
Am I right that if I use on_value_range, the relay will turn off above 30C and turn on below 5C? Will I be able to handle the values between the two in homeassistant (for example, between 7C and 28C)?
As others mentioned, for this kind of scenario it usually makes sense to do it all on the ESP device. There are a couple climate options with ESPHome depending on what you’re trying to do, but here’s probably the most basic/common:
Please format your code correctly. It will help others identify any issues with spaces (very important in yaml) as well as making your code easier to read.