I need some help with Templating. Tried a few things but not getting anywhere.
Basically, I have an entity called somebody, that is my family. If somebody is away, I want to find out the difference between time - now and time somebody left home.
Side-note: Both now() and an entity’s last_changed produce datetime objects. That means both have built-intimestamp() methods. We can leverage that to shrink the template a little bit:
Ugh. I was messing with that earlier today and could not get it to work because I was using now().timestamp i.e. without the (). Thank you, it makes sense now.