Hello everyone, I have a Nest thermostat connected to my gas boiler, I have integrated the nest under HA but I have a problem, I would like to create a sensor to know how long the boiler is running per day and put after this in the form of a graph.
So I created these sensors in my sensor.yaml but it doesn’t want to work.
I don’t understand because in the models it works, but when I check the configuration it gives me an error…
It is complaining about your choice to use Nest Heating Runtime as part of the sensor’s entity_id. That’s invalid because an entity_id must be in lower-case and have no spaces (and no accented characters). That’s why it suggested you use nest_heating_runtime instead of Nest Heating Runtime.
Replace Nest Heating Runtime:
with nest_heating_runtime:
Invalid config for [sensor.template]: [state] is an invalid option for [sensor.template]. Check: sensor.template->sensors->nest_preset_mode->state. (See ?, line ?).
No more errors and the sensors present but the nest_heating_runtime sensor does not count the seconds and would it be possible to have minutes or hours ?
Which means 'problem creating sensor template ’ has been resolved.
Please consider marking my first post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic is resolved. This helps other users find answers to similar questions.
For more information about the Solution tag, refer to guideline 21 in the FAQ.
Whatever is the value of that attribute is what will be reported in the Template Sensor you created (sensor.nest_heating_runtime).
If you can’t find an attribute named elapsed_seconds (or if it’s value isn’t purely numeric) then it explains why the value of sensor.nest_heating_runtime is always 0.
indeed elapsed_seconds does not appear, how could I count the hours of operation of my boiler otherwise ? Is another method possible or do you have to create a sensor ?