You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since recent changes in HA, I got some errors in the log file
has device class 'None', state class 'None' unit 'State' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '' (<class 'str'>) value
Removed this line, from each template sensor, solved it
unit_of_measurement: "State"
So they look like this:
sensor:
platform: template
sensors:
komfovent_on_off:
friendly_name: "Komfovent On Off"
value_template: >-
{% set mapper = {
'0' : 'Off',
'1' : 'On'} %}
{% set state = states('sensor.komfovent_on_off_num') %}
{{ mapper[state] if state in mapper else 'Unknown' }}
The text was updated successfully, but these errors were encountered:
Since recent changes in HA, I got some errors in the log file
has device class 'None', state class 'None' unit 'State' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '' (<class 'str'>) value
Removed this line, from each template sensor, solved it
unit_of_measurement: "State"
So they look like this:
sensor:
sensors:
komfovent_on_off:
friendly_name: "Komfovent On Off"
value_template: >-
{% set mapper = {
'0' : 'Off',
'1' : 'On'} %}
{% set state = states('sensor.komfovent_on_off_num') %}
{{ mapper[state] if state in mapper else 'Unknown' }}
The text was updated successfully, but these errors were encountered: