Hallo!
Ich möchte mir ein E-Paper mit aktuellem Wetter bzw. mit Wettervorhersage einrichten.
Nach langem probieren habe ich mittlerweile die aktuelle Wetteranzeige hinbekommen. Die Vorhersage klappt leider nicht, es wird nichts angezeigt.
Als Vorlage hat mir diese Anleitung sehr weitergeholfen
Die Daten von OpenWeatherMap unterscheiden sich von der Weather Integration.
Ich habe zwei Test-Sensoren erstellt:
epaper_weather_forecast:
value_template: "{{as_timestamp(strptime(state_attr('weather.openweathermap', 'forecast')[0]['datetime'], '%Y-%m-%dT%H:%M')) | timestamp_custom('%a') }};{{state_attr('weather.openweathermap', 'forecast')[0]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[0]['temperature']| replace('.',',') }};{{as_timestamp(strptime(state_attr('weather.openweathermap', 'forecast')[1]['datetime'], '%Y-%m-%dT%H:%M')) | timestamp_custom('%a') }};{{state_attr('weather.openweathermap', 'forecast')[1]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[1]['temperature']| replace('.',',') }};{{as_timestamp(strptime(state_attr('weather.openweathermap', 'forecast')[2]['datetime'], '%Y-%m-%dT%H:%M')) | timestamp_custom('%a') }};{{state_attr('weather.openweathermap', 'forecast')[2]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[2]['temperature']| replace('.',',') }};{{as_timestamp(strptime(state_attr('weather.openweathermap', 'forecast')[3]['datetime'], '%Y-%m-%dT%H:%M')) | timestamp_custom('%a') }};{{state_attr('weather.openweathermap', 'forecast')[3]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[3]['temperature']| replace('.',',') }};{{as_timestamp(strptime(state_attr('weather.openweathermap', 'forecast')[4]['datetime'], '%Y-%m-%dT%H:%M')) | timestamp_custom('%a') }};{{state_attr('weather.openweathermap', 'forecast')[4]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[4]['temperature']| replace('.',',') }}"
unique_id: "epaperweatherforecastV2"
forecast_1:
value_template: "{{state_attr('weather.openweathermap', 'forecast')[1].temperature | replace('.',',') }};{{state_attr('weather.openweathermap', 'forecast')[0]['condition']}};{{state_attr('weather.openweathermap', 'forecast')[0]['precipitation'] | replace('.',',') }}"
Der erste Sensor liefert:
unavailable
der Sensor forecast_1 liefert Daten:
26,3;cloudy;0,0
Wie lasse ich mir diese Daten auf dem E-Paper anzeigen?