Timer/Get current time rule does not work after OH3 migration

To copy from the other thread

But it isn’t. It’s populated when the xxx.rules file is loaded. You’ve placed it outside of your rule.

var someVariable = complicated calculation
carries out the calculation at the time the var line is executed, and places the result in the variable. It does not place the complicated calculation in the variable.

See also -