DSC Alarms Server

i have the arm/disarm working with @ethomasii alarmserver but i’m trying to figure out the rest api smartapp endpoints from this page Tutorial: Creating a REST SmartApp Endpoint

i think if i can get the url’s of my devices, then alarmserver can directly tell my contact sensors if they are opened or closed. i have no idea how to deal with the php code because when i click it, its blank. i try to run from a test server, and it just brings up my ST login screen, doesn’t seem like its the correct php code. @sanity :smile:

ethomasii config.cfg uses the following lines to do a callback to the ST device you create. So you can just use generic contact sensors, and create oauth and have alarmserver tell it that its open/closed based on the url.

Zone Open - when a zone is “open” ie, motion sensed or door open.

zoneopen1=https://graph.api.smartthings.com/api/smartapps/installations/…
zoneopen2=https://graph.api.smartthings.com/api/smartapps/installations/…

Zone Close - when a zone is “closed” ie, motion stopped or door closed.

zoneopen1=https://graph.api.smartthings.com/api/smartapps/installations/…
zoneopen2=https://graph.api.smartthings.com/api/smartapps/installations/…