Hi Bigjjj
It looks logical to me. The followings will have the same status as the sensor is closed.
“on” in switch
"delected" in Smoke Detector
"clear" in Smoke Detector Closed as Clear
Just try only 1.05, since some of the logic in 1.02 may not be correct.
One possiblity is the original status is not correct, then when you change function, the wrong status will carry over.
One way to clear it out is to make the sensor open and close physically once. It should show the right status.
By physically, I mean use some conducting wire to short the two ends of the sensors wires to make it close and remove the conducting wire to make it open.