It appears most of my sensors , i.e. Canary, Ring etc are retaining a 25 character time string 2020-01-20T20:48:36+00:100 in the last used entity.
This becomes more of an issue in HADashboard as I want to print out the time within a tile.
I’m not sure if this should be done in the config.yaml or somewhere else, In fact I’m not sure at all how to do this.
Ideally the UK format would work well for me i.e. 20-Jan-20 8:48PM. however showing the number of minutes from current time would be just as useful.
If anyone can give me some help please it would be very much appreciated.
You either need to enlose the value template in quotes, and then you can not use the same type of quotes inside the value template (which you are doing) , or use the multiline yaml option which do not require the quoutes:
value_template: >- # This is the multiline directive
{{as_timestamp(states("sensor.garden_last_activity")) | timestamp_custom('%H:%M',True) }}
Hi Tomas, Thank you ever so much your a star!. confirming this works and returns the new formatted time. I has to change the indentation also slightly for everything to validate.