Can anyone help me with switching a lamp only between two dates. With the UI I made two helpers Datum1 and datum2.
I the UI in the automations I made the following:
action: notify.mobile_app_ipctmp13
data:
title: Test Bericht
message: 11.2 testperiode 10:15 19-12/20-12
mode: single
It doesn’t work. Even on the 18th the automation was activated when it wasn’t supposed to be. Furthermore, the intention was to delay the start of the lamp from 2 to 15 minutes with the statement “Random”.
Maybe it is my whacky way of doing things, but I also found that it seems to work better if the datetimes being compared are converted to longs before the comparison. It shouldn’t be but this may be the case with datetime arithmetic as well (?)