Device and Activity HTTP Interface: Simple Sync 3.3.0

Also just released as part of Simple Sync 3.3.0 is the new HTTP Command Interface. Some of the Activities portion of this existed before, and we’re now enabling full access to individual device commands, including even repeating buttons via HTTP from external systems. The “Allow External Commands” option must be turned on to enable this interface.

Documentation for this feature is now available on the Setup Guides page: … up-guides/

Thank you.

Adding a tidbit here that is not in the document as it is very integration specific. This is LUA code for Vera products to run a Simple Control Activity via Simple Sync. Make sure to replace the UUID of the Activity you want to run with the UUID of your Activity that you can retrieve from /api/v1/activities.

[code]local http = require(“socket.http”)
local ltn12 = require(“ltn12”)

local path = "http://YOUR.SIMPLE.SYNC.IP:47147/api/v1/runactivity"
local payload = [[ {“activity_uuid”:“84C9A017-7AC9-4182-BD2C-6B40E7928D3F”} ]]
local response_body = { }

local res, code, response_headers, status = http.request
url = path,
method = “POST”,
headers =
[“Content-Type”] = “application/json”,
[“Content-Length”] = payload:len()
source = ltn12.source.string(payload),
sink = ltn12.sink.table(response_body)

If you are toggling an Activity, change the payload line to:

local payload = [[ {"activity_uuid":"84C9A017-7AC9-4182-BD2C-6B40E7928D3F+","toggle_state":"on"} ]]

Or “off” if you’re turning it off, with a “-” at the end of the UUID.

Hello - I was curious if the Simple Control HTTP allows for determining the status of a toggle activity ( “on” or “off”)? Thanks.