I am trying to setup a notification that send me a message when the peak solar production is being reached tomorrow. This information comes from this sensor.
sensor.power_highest_peak_time_tomorrow_2
and it returns 2024-05-01T12:00:00+00. I have tried to convert this with strftime but no success. My time zone is correctly set up in the general settings.
Does anyone have a clue how I can get this in any format I like within my correct time zone? I am UTC +2
ValueError: Template error: as_datetime got invalid input ‘2024-05-02 12:00:00+00:00’ when rendering template ‘{{ (state_attr(‘sensor.dwd_weather_warnings_105111000_vorwarnstufe’, ‘warning_1_start’)|as_datetime|as_local).strftime(’%d.%m.%y %H:%M Uhr’)}}’ but no default was specified
From other issues I think I need to provide a default value, however I don’t really understand where and how to do this. Could you help me out once again?