Schedule rule for Xaiomi Vacuum doesn't work

Hello all,
I have a problem with the following rule which should start the vacuum every Monduay, Wednesday and Friday around 10AM. But it doesn’t. I guess the IF clause is wrong.
statusStatus is an item which holds the current Vacuum status. 0 equals charging.

rule "Vacuum Cleaning Schedule"
    when
	Time cron "0 0/5 * * * ?" or
	System started
    then
	    var Integer hour = now.getHourOfDay
	    var Integer min = now.getMinuteOfHour
	    var Integer wd = now.getDayOfWeek
    
    if (hour == 10 && min <= 05 && statusStatus == 0 && (wd == 1 || wd == 3 ||wd == 5)) {
            // automatische Reinigung der gesamten Wohnung
	        sendCommand(actionCommand,"app_zoned_clean[[18118,20241,30118,29991,1]]")
        }
end

Any help is appreciated.

Thanks
Florian

Add logging to show what hour, min, and statusStatus are set to when the Rule runs.

You could solve this with just a cron expression.

Time cron "0 5 10 ? * SUN,TUE,THU *"

Then you don’t even need the if statement.