I’m trying to figure out how to get an “hours, minutes ago” value when I create an action.
I have a sensor with a DD/MM/YYYY HH:MM value, which I struggle to get an hours, minutes value from, compared to the current date/time.
I see some topics with this case, but it all has different DD/MM values at this point
You would need to convert it to an integer to use it to slice the list… or you can use the same strptime() method I used above to convert your helper into a datetime object then go from there:
Invalid config for [sensor.template]: [attributes] is an invalid option for [sensor.template]. Check: sensor.template->sensors->cat_feed_last_time->attributes. (See ?, line ?).
Sorry… it’s been a while since I set up a legacy-style sensor… you will need to use attribute_templates: instead of attributes:. I have corrected it above.