Hello,
New to HA and trying to get better runtime tracking of my Honeywell T10 Pro+ as it’s native runtime results are delayed sometimes up to 36 hours. Unfortunately when I try setting up a helper, the state is showing off even though the HVAC is currently cooling (and HA recognizes it as cooling). Am I doing something incorrectly?
Template binary sensors only return “on” when their template resolves to one of the accepted values for “true”… “True”, “yes”, “on”, “enable” or any positive number.
“cooling” is not one of those values, so the binary sensor is returning “off”.
{{ state_attr('climate.t10_plus_thermostat', 'hvac_action') in ['cooling', 'heating'] }}
Ahh I understand, silly me not to pay attention to the entire code snippet. Thank you.
Would it be better in this situation to just make a standard sensor instead of a binary sensor? My end goal is to use this helper with the History Stats and Utility Meter plugins to track the heating/cooling runtimes. I set up the standard sensor and it seems to show the Idle, Cooling, and Heating states correctly.
You can do it either way, it’s probably less repetitive to set up the sensor to return the hvac_action value as it’s own entity first, then base other sensors off that… That’s what I do.