I make WindSpeed Sensor in KM/h and replaze sensor.yr_symbol icon numbers with text. here you have!
file path/name: sensors/yr.yalm
- platform: template
sensors:
clima_actual:
friendly_name: “Clima Actual”
entity_id: sensor.yr_symbol
value_template: >-
{% if is_state(“sensor.yr_symbol”, “1”) %} Soleado
{% elif is_state(“sensor.yr_symbol”, “2”) %} Algunas Nubes
{% elif is_state(“sensor.yr_symbol”, “3”) %} Parcialmente Nublado
{% elif is_state(“sensor.yr_symbol”, “4”) %} Nubes
{% elif is_state(“sensor.yr_symbol”, “5”) %} Rayos, Lluvia y Sol
{% elif is_state(“sensor.yr_symbol”, “6”) %} Truenos, Lluvia y Sol
{% elif is_state(“sensor.yr_symbol”, “7”) %} Sol y Aguanieve
{% elif is_state(“sensor.yr_symbol”, “8”) %} Nieve y Sol
{% elif is_state(“sensor.yr_symbol”, “9”) %} Lluvia y Rayos
{% elif is_state(“sensor.yr_symbol”, “10”) %} Lluvia
{% elif is_state(“sensor.yr_symbol”, “11”) %} Rayos y Truenos
{% elif is_state(“sensor.yr_symbol”, “12”) %} Aguanieve
{% elif is_state(“sensor.yr_symbol”, “13”) %} Nieve
{% elif is_state(“sensor.yr_symbol”, “14”) %} Nieve y Truenos
{% elif is_state(“sensor.yr_symbol”, “15”) %} Niebla
{% elif is_state(“sensor.yr_symbol”, “20”) %} Aguanieve, Sol y Truenos
{% elif is_state(“sensor.yr_symbol”, “21”) %} Nieve, Sol y Truenos
{% elif is_state(“sensor.yr_symbol”, “22”) %} Lluvia, Rayos y Truenos
{% elif is_state(“sensor.yr_symbol”, “23”) %} Aguanieve y Truenos
{% elif is_state(“sensor.yr_symbol”, “24”) %} Llovizna, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “25”) %} Lluvia, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “26”) %} Leve Aguanieve, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “27”) %} Fuerte Aguanieve, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “28”) %} Leve Nieve, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “29”) %} Fuerte Nieve, Truenos y Sol
{% elif is_state(“sensor.yr_symbol”, “30”) %} Llovizna y Truenos
{% elif is_state(“sensor.yr_symbol”, “31”) %} Leve Llovizna y Truenos
{% elif is_state(“sensor.yr_symbol”, “32”) %} Fuerte Llovizna y Truenos
{% elif is_state(“sensor.yr_symbol”, “33”) %} Leve Nieve y Truenos
{% elif is_state(“sensor.yr_symbol”, “34”) %} Fuerte Nieve y Truenos
{% elif is_state(“sensor.yr_symbol”, “40”) %} Llovizna y Sol
{% elif is_state(“sensor.yr_symbol”, “41”) %} Lluvia y Sol
{% elif is_state(“sensor.yr_symbol”, “42”) %} Leve Aguanieve y Sol
{% elif is_state(“sensor.yr_symbol”, “43”) %} Fuerte Aguanieve y Sol
{% elif is_state(“sensor.yr_symbol”, “44”) %} Leve Nieve y Sol
{% elif is_state(“sensor.yr_symbol”, “45”) %} Fuerte Nieve y Sol
{% elif is_state(“sensor.yr_symbol”, “46”) %} Llovizna
{% elif is_state(“sensor.yr_symbol”, “47”) %} Leve Aguanieve
{% elif is_state(“sensor.yr_symbol”, “48”) %} Fuerte Aguanieve
{% elif is_state(“sensor.yr_symbol”, “49”) %} Leve Nieve
{% elif is_state(“sensor.yr_symbol”, “50”) %} Fuerte Nieve
{% endif %}
entity_picture_template: >-
{% if is_state(“sensor.yr_symbol”, “1”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=1;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “2”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=2;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “3”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “4”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=4;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “5”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=5;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “6”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=6;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “7”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=7;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “8”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=8;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “9”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=9;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “10”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=10;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “11”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=11;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “12”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=12;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “13”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=13;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “14”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=14;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “15”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=15;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “20”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=20;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “21”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=21;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “22”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=22;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “23”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=23;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “24”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=24;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “25”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=25;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “26”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=26;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “27”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=27;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “28”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=28;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “29”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=29;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “30”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=30;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “31”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=31;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “32”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=32;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “33”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=33;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “34”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=34;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “40”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=40;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “41”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=41;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “42”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=42;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “43”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=43;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “44”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=44;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “45”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=45;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “46”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=46;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “47”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=47;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “48”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=48;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “49”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=49;content_type=image/png
{% elif is_state(“sensor.yr_symbol”, “50”) %}
http://api.met.no/weatherapi/weathericon/1.1/?symbol=50;content_type=image/png
{% endif %}