Value cannot be processed as a number: <state sensor.temperatuur=; unit_of_measurement=°C, friendly_name=Temperatuur grandix @ 2020-01-16T07:06:45.028032+01:00> (Offending entity: )
The strange thing is that I have no error message for the windchill sensor. I can see no difference in the syntax. Why is this error occuring?
What does the sensor.grandix show in the
Developers Tools / States.
Also what values are returned if you validate the value templates in
Developer Tools / Templates
I added this to the sensor.yaml and it works also just like above example.
What I noticed is that there are no new errors in the log file complaining about wrong unit of measurement. So I studied the rest of the log and I saw a line that said that the server Grandix could not been reached two minutes before the error of the unit of measurement. Could it be HA generates an error because it has to work with no or empty value?
`state_attr('device_tracker.paulus', 'battery')` will return the value of the attribute or None if it doesn’t exist.
Could it beso that if json is not available that HA returns “None” and this is processed and generates the error because it is no float.Should I build something like if None then 0 ?
This morning when I was still in bed I see someconnection problem again with server Grandix.
There is no error like above anymore in the log, so we can assume that this solution is working. Now I have to examine why the connection drops.
This thread can be closed I think.