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.

[APP IDEA] HomeBridge

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
«1

Comments

  • swtttswttt Member
    BasPost said:
    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 agree it would be great if we could use siri until the speech input of homey works flawless.
    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.
  • As one of the developers of the official Android app for Domoticz, I know how hard it is to get all devices working in a UI.
    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.
  • swtttswttt Member
    I still think the shortest way would be to create a homebridge plugin for homey. (so homebridge will add the devices, trough the homey api)
    Not sure how mature homey's api is, but this would be the most efficient way.
  • swtttswttt Member
    Hope someone steps up and tries to create a plugin.
    I could give it a go, but don't got the time at the moment.
  • This plugin should work (not tested) https://www.npmjs.com/package/homebridge-readablehttp

    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.
  • very interesting! so u will install the homebridge into homey or need a raspberry anyway?
  • You'll need another server (Raspberry Pi or something else) on which Homebridge would be running.
  • If someone would be able to build a homebridge plugin for homey that would be fantastic, increases usability a lot!
  • I have edited an http homebridge plug-in to work with homey. You wil have to add every device one by one, and dimming with voice isnt working. But the rest works
  • Where is it?
  • Damn broken forum, i am sure i typed more than thats posted.

    I am not sure how to publish a new plugin to npm, but i can share the edited files with a tutorial.
  • That would be great
  • swttt said:
    Damn broken forum, i am sure i typed more than thats posted.

    I am not sure how to publish a new plugin to npm, but i can share the edited files with a tutorial.
    That would be very appreciated!
  • swtttswttt Member
    edited November 2016
    Ok here we go:

    1. Install homebridge (enough info to find on web on this part)
    2. Install this plugin (https://www.npmjs.com/package/homebridge-better-http-rgb)
    3. Find you global node_modules folder, mostly /usr/lib/node_modules
    4. Go into the (just) installed plugin folder homebridge-better-http-rgb
    5. Change the index.js to the on provide as attachment
    6. find your homebridge config.json (location depends on your installation, mine was at /root/.homebridge)
    7. 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.
  • swtttswttt Member
    edited November 2016
    Huhm weird, the brightness adjustment just seem to work now with siri.

    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.
  • it could be useful that someone publish an homebridge-homey plugin, to control not only the rgb light but also all the other device that homey could control... so basically use homey as a big hub for homebridge..
  • Sommo said:
    it could be useful that someone publish an homebridge-homey plugin, to control not only the rgb light but also all the other device that homey could control... so basically use homey as a big hub for homebridge..
    that would be perfect indeed, hope someone has the skills and would like to spend his time creating this broad plugin
  • ReflowReflow Member
    edited December 2016
    Anyone able to make a start on this? Perhaps in combination with a synology NAS?
  • JschuetzJschuetz Member
    edited December 2016
    There is a homebridge Plugin for home-assistant, fhem, openhab and domoticz.  Why not for Homey?

    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
  • i really really appreciate an homebridge plugin to control homey, so i can use it as an hub, no more need to talk with homey instead better performance of siri (also in my native language). hope someone in the future do that.
  • JschuetzJschuetz Member
    edited February 2017
    Maybe, if we find enough people who will spend some money for a homebridge plugin, someone would make a plugin. 

    https://github.com/nfarina/homebridge/issues/1127

  • I am happy to spend around 30 euros or so for it. Would have been more if i still used my apple tv :neutral:

  • i will spend it too if someone could do that!
  • We need more and we need someone with js skills and a goal (how much money do you need to invest your time for the plugin)
  • We also need that rest api stay stable as mentioned in another thread
  • i will spend this aswell. would be a awesome app
  • @sommo that rest api is stable and hasnt changed for a while ( must have been before 0.1.0 at least). 
  • So who will create the homebridge plugin could also have the right documentation ?
  • JschuetzJschuetz Member
    edited February 2017
    Thank you @CodeKing
    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


Sign In or Register to comment.