Need Help with SHM Automation

I would like to turn on a virtual switch and change the location mode if when the SHM is armed and is tripped. Then change back once SHM is disarmed or no longer tripped… I can’t for the life of me figure what I am doing wrong…

It currently says it doesn’t subscribe to any events… shouldn’t $shmtripped be an event or am I misunderstanding it?

Here is the code I have tried:

Which version of the mobile app are you using? Each has a feature called “smart home monitor” but they are completely different code and have different characteristics. Only the one that works with the V2 classic app has been fully, if unofficially, exposed for webcore control.

Sorry, classic

Have you tried asking this on the webcore forum, you should get some help there, I would look into it but I am just a webcore beginner myself