Closed giu889 closed 2 years ago
I can reproduce the error with the following:
sensors:
- platform: command_line
name: Zero Temperature
command: "echo 0"
unit_of_measurement: "°C"
value_template: "{{ 'NaN' | float }}"
- platform: command_line
name: Zero Humidity
command: "echo 0"
unit_of_measurement: "%"
value_template: "{{ 'NaN' | float }}"
- platform: thermal_comfort
sensors:
command:
friendly_name: Command Room
temperature_sensor: sensor.zero_temperature
humidity_sensor: sensor.zero_humidity
That being said, a sensor implementation should never return NaN to begin with, and you should probably also report a bug in your sensor integration.
Today after a restart, Lovelace became stuck on the "Loading data" screen and was totally unusable. Deleting the integration from the custom_components folder using smb fixed the issue.
The issue seems to be related to the value of the
temperature_sensor
andhumidity_sensor
beingnan
.This is the error found in home-assistant.log (repeating itself every 10 to 40 seconds):
My config: