HI,
I’m using sidebar card with template greetings. They work fine, although i’m seeing these errors in log:
- Template warning: ‘float’ got invalid input ‘unknown’ when rendering template ’
- {% if now().hour < 5 %} Goede nacht {{’\U0001F634’}} {% elif now().hour < 12 %} Goedemorgen {{’\u2615\uFE0F’}} {% elif now().hour < 18 %} Goedenmiddag {{’\U0001F44B\U0001F3FB’}} {% else %} Goedenavond {{’\U0001F44B\U0001F3FB’}}{% endif %} {% if is_state(‘input_boolean.brievenbus’,‘on’) %}
- Jackpot! Er is post! {% endif %} {% if is_state(‘input_boolean.pakjesbus’,‘on’) %}
- Eureka! Pakje toegekomen! {% endif %} {% if states(‘sensor.current_lights_on’) | float > 0 %}
- {{states(‘sensor.current_lights_on’)}} lampen aan {% endif %} {% if states(‘sensor.current_media_players_on’) | float > 0 %}
- {{states(‘sensor.current_media_players_on’)}} speakers aan {% endif %} {% if states(‘sensor.unifi_gateway_firmware_upgradable’) | float > 0 %}
- Er is een update voor Unifi!! {% endif %} {% if is_state(‘sensor.binary_sensor.voordeur’,‘on’) %}
- De voordeur staat open! {% endif %} {% if is_state(‘sensor.binary_sensor.garage_poort’,‘on’) %}
- De garagepoort staat open! {% endif %} {% if is_state(‘sensor.binary_sensor.wasmachine_status’,‘Wasmachine bezig’) %}
- De wasmachine is bezig! {% endif %} {% if is_state(‘sensor.binary_sensor.wasmachine_status’,‘Wasmachine klaar’) %}
- De wasmachine is klaar! {% endif %} {% if is_state(‘sensor.binary_sensor.droogkast_status’,‘Droogkast bezig’) %}
- De wasmachine is bezig! {% endif %} {% if is_state(‘sensor.binary_sensor.droogkast_status’,‘Droogkast klaar’) %}
- De droogkast is klaar! {% endif %} {% if is_state(‘sensor.recycleapp_vandaag’,‘pmd’) %}
- Deze avond pmd buiten zetten!! {% endif %} {% if is_state(‘sensor.recycleapp_vandaag’,‘papier’) %}
- Deze avond papier en karton buiten zetten!! {% endif %} {% if is_state(‘sensor.recycleapp_vandaag’,‘restafval’) %}
- Deze avond restafval buiten zetten!! {% endif %} {% if is_state(‘binary_sensor.updater’,‘on’) %}
- Er is een update voor Home Assistant!! {% endif %}’ but no default was specified. Currently ‘float’ will return ‘0’, however this template will fail to render in Home Assistant core 2022.1
Any idea?
Other template warnings:
- Template warning: ‘int’ got invalid input ‘unknown’ when rendering template ‘{{ ‘mdi:checkbox-marked-circle-outline’ if states(‘sensor.low_batteries’)|int == 0 else ‘mdi:alert-circle-outline’ }}’ but no default was specified. Currently ‘int’ 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 ‘{{ states(‘dagelijks_energie_dagtarief’)|float + states(‘dagelijks_energie_nachttarief’)|float }}’ 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 ‘{{ states(‘maandelijks_energie_dagtarief’)|float + states(‘maandelijks_energie_nachttarief’)|float }}’ but no default was specified. Currently ‘float’ will return ‘0’, however this template will fail to render in Home Assistant core 2022.1