Hi!
I’m trying to set up a floor plan card and since I had a mobile display problem I decided to make a grid card that shows a calendar card in one column and a floor plan card in the other which is entirely SVG (so it’s a challenge for me)!
With the help of others, I solved everything except the display of the current weather image!
Current display after the sun has already risen
Current display after the sun has set down
I currently have a sensor template for the entity: weather.accuweather
to display the current state:
- platform: template
sensors:
accuweather:
value_template: >
{%- set state = states('weather.accuweather') -%}
{{ state if state in ['clear_night', 'cloudy', 'exceptional', 'fog', 'hail', 'lightning', 'lightning_rainy', 'partlycloudy', 'pouring', 'rainy', 'snowy', 'snowy_rainy', 'sunny', 'windy'] else '' }}
I also have a sensor template for the entity: sun.sun
to display the current state:
- platform: template
sensors:
sun_state:
friendly_name: "Vidnost sonca"
value_template: >-
{% if is_state('sun.sun', 'above_horizon') %}
Nad obzorjem
{% else %}
Pod obzorjem
{% endif %}
I could also use entity: sun.sun
directly, because it obviously gives the same result.
I also thought of the information about % cloudiness, because there are several pictures showing different cloudiness:
My desire is to get a sensor (using a template) that would display the cloudiness according to the % of cloudiness (slightly cloudy, partly cloudy, cloudy, heavy cloudiness), I forgot to mention also the precipitation unit, which would display the rain (drizzle, light rain, rain , heavy rain) and finally the data from sun.sun, which would add `_night’ at the end (state: cloudy_night).