Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeKit Support Using HomeBridge #4

Open
marcetcheverry opened this issue Oct 15, 2017 · 0 comments
Open

HomeKit Support Using HomeBridge #4

marcetcheverry opened this issue Oct 15, 2017 · 0 comments

Comments

@marcetcheverry
Copy link

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": ""
    }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant