Filter part of sensor

Hi,

i would like to ask you.
I have one sensor -

and i need filter result from 2024-08-08T09:07:00+02:00 to only 09:07
Is it possible ?

I use this sensor -

{{ state_attr(‘sensor.blatnicka_b_departure_1’, ‘departure_timestamp’)[‘scheduled’] }}

{{ (state_attr('sensor.blatnicka_b_departure_1', 'departure_timestamp')['scheduled']).timestamp() | timestamp_custom('%H:%M') }}

Make sure you paste code in a code block next time,

1 Like

I’m sorry, but i’m not very good at this :-/

When i used your code i’ve got error message

Ok.

try this then:

{{ as_timestamp(state_attr('sensor.blatnicka_b_departure_1', 'departure_timestamp')['scheduled']) | timestamp_custom('%H:%M') }}