It drives me insane

I don’t recall seeing an announcement for M2. Did you mean M1 or the daily SNAPSHOTS?

Even though it’s a short Rule, please How to use code fences.

Add logging to verify that Slaapstand is indeed OFF and NightState is indeed ON. If either or both of them are in any other state then the Rule will exit without doing anything.

It could but there is nothing syntactically wrong with your Rule. If the Rule is triggering when it should then the problem is one or both of your Items in the if statement are not in the checked for state. No amount of examples will have helped with this problem.

When a Rule doesn’t work:

  • log everything
  • assume nothing
  • simplify to something that works and build it back up little by little.