This is a annotated mirror of the Driver documenation that is located here
###OVERVIEW
This driver exposes a web server endpoint for interacting with Control4 systems. This enables Control4 integration into other control systems.
API references RoomID, DeviceID, and ProxyID. These can be found in Composer by hovering over a room or device with your mouse until the tooltip appears.
###API - CURRENT VERSION 1
All endpoint requests return JSON responses.
###ROOM CONTROL - HTTP GET
OR
Direct room remote commands.
Key presses listed under Programming, Room Name, Commands, Commands drop-down.
Example:
- http://controllerIP:7070/v1/room/123/VOL_UP
- http://controllerIP:7070/v1/room/123/SET_VOLUME_LEVEL/LEVEL/25
##EVENT TRIGGER - HTTP GET
Fire driver events to execute Control4 based programming.
Example:
##ROOM VARIABLE - HTTP GET
OR
Return room variables. (source ID, volume, etc.)
Example:
Some variables of interest:
- VARIABLE_1001: Source Device ID
- VARIABLE_1005: Mediainfo
- VARIABLE_1007: Active Device Binding
- VARIABLE_1011: Volume Level
- VARIABLE_1031: Mediainfo
- VARIABLE_1033: Camera Info
##DEVICE VARIABLE - HTTP GET
Return device variable.
Example:
##SECURITY PANEL - HTTP GET
http://192.168.200.193:7070/v1/securitypanel/691
Return security panel status variables. (Armed state, display text, trouble text, etc.)
Example:
##RELAY - HTTP GET
Return relay state.
Example:
##CONTACT - HTTP GET
Return contact state.
Example:
##THERMOSTAT V2 - HTTP GET
Return thermostat status variables. (Temperature, setpoints, scale, etc.)
Needs to be a V2 thermostat driver.
Example: