Errors in HA logs #22
Replies: 2 comments 3 replies
-
What are the raw sensors that come from the modbus integration showing? (sensor.battery_discharge_power, sensor.grid_ct, sensor.pv2_power etc..) |
Beta Was this translation helpful? Give feedback.
-
I'm not sure then. |
Beta Was this translation helpful? Give feedback.
-
I'm getting these errors in my HA logs.
Any ideas how to fix them?
Logger: homeassistant.components.template.template_entity
Source: components/template/template_entity.py:173
Integration: Template (documentation, issues)
First occurred: June 1, 2022, 23:34:34 (12 occurrences)
Last logged: 11:59:37
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ [0, ((states('sensor.pv1_power') | float + states('sensor.pv2_power') | float ) * 1)]|max }}' but no default was specified') while processing template 'Template("{{ [0, ((states('sensor.pv1_power') | float + states('sensor.pv2_power') | float ) * 1)]|max }}")' for attribute '_attr_native_value' in entity 'sensor.pv_total_power'
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if (states('sensor.grid_ct') | float ) > 0 %} {{ states('sensor.grid_ct') | float * 1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}' but no default was specified') while processing template 'Template("{% if (states('sensor.grid_ct') | float ) > 0 %} {{ states('sensor.grid_ct') | float * 1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}")' for attribute '_attr_native_value' in entity 'sensor.feed_in_power'
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if (states('sensor.grid_ct') | float ) < 0 %} {{ states('sensor.grid_ct') | float * -1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}' but no default was specified') while processing template 'Template("{% if (states('sensor.grid_ct') | float ) < 0 %} {{ states('sensor.grid_ct') | float * -1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}")' for attribute '_attr_native_value' in entity 'sensor.grid_consumption'
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if (states('sensor.battery_discharge_power') | float ) > 0 %} {{ states('sensor.battery_discharge_power') | float * 1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}' but no default was specified') while processing template 'Template("{% if (states('sensor.battery_discharge_power') | float ) > 0 %} {{ states('sensor.battery_discharge_power') | float * 1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}")' for attribute '_attr_native_value' in entity 'sensor.battery_discharge'
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% if (states('sensor.battery_discharge_power') | float ) < 0 %} {{ states('sensor.battery_discharge_power') | float * -1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}' but no default was specified') while processing template 'Template("{% if (states('sensor.battery_discharge_power') | float ) < 0 %} {{ states('sensor.battery_discharge_power') | float * -1 }} {% else %} {{ (states('sensor.random_watts') | float - 5.5 ) / 1000 }} {% endif %}")' for attribute '_attr_native_value' in entity 'sensor.battery_charge'
Beta Was this translation helpful? Give feedback.
All reactions