rfoutlet
rfoutlet copied to clipboard
HomeKit Support Using HomeBridge
I have managed to enable HomeKit support using:
There is also the alternative of calling the codesend
command directly with the cmdswitch2 plugin
Here is the sample config file that works with my branch of RFOutlet that supports GET
requests.
{
"bridge": {
"name": "HomeBridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "HomeBridge HTTP Status Control",
"accessories": [
{
"accessory": "Http",
"name": "1",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/rfoutlet/toggle.php?outletId=1&outletStatus=on",
"off_url": "http://localhost/rfoutlet/toggle.php?outletId=1&outletStatus=off",
"service": "Light",
"brightnessHandling": "no",
"sendimmediately": ""
},
{
"accessory": "Http",
"name": "2",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/rfoutlet/toggle.php?outletId=2&outletStatus=on",
"off_url": "http://localhost/rfoutlet/toggle.php?outletId=2&outletStatus=off",
"service": "Light",
"brightnessHandling": "no",
"sendimmediately": ""
},
{
"accessory": "Http",
"name": "3",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/rfoutlet/toggle.php?outletId=3&outletStatus=on",
"off_url": "http://localhost/rfoutlet/toggle.php?outletId=3&outletStatus=off",
"service": "Light",
"brightnessHandling": "no",
"sendimmediately": ""
},
{
"accessory": "Http",
"name": "4",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/rfoutlet/toggle.php?outletId=4&outletStatus=on",
"off_url": "http://localhost/rfoutlet/toggle.php?outletId=4&outletStatus=off",
"service": "Light",
"brightnessHandling": "no",
"sendimmediately": ""
},
{
"accessory": "Http",
"name": "5",
"switchHandling": "realtime",
"http_method": "GET",
"on_url": "http://localhost/rfoutlet/toggle.php?outletId=5&outletStatus=on",
"off_url": "http://localhost/rfoutlet/toggle.php?outletId=5&outletStatus=off",
"service": "Light",
"brightnessHandling": "no",
"sendimmediately": ""
}
]
}