Hi all,
I’m trying to get a part of the string of my Eufy doorbell last changed state to be displayed in the AI generated description together with the image.
The binary sensor doesn’t seem to have a time attribute, but does report back a string including the time.
I’m a templating noob, but I think it should be possible using ‘slice’ or an other command to display only a part of the string.
Template editor: {{states.binary_sensor.deurbel_person_detected}}
Result
Result type: string
<template TemplateState(<state binary_sensor.deurbel_person_detected=off; device_class=motion, friendly_name=Deurbel Person detected @ 2024-12-27T12:53:24.971852+01:00>)>
Can someone help me out with this template?
The fat part of the string should do.
Thanks in advance!