Hi,
my first attempt in using templats - of course not successful. Idea is, to trigger an automation only, if I had been out of the house for at least 10 minutes, to not constantly turn my lights on if there is a little gap in the wifi connection.
works fine in the template editor, but somehow that automation does not accept true/false as values to continue.
It’s just the current timestamp minus the last_changed timestamp. If the result of the subtraction exceeds 600 seconds (10 minutes) the template reports true (otherwise it’ll report false).