This is my blocl code of configuration.yaml:
- platform: template
sensors:
sun_state:
friendly_name: "Posizione del sole"
value_template: >-
{% if is_state('sun.sun', 'above_horizon') %}
Alto
{% else %}
Tramontato
{% endif %}
icon_template: >-
{% if is_state('sun.sun', 'above_horizon') %}
mdi:weather-sunny
{% else %}
mdi:weather-night
{% endif %}
… this code seem to work in the views, but in the group still remain the standard icon and caption.
How I can chege the icon and caption also in the group?