This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[APP IDEA] HomeBridge
BasPost
Member
Could it be possible to add Homey as a plugin to an existing HomeBridge installation, so HomeKit would be supported!
I'm building a HomeKit solution for my Domoticz setup this weekend to use Siri. I thought maybe a Homey plugin would be a huge benefit! Or maybe just as suggested already, a Domoticz app would cover this
I'm building a HomeKit solution for my Domoticz setup this weekend to use Siri. I thought maybe a Homey plugin would be a huge benefit! Or maybe just as suggested already, a Domoticz app would cover this
Comments
It's on my list to try and use domoticz as a slave controller (in the z-wave network) and use domoticz + homebridge.
It would be possible to write an homebridge-homey plugin (since the homey has an api), i looked at it for a few minutes. Didn't spend any time on it, but should be possible.
I've been thinking how to get this to work the most easy way.
I think it the most efficient way is to have someone write an app which creates different virtual devices and have Domoticz update it's status via the API.
And use the HTTP app in Homey to update devices in Domoticz.
Let me know what you think about it.
Not sure how mature homey's api is, but this would be the most efficient way.
https://github.com/nfarina/homebridge/blob/master/README.md#writing-plugins
I could give it a go, but don't got the time at the moment.
You will need to add every device one by one tho. Only works with lights, dimmers and sockets as far as i can see.
Will try to get it working tonight.
I am not sure how to publish a new plugin to npm, but i can share the edited files with a tutorial.
- Install homebridge (enough info to find on web on this part)
- Install this plugin (https://www.npmjs.com/package/homebridge-better-http-rgb)
- Find you global node_modules folder, mostly /usr/lib/node_modules
- Go into the (just) installed plugin folder homebridge-better-http-rgb
- Change the index.js to the on provide as attachment
- find your homebridge config.json (location depends on your installation, mine was at /root/.homebridge)
- add the devices to your config.json like the example in the attachment
Couldn't add the files directly, so zipped them.If someone can get brightness commands to work over siri would be great...
Or even publish this to npm, cause i have no idea.
OH CRAP: The most important part. Change the device id in the url to match yours. Not sure whats the easiest way to find this tho.
UPDATE: Easiest way: Use chrome, right click the device and chose inspect. Then look for the data-id, thise is your device id.
Oh...the plugin should be able to handle rgb lights. Haven't changed this to work with homey, but should be possible.
Not something i really mis, so not something i am going to do.
Oh2...the plugin can only handle lights. Other device types need to be implemented (see source code). Again, not something i have to time for to do but is do-able.
There are many examples for Z-Wave Server or the other smart home systems. Maybe someone can use this to write a plugin for the homey api.
https://github.com/nfarina/homebridge-legacy-plugins
https://github.com/nfarina/homebridge/issues/1127
maybe this one helps
https://forum.athom.com/discussion/2623/rest-api#latest
If i see it right, we have to build a discover and device type assignment method. Then we have to build method to check and set the status for the device.
I think a version with devices likes sockets and lights would be enough. Motion Sensors are nice to have but not neccessary cause i think everbody would use it with homey.
Examples are here:
https://www.npmjs.com/search?q=homebridge-plugin&page=1&ranking=optimal
And i think one of the best example is smarthings, cause it also uses a json api.
https://www.npmjs.com/package/homebridge-smartthings