Here’s my code for arming it, pretty straight forward.
var AdemcoThing = getThingStatusInfo("ademco:partition:192_168_0_58:Partition1")
if ((systemStarted.state != ON && AdemcoThing !== null) && (AdemcoThing.getStatus().toString() == 'ONLINE')) {
logInfo("ADEMCO","Sent Partition one Arm Mode 2 (Activiated).")
Partition1ArmMode.sendCommand(2)
}
Best, Jay