itsfrosty / control4-2way-web-driver

Control4 2way web driver - Used by Home Bridge Control4 Plugin (homebridge-c4-plugin)
Apache License 2.0
54 stars 28 forks source link

control4-2way-web-driver

This driver allows you to get and set the state of any control4 device by making an http request. The response is in JSON format.

Use Case:

I am using this (along with my homebridge-c4-plugin) to connect homekit to my control4. So I can say "Siri turn on Kitchen Lights" or "Siri is my garage door closed". You can use this with any other hub which supports making http requests.

Examples:

Result: {"1001":"75"} which means the dimmer light with proxyID 25 is currently at 75%

Result: {"success":"true"}

Result: {"1132":"68","1130":"67","success":"true"} which means the thermostat is set to 68F and current temperature is 67F

Result: {"success":"true"}

Result: {"1005":"MAX_ON_LEVEL","1006":"MIN_ON_LEVEL","1003":"CLICK_RAMP_RATE_DOWN","1007":"START_ON_LEVEL","1000":"LIGHT_STATE","1004":"PRESET_LEVEL","1008":"START_ON_TIME_MS","1001":"LIGHT_LEVEL","1002":"CLICK_RAMP_RATE_UP","success":"true"}

How to use:

Sorry this is not currently easy to use :(. You will have to find the variableID and proxyID for each device you want to connect. I hope in future we can make it use device names and variable names instead of IDs.

Warning:

This is completely unencrypted and unsecure. Anybody with access to your wifi will be able to control any of your control4 connected devices. So don't open it to internet and also make sure you have a secured wifi.