Hi @Fran_Lopez, welcome to the community. That sounds the rule wasn’t get triggered. Can you verify in SmartThings mobile app if the virtual switch was actually reporting state change events in the History tab? If so, try refresh any page in SharpTools.io, which will kick off the event subscription health check and repair if necessary.
I’d also be happy to check the rule for you. if you can PM @support the url of when editing the rule.
Just a guess here, but it looks like the device in ST is a contact sensor (that reports open and closed). But the rule engine is looking for an “on”, not an “open” or “closed”. That’s strange, because my contact sensors’ Contact, Changes To prompt for open or closed. Not sure how you derive an “on” condition from a contact sensor.
I’m using a virtual device, that’s the reason for different attributes.
The issue was that the smartapp in ST was paused. I don’t know how that happened because I have never accessed that smartthings IDE page but thanks to @James is solved now.