Last_changed property looks strange on input_text

Hey,
I have an input_text which I update in several ways (manually or through automations)
Weirdly, the “last_changed” property seems off.

{{ states.input_text.johann_status.last_changed }}

prints

2022-05-25 08:12:08.007459+00:00
I’m not entirely sure what happened today at 8:12, I may have changed that input_text.

But
{{ states.input_text.johann_status}}

prints

<template TemplateState(<state input_text.johann_status=er Hjemme; editable=False, min=0, max=100, pattern=None, mode=text @ 2022-05-25T10:12:08.007459+02:00>)>

And that timestamp which is after the “@” is the correct (and latest) last changed of my input_text.

Is this a bug? Am I using it wrong? How can I get the latest “last_changed” through templating?

Notice the differences between the two:

especially the timezone info at the end.

they are showing the same info but just in two different ways.

One is in your local timezone (+02:00) and the other is in UTC (+00:00).

oh my, thanks :slight_smile:

1 Like