I did create some template sensors.
That is working fine.
But now I like to retamplate the sensor for the date time part.
I’m not very well used to do templating
I did create this sensor template:
clean_start:
value_template: '{{ state_attr("vacuum.xiaomi_vacuum_cleaner", "clean_start") }}'
icon_template: mdi:clock-start
unit_of_measurement: ""
friendly_name: "Starttijd"
The output of “clean_start” looks like:
2021-02-17 01:45:08
But I like to see a shorter output deleting the seconds.
like: 2021-02-17 01:45
How to create a template syntax to get that fixed?
Thanks in advance