OH 2 rules don't work in OH 3

Alright, it’s to do with timer execution.

and something to with numeric equality test

so it seems to be choking on that.

Where does that day variable come from?

Aha, and we know that datetime stuff has changed in OH3/Java11 environment, everyone keeps telling us.

A quick forum search on “OH3 getDayOfWeek” leads to -

It seems getDayOfWeek still exists, but does not return a number unless you ask for it. You’re probably getting THURSDAY now by default.