I’m building my own automation engine for Hubitat. It uses Hubitat’s built-in “Maker API” app to get device info and send commands to Hubitat. I’d like to also make it compatible with SmartThings.
Hubitat’s app just makes a rest endpoint that you selectively opt devices into. It then exposes the following API surface, all using HTTP GET.
Get All Devices
http://192.168.1.101/apps/api/143/devices?access_token=redacted
Get Device Info (replace [Device ID] with actual subscribed device id
http://192.168.1.101/apps/api/143/devices/[Device ID]?access_token=redacted
Get Device Event History (replace [Device ID] with actual subscribed device id
http://192.168.1.101/apps/api/143/devices/[Device ID]/events?access_token=redacted
Get Device Commands (replace [Device ID] with actual subscribed device id
http://192.168.1.101/apps/api/143/devices/[Device ID]/commands?access_token=redacted
Get Device Capabilities (replace [Device ID] with actual subscribed device id
http://192.168.1.101/apps/api/143/devices/[Device ID]/capabilities?access_token=redacted
Send Device Command (replace [Device ID] with actual subscribed device id and [Command] with a supported command. Supports optional [Secondary value]
http://192.168.1.101/apps/api/143/devices/[Device ID]/[Command]/[Secondary value]?access_token=redacted
Question: Did they write this in-house, or did they borrow it? Is there a similar SmartApp for SmartThings?
EDIT: I may have already found an answer to my question.
EDIT 2: Yep, that’s pretty much exactly what I wanted. Sweet! This project is gonna RAWK. I’ll be doing it on my Twitch stream (archives here).
Thanks, everyone!