2021-10-10 19:28:50 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'round' got invalid input 'unknown' when rendering template '{% if states('sensor.pymble_temp_min_0') == 'unknown' %} {% set min = states('sensor.bom_today_min') %} {% else %} {% set min = states('sensor.pymble_temp_min_0') %} {% endif %} {% if states('sensor.pymble_temp_max_0') == 'unknown' %} {% set max = states('sensor.bom_today_max') %} {% else %} {% set max = states('sensor.pymble_temp_max_0') %} {% endif %} {{ max|round(0)}}Ā°/{{ min|round(0)}}Ā°/{{states('sensor.pymble_rain_chance_0')|round(0)}}%' but no default was specified. Currently 'round' will return 'unknown', however this template will fail to render in Home Assistant core 2021.12
2021-10-10 19:28:50 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'round' got invalid input 'unknown' when rendering template '{% if states('sensor.pymble_temp_min_0') == 'unknown' %} {% set min = states('sensor.bom_today_min') %} {% else %} {% set min = states('sensor.pymble_temp_min_0') %} {% endif %} {% if states('sensor.pymble_temp_max_0') == 'unknown' %} {% set max = states('sensor.bom_today_max') %} {% else %} {% set max = states('sensor.pymble_temp_max_0') %} {% endif %} {{ max|round(0)}}Ā°/{{ min|round(0)}}Ā°/{{states('sensor.pymble_rain_chance_0')|round(0)}}%' but no default was specified. Currently 'round' will return 'unknown', however this template will fail to render in Home Assistant core 2021.12
If they are excluded in history that will be the problem. They need to be in history otherwise the sensor will not be able to calculate a value on startup until it gets data
they were not excluded, so I added. Now removed again. However, they were already excluded from recorder as per your config on githubā¦ so I have no idea.
added defaults, is working now, so Iāll watch and seeā¦
looks like you will get also template errors from your UV check too
2021-10-10 21:43:59 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'as_timestamp' got invalid input 'unknown' when rendering template 'UV Today: Sun Protection {{ as_timestamp(states('sensor.pymble_uv_start_time_0')) | times
tamp_custom(' %I:%M%p') | lower | replace(" 0", "") }} to {{ as_timestamp(states('sensor.pymble_uv_end_time_0')) | timestamp_custom(' %I:%M%p') | lower | replace(" 0", "") }}, UV Index predicted to reach {{ states('sensor.pymble_uv_max_index_0') }}
[{{ states('sensor.pymble_uv_category_0') }}]' but no default was specified. Currently 'as_timestamp' will return 'None', however this template will fail to render in Home Assistant core 2021.12
021-10-10 21:43:59 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'timestamp_custom' got invalid input 'None' when rendering template 'UV Today: Sun Protection {{ as_timestamp(states('sensor.pymble_uv_start_time_0')) | time
stamp_custom(' %I:%M%p') | lower | replace(" 0", "") }} to {{ as_timestamp(states('sensor.pymble_uv_end_time_0')) | timestamp_custom(' %I:%M%p') | lower | replace(" 0", "") }}, UV Index predicted to reach {{ states('sensor.pymble_uv_max_index_0') }}
[{{ states('sensor.pymble_uv_category_0') }}]' but no default was specified. Currently 'timestamp_custom' will return 'None', however this template will fail to render in Home Assistant core 2021.12
2021-10-10 21:43:59 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'timestamp_custom' got invalid input 'None' when rendering template 'UV Today: Sun Protection {{ as_timestamp(states('sensor.pymble_uv_start_time_0')) | time
stamp_custom(' %I:%M%p') | lower | replace(" 0", "") }} to {{ as_timestamp(states('sensor.pymble_uv_end_time_0')) | timestamp_custom(' %I:%M%p') | lower | replace(" 0", "") }}, UV Index predicted to reach {{ states('sensor.pymble_uv_max_index_0') }}
[{{ states('sensor.pymble_uv_category_0') }}]' but no default was specified. Currently 'timestamp_custom' will return 'None', however this template will fail to render in Home Assistant core 2021.12
OK I donāt see any errors on restart now (or warnings) for temp or UV with those changes. Let me know Jon what you see before I push an update to the repo with these edited templates.
2021-10-11 15:01:43 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'timestamp_custom' got invalid input 'n/a' when rendering template 'UV Today: Sun Protection {{ as_timestamp(states('sensor.pymble_uv_start_time_0'), default='n/a') | timestamp_custom(' %I:%M%p',default=='n/a') | lower | replace(" 0", "") }} to {{ as_timestamp(states('sensor.pymble_uv_end_time_0'), default='n/a') | timestamp_custom(' %I:%M%p', default='n/a') | lower | replace(" 0", "") }}, UV Index predicted to reach {{ states('sensor.pymble_uv_max_index_0') }} [{{ states('sensor.pymble_uv_category_0') }}]' but no default was specified. Currently 'timestamp_custom' will return 'n/a', however this template will fail to render in Home Assistant core 2021.12
So uv not right based on my forced testing. timetstamp_custom isnāt happy with the input
I had == rather than =
fixed.
The temp min works - min_0 is currently unknownso looks like both are fixed. thanks.
btw - on the entity_picture_template - why the descriptor check (or why only on night?)
There are only night entities for a few conditions and I only use a night icon for the current day (after sunset) The night icons have -night in the name at the end
Question for anyone using this card in the USA.
Currently pressure for any location using imperial measurements like the USA the pressure will be assumed to be in mbar. I have had a request from someone saying that itās more usual to use in/Hg for this.
I donāt want to screw with this if it is going to cause problems for people.
Please let me know what you think if you are currently using imperial units if you would object to this change.
Hi David, thank you for creating this card.
I have been trying to make it work but Iām getting stuck.
I have edited the names in the weather.yalm and Iām getting data for sensor.bom_forecast_0 but unknown for 1 to 6. Also unknown for sensor.bom_today_max.
Youāll need to provide your full config for the card and also look at the states for all the variables you are parsing in dev-tools sensor.bim_today-_* is a template sensor using either the average or statistics integration. Do looks like you donāt have that
Fors the card configuration Iām using just the most basic but not there yet as if I donāt get the sensor working Iām guessing the card wonāt show.