I got a similar case where I already added the (0)
to the float
, but when reloading command_line sensors HA is still complaining:
value_template: >-
{% if is_state('sensor.ha_supervisor_updates', 'on') or is_state('sensor.ha_core_update', 'on') or is_state('sensor.haos_update', 'on') or is_state('sensor.updater_supervisor', 'True') or (states('sensor.ha_supervisor_updates') | float(0) > 0) or is_state('sensor.updater_hacs', 'True') or is_state('sensor.deconz_firmware_update_available', 'true') or (states('sensor.nextcloud_system_apps_num_updates_available') | float(0) > 0) or is_state('binary_sensor.updater_1_host', 'on') or is_state('binary_sensor.updater_3_host', 'on') or is_state('binary_sensor.updater_pihole', 'on') or is_state('binary_sensor.fritz_box_firmware_update', 'on') or is_state('binary_sensor.updater_nextcloud', 'on') %}
True
{% else %}
False
{% endif %}
Logger: homeassistant.helpers.template
Source: helpers/template.py:1291
First occurred: 15. Januar 2022, 15:46:20 (38 occurrences)
Last logged: 01:49:04
Template warning: 'float' got invalid input 'unknown' when rendering template '{% if is_state('sensor.ha_supervisor_updates', 'on') or is_state('sensor.ha_core_update', 'on') or is_state('sensor.hass_os_update', 'on') or is_state('sensor.updater_supervisor', 'True') or (states('sensor.ha_supervisor_updates') | float > 0) or is_state('sensor.updater_hacs', 'True') or is_state('sensor.deconz_firmware_update_available', 'true') or (states('sensor.nextcloud_system_apps_num_updates_available') | float > 0) or is_state('binary_sensor.updater_1_host', 'on') or is_state('binary_sensor.updater_3_host', 'on') or is_state('binary_sensor.updater_pihole', 'on') or is_state('binary_sensor.fritz_box_firmware_update', 'on') or is_state('binary_sensor.updater_nextcloud', 'on') %} True {% else %} False {% endif %}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
Template warning: 'float' got invalid input 'unknown' when rendering template '{% if is_state('sensor.ha_supervisor_updates', 'on') or is_state('sensor.ha_core_update', 'on') or is_state('sensor.haos_update', 'on') or is_state('sensor.updater_supervisor', 'True') or (states('sensor.ha_supervisor_updates') | float > 0) or is_state('sensor.updater_hacs', 'True') or is_state('sensor.deconz_firmware_update_available', 'true') or (states('sensor.nextcloud_system_apps_num_updates_available') | float > 0) or is_state('binary_sensor.updater_1_host', 'on') or is_state('binary_sensor.updater_3_host', 'on') or is_state('binary_sensor.updater_pihole', 'on') or is_state('binary_sensor.fritz_box_firmware_update', 'on') or is_state('binary_sensor.updater_nextcloud', 'on') %} True {% else %} False {% endif %}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
What does HA see what I donât?
Do I maybe need to restart HA? Because the one finding seems to be some kind of caching issue, as I renamed the sensor.hass_os_update
to sensor.haos_update
recently (no restart after that).