event is definitely not going to exist when the rule is triggered manually (or based on a time or system based trigger). So I would definitely expect the error when triggering the Item that way.
But it should be there when SW_DUMMY changed state. First, just log out event and see if it’s undefined or not. That will confirm something weird is going on as well as confirm that the rule is running.