OK, I see there is a misconception about how these "callback" functions work. They are only called when the value of the variable is changed through your Arduino Cloud dashboard.
The callback function is not automatically called when the variable value is changed internally by the sketch program code.