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.
should have posted it here.
I’m really battling this one… I have a sensor set up:
[image]
sensor.esph_house_stove_eco_mode_2 is either 1 or 0 depending on the ECO mode. I can watch it change in Dev Tools when I change it on the wood stove.
I want to display the ECO mode ECO2 or ECO2 in a Lovelace card instead of 0 or 1.
my sensors.yaml has this:
- platform: template
sensors:
pellet_stove_eco_mode:
value_template: >
{% set Pval = states(states.sensor.esph_house_stove_eco_mode_2) | int %…
jchh
((not John))
November 15, 2022, 8:00am
28
someone already answered before I woke up
They did and it works!
I’m still having problems getting my automation to trigger.
I’ve set up 3 triggers, none of them worked last night as the stove had randomly turned itself off this morning.
alias: "Fix wood stove error "
description: ""
trigger:
- platform: template
value_template: >-
"{{ states('sensor.esph_house_stove_current_temp_2')|float(0) +4 <=
states('sensor.esph_house_stove_set_temp_2')|float(0) }}
- platform: numeric_state
entity_id: sensor.esph_house_stove_current_temp
below: 63
- platform: state
entity_id:
- sensor.stove_error
from: "False"
to: "true"
condition: []
action:
- service: climate.set_hvac_mode
data:
hvac_mode: heat
target:
entity_id: climate.house_wood_pellet_stove
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
And after I raise the temp to 70 which is current temp + 4
Stove remains off.
If I run the automation manually, the stove turns on.
I’m baffled
jchh
((not John))
November 15, 2022, 4:50pm
31
why do you have ..._2
? Did you change the entity names or are you now looking at the wrong entities?
Also, what does the template show in Dev tools > templates when you chnage the settings?
[edited for typos and clarity]
Somehow esphome created new entities when I renamed the module. But it’s the right sensor
I see why my fallback failsafe didn’t trigger last night.
I’d love to know how to delete all the random unused entities but I haven’t found a way yet…
jchh
((not John))
November 15, 2022, 5:13pm
33
goto settings > devices & services > entities.
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).
jchh
((not John))
November 15, 2022, 5:14pm
34
I suspected this, hence the question.
Im still battling the automation trigger. any ideas?
jchh
((not John))
November 15, 2022, 5:55pm
36
What does the template show in Dev tools > templates when you change the settings?
It works just as I’d expect it to when I change the thermostat temp.
state test: {{ states('sensor.esph_house_stove_current_temp')
|float(0) +4 < states('sensor.esph_house_stove_set_temp')|float(0)}}
Current: {{states("sensor.esph_house_stove_current_temp")}}
Set: {{states("sensor.esph_house_stove_set_temp")}}
increasing temp to 73:
changes to True, but no trigger…
jchh
((not John))
November 15, 2022, 7:12pm
38
dumb question, but the automation has been enabled, right?
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…
jchh
((not John))
November 15, 2022, 9:53pm
41
OK, sorry I wasn’t able to help.
No worries! That’s what these forums are all about. You helped me A TON! Much appreciated.
Jeff
Binary sensor… that’s the key that unlocks it and triggers the automation based on state change. Nothing else worked.
binary_sensor:
- platform: template
sensors:
bs_stove_error:
friendly_name: "BS Stove Error"
value_template: >-
{{ float( states('sensor.esph_house_stove_current_temp') , 0) <= float(states('sensor.esph_house_stove_set_temp') , 0)-4 }}
Automation:
platform: state
entity_id: binary_sensor.bs_stove_error
to: "on"
Finally!
jchh
((not John))
November 16, 2022, 9:47pm
44
Makes sense, binary_sensors are best for off/on things,
Glad it worked out!
It actually was syntax errors as to why the others didnt trigger… 2 really little things. . I guess its a lesson to us all that the really little things matter. A LOT.
#1
platform: template
value_template: >-
"{{ states('sensor.esph_house_stove_current_temp')|float(0) +4 <=
states('sensor.esph_house_stove_set_temp')|float(0) }}
The issue is likely the ".
#2
platform: state
entity_id:
- sensor.stove_error
from: "False"
to: "true"
Without seeing the sensor configuration it’s impossible to say for sure, but this one is likely not working due to improper capitalization. State triggers are case sensitive… “true” != “True”.
jchh
((not John))
November 17, 2022, 8:16am
46
I can see it now - that sneaky little "
maybe from when you changed from a single line template to multi-line? …and the capitalisation as well, yep.
Well done on finding it all and most importantly, glad it is working!