I’m sure it’s been asked, but i can’t seem to find the answer… Can SecurityMode be set using the Rules API?
i see that location mode can be, although it doesn’t match the documentation for locationMode
this says the command is setMode (not sure which device to use to send the command to)
Is there some other hidden gem that allows me to set the security mode (Armed Stay, Armed Away, Disarmed? I can do this in the app Routines, but i’d like to consolidate all my actions to one spot and include it in the Rule set i’ve create (42 and counting)
So, recently, @TAustin was able to add the ST app Routines to his API Browser+ and I took at look at the setup for one of my Routines. So, I have an app Routine to disarm STHM when location mode changes:
Now, it’s been pointed out that the Rules API may or may not support everything that the Routines can support (and vice versa), but I think this could work given that location mode setting in the Routines JSON looks similar to the JSON in the Rules API.
The only thing the error message above told me is that something has been changed on the back end recently and that the error messages are a lot messier than they used to be, but at the same time more meaningful.
The bottom line remains that the API the mobile apps are using accepts more than the public API does.
It would, but it wouldn’t help because https://client.smartthings.com/rules is the Routines. So you would end up creating a Routine, and there is a strong chance that it will look broken in the mobile app because it reverse-compiles them on the fly (for want of a better expression).