@Byrkjis wrote:
I’m trying to figure out what is wrong, configuration is giving me error:
Configuration invalidInvalid config for [sensor.yr]: [yr_symbol_current] is an invalid option for [sensor.yr]. Check: sensor.yr->yr_symbol_current. (See ?, line ?).
- platform: yr forecast: 24 monitored_conditions: - temperature - symbol - platform: template sensors: yr_symbol_current: friendly_name: "Akkurat nå:" value_template: >- {% if states.sensor.yr_symbol.state | int==1%}Klart {% elif states.sensor.yr_symbol.state | int==2%}Lettskyet {% elif states.sensor.yr_symbol.state | int==3%}Delvis skyet {% elif states.sensor.yr_symbol.state | int==4%}Skyet {% elif states.sensor.yr_symbol.state | int==5%}Regnbyger {% elif states.sensor.yr_symbol.state | int==6%}Regbyger med torden {% elif states.sensor.yr_symbol.state | int==7%}Sluddbyger {% elif states.sensor.yr_symbol.state | int==8%}Snøbyger {% elif states.sensor.yr_symbol.state | int==9%}Regn {% elif states.sensor.yr_symbol.state | int==10%}Kraftig regn {% elif states.sensor.yr_symbol.state | int==11%}Kraftig regn og torden {% elif states.sensor.yr_symbol.state | int==12%}Sludd {% elif states.sensor.yr_symbol.state | int==13%}Snø {% elif states.sensor.yr_symbol.state | int==14%}Snø og torden {% elif states.sensor.yr_symbol.state | int==15%}Tåke {% elif states.sensor.yr_symbol.state | int==20%}Sluddbyger og torden {% elif states.sensor.yr_symbol.state | int==21%}Snøbyger og torden {% elif states.sensor.yr_symbol.state | int==22%}Regn og torden {% elif states.sensor.yr_symbol.state | int==23%}Sludd og torden {% elif states.sensor.yr_symbol.state | int==24%}Lette regbyger og torden {% elif states.sensor.yr_symbol.state | int==25%}Kraftige regnbyger og torden {% elif states.sensor.yr_symbol.state | int==26%}Lette sluddbyger og torden {% elif states.sensor.yr_symbol.state | int==27%}Kraftige sluddbyger og torden {% elif states.sensor.yr_symbol.state | int==28%}Lette snøbyger og torden {% elif states.sensor.yr_symbol.state | int==29%}Kraftige snøbyger og torden {% elif states.sensor.yr_symbol.state | int==30%}Lett regn og torden {% elif states.sensor.yr_symbol.state | int==31%}Lettt sludd og torden {% elif states.sensor.yr_symbol.state | int==32%}Kraftig sludd og torden {% elif states.sensor.yr_symbol.state | int==33%}Lett snø og torden {% elif states.sensor.yr_symbol.state | int==34%}Kraftig snø og torden {% elif states.sensor.yr_symbol.state | int==40%}Lette regnbyger {% elif states.sensor.yr_symbol.state | int==41%}Kraftige regnbyger {% elif states.sensor.yr_symbol.state | int==42%}Lette sluddbyger {% elif states.sensor.yr_symbol.state | int==43%}Kraftige sluddbyger {% elif states.sensor.yr_symbol.state | int==44%}Lette snøbyger {% elif states.sensor.yr_symbol.state | int==45%}Kraftige snøbyger {% elif states.sensor.yr_symbol.state | int==46%}Lett regn {% elif states.sensor.yr_symbol.state | int==47%}Lett sludd {% elif states.sensor.yr_symbol.state | int==48%}Kraftig sludd {% elif states.sensor.yr_symbol.state | int==49%}Lett snø {% elif states.sensor.yr_symbol.state | int==50%}Kraftig snø {% endif %} entity_picture_template: >- {% if is_state('sun.sun', 'above_horizon') %} //api.met.no/weatherapi/weathericon/1.1/?symbol={{states.sensor.yr_symbol.state}};is_night=0;content_type=image/png {% else %} //api.met.no/weatherapi/weathericon/1.1/?symbol={{states.sensor.yr_symbol.state}};is_night=1;content_type=image/png {% endif %}
Posts: 3
Participants: 3