Description
This app expects set of APIs to be implemented on the Garage Door Opener. Simplest Garage Door Openers is built using Raspberry PI and Relay.
Use App Settings -
Device Key: Secrete key/token used as Bearer when making API calls
Device IP: IP address of Garage Door Opener
Device Port: Port number of Grade Door Opener
Use HTTPS: Checkd if using HTTPS
Optional Settings Used to Get Status from SmartThings Sensors
ST Sensor ID 1: Sensor ID for First Garage Door from Smartthings Hub
ST Sensor ID 2: Sensor ID for Second Garage Door from Smartthings Hub
ST Sensor ID 3: Sensor ID for Third Garage Door from Smartthings Hub
Status Key: Secrete key/token used as Bearer when making API calls to Smartthings
Backend APIs to Implement
1. Implement API to retrieve Server Version
http(s)://\(deviceIP):\(devicePort)/api
2. Implement API to toggle garage door
http(s)://\(deviceIP):\(devicePort)/api/garage/toggle/\(garage)
3. Implement API to retrive status of garage door
http(s)://\(deviceIP):\(devicePort)/api/garage/state/\(garage)
- use payload as - (url:"https://api.smartthings.com/v1/devices/\(sensorID)/status", token: statusKey)
(SmartThings® is a registered trademark of Samsung Electronics Co., Ltd.)