my zwave thermostats have an attribute battery_level that I would like to export to InfluxDB and graph it.
So I created a template sensor for each of the thermostats like this:
When I start HA, I get a warning message for each of the template sensors:
16-11-25 22:00:56 WARNING (MainThread) [homeassistant.components.sensor.template] UndefinedError: 'None' has no attribute 'attributes'
Could it be that at the time the sensors are created, the states object is not yet fully “populated”?
The sensors show up in the UI as expected, though.
I’m just curious about the warning message.
Thanks, I think that would work - I’d still keep it as it is, since that’s easier to read.
As long as everything works, I can live with the warnings if noone wants to fix this