Then tested that sensor in an automation. I could not find a way to trigger the automation other than when house temp falls below a certain threshold, nor could I use the template sensor in the automation without errors. Then the condition has to be met before it runs.
The trigger I set up fails if the temp doesn’t rise above the trigger temp and then back down past it again, I woke up to a really cold house this am… And to complicate things, the BME280 sometimes doesnt register on the i2e bus… which causes me to change it’s address in the config file before it’s recognized again. very strange.
[07:21:35][C][i2c.arduino:044]: Recovery: bus successfully recovered
[07:21:35][I][i2c.arduino:054]: Results from i2c bus scan:
[07:21:35][I][i2c.arduino:060]: Found i2c device at address 0x77
yes, my logic made the assumption that the temp was high enough to start with - it was basically only triggering as the temp fell down past the 5 degree difference. If it is already below that aren’t you already in trouble?
Another way to do it is to maybe have: trigger: house_temperature is >=5 degrees below house_set_temp condition: house_temperature is falling
…this would trigger even if the start point was already more than 5 degrees below the set_point. Would that help?
I sincerely appreciate the help you’ve offered up. I’m going to implement the newly esphome/Tuya MCU flashed control module tomorrow on my main stove, and many of the problems you helped me solve will be incorporated into that.
I have some challenges though. The biggest is that normally the Tuya control app changes the target temp on the stove itself. It’s all self contained in the stove. The Tuya MCU ESPHome code is not bidirectional in the same way. The only control I have is the on/off switch on the stove. Which means the Im going to have to set the set temp value on the stove to a maximum temp I can stand and hope the esphome control sw is reliable in shutting the stove off when the set temp detected by home assistant is reached.
In theory it should work fine. I can read the room temp reliably from the stove and turn it on and off reliably via esphome, at least in my extensive bench tests. Time will tell!
I wish I knew who the programmers are for the Tuya MCU modules in ESPHome. I have LOTS of questions and thoughts on their implementation. Ie, why can the OEM Vendor’s Tuya based control app programatically set the target temp on the stove and ESPHOME cannot? The same with ECO Mode and the P1-P4 power levels. I can read those values set via the front panel of the stove thru Tuya MCU, but there is no way to set them. It’s unidirectional only, and limited by design. I’m not sure why…
Regardless, the frigging stove in my main house shut off no less than 5 times today, again for no reason, and now I can detect it and turn it back on. Happy wife, happy life as they say!
Well, its all working - I had to get the ESPHome devs to make a change to the Tuya code for it to work w/ my stove. That was quite the adventure! At least I learned how to use Discord. Cool tool. Some of the folks arent too friendly tho.
Now I’m trying to get the UI to look right… Here’s another head scratcher.
I can change the state of the error by adjusting the value of set temp. If it’s 4 degrees below current temp, the sensor goes True, but the automation does not trigger
Sort by status (you may need to click twice) but then the unknowns and unavailable will come to the top. Select and delete. You can also rename the new ones (to remove the '_2" there as well).
I think I’ll start a new topic and put it out there at large. There has to be a simple answer or it’s a bug. What it took to get my stove working w/ esphome was rocket science. This should be easy…