Time in template out by Heaps

have this template

      state: >-
        {% set nextal = state_attr("sensor.sm_g986b_next_alarm","Local Time").split(" ") %}
        nextal = {{ nextal }}
        {% set mmm = ['Jan',1,'Feb',2,'Mar',3,'Apr',4,'May',5,'Jun',6,'Jul',7,'Aug',8,'Sep',10,'Nov',11,'Dec',12]%}
        {% set mm = mmm.index(nextal[1])+1%}
        {% set m = mmm[mm] %}
        {% set nxt=nextal[5]+'-'+ m | string +'-'+nextal[2]+ ' '+ nextal[3]+'+' + nextal[4].split('+')[1]  %}
        nxt = {{nxt}}
        -> {{ nxt |as_timestamp | timestamp_custom('%A %H:%M') }}

why is → not says Wednesday 03:00

{{ (states('sensor.sm_g986b_next_alarm') 
| as_datetime | as_local).strftime('%A %H:%M') }}
1 Like

thanks bro

other new word