@TheStigh wrote:
Hi,
What I want is to compare today’s date & time with a future date & time (set alarm).
I want this as a binary_sensor to create a true/false.I’m so stuck at this!
I’ve got this{{(as_timestamp(now()) | timestamp_custom("%A, %d %h %H:%M")) }}
Result:
Friday, 06 Mar 21:12
Then I have this:
{% set timestamp = as_timestamp(states.sensor.arielam30_arielam30_alarm_sensor.attributes.state) | timestamp_custom("%A, %d %h %H:%M") %} {{ timestamp.lstrip("0") }}
Result:
Monday, 09 Mar 09:05
Still, have not been able to resolve this…
Here is the sensor
Posts: 1
Participants: 1