For as far as I can see, your eta sensor is a timestamp in the future. It’s unlikely that it will give the time left. So I guess you have to calculate it. I don’t have an ETA sensor, but I guess something like this should work:
It does give time left, see the second screenshot. Those two are the same sensor in two different contexts. Your code gives me "TypeError: unsupported operand type(s) for -: 'str' and 'datetime.datetime'"
Thanks.
No… there’s no breaking change here. You’re looking at the under the hood state, which has always been a timestamp. It’s because you’re outputting the value from a template and HA doesn’t know how to format it. Been like this from day 1. You have to make it friendly using a template. Hence why I made the easy time library.
So there was probably a change in the sensor itself (Klipper 3D printer integration). The markdown panel was originally displaying a human readable time and I have not made any changes to it. Thanks for clarification.
Agree it is a bit more then jinja template…but not much. As with many areas where you want to make it ‘yours’ you’d have to use a bit more techy stuff. Actually, easy_time macro’s reduce a lot of complexity.
Anyhow, my 2cts …good luck