How Does One set a date variable for tomorrow date? Like today plus 1 day

So when I turn off a virtual switch, I'm trying to have a rule that will set a local variable with tomorrow's date. So, when that nightly running automation after midnight checks that variable and matches, it will turn that switch back on. As I'm typing this, I just thought of a timer solution that may facilitate the scenario. However, the date method is still desired. I can't seem to set a date and offset by day or even hours. Anyone else done something similar?

A Groovy device or app might be the way to go for this.

I tried Rule Machine, but unfortunately, date addition only currently supports minutes, and doesn’t work on a date only variable (Just tried it with the following rule):

Thanks. I'm aware of the non-date-only variables. I was trying to not use minutes, but I'll give this a try whenever I get some time.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.