I can’t seem to get this condition to work:
condition: template
value_template: '{{ now() - timedelta( minutes = 30 ) > states('input_datetime.in_bed_timestamp') | as_datetime | as_local}}'
It should only return true if the in_bed_timestamp
is more than 30 mins ago.
Tho it always returns false independent from the value I set it too.