I don't think this worked on ST. stays requires a trigger if something changes, and a local variable cannot be a trigger.
If it were a global (@) or hub variable(@@) it could work as it could be a trigger.
See:
and