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’] }}
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,
Ok.
try this then:
{{ as_timestamp(state_attr('sensor.blatnicka_b_departure_1', 'departure_timestamp')['scheduled']) | timestamp_custom('%H:%M') }}