exsilium / homebridge-xbee

Homebridge plugin that provides the beginnings of an XBee platform accessories
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

more general zigbee support #1

Closed mrose17 closed 8 years ago

mrose17 commented 8 years ago

hi @exsilium! have you given any thought as to what it would take to use an digi product to provide a homebridge-zigbee plugin? i'm wondering whether i could use an xbee gateway or xstick to do the "zigbee stuff" and have the plugin know about different kinds of HA devices and provide the homekit layer.

any experience with either of those products? thanks!

exsilium commented 8 years ago

Hi @mrose17! I think it all boils down to what you'd expect the homebridge-zigbee plugin to do? If your intent is to join an existing ZigBee network and just issue specific commands to end devices, that should be simple enough and you could use homebridge-xbee to accomplish that. In fact, if you check the currently hardcoded Trigger signal, it uses the same clusterID as specified in ZigBee HA as On/Off cluster.

If you want your future plugin to "know" the devices running in the network, you'd need to implement device and capability discovery as defined in the ZigBee Cluster Library Specification and ZigBee Home Automation Profile.

Personally, I haven't gone beyond controlling XBee radios and programmable XBee radios running custom profile and commands as I don't own any off-the-shelf ZigBee devices myself so I don't have a running network I could easily use to experiment the discovery part. Having said that, if you can use your XStick to join your ZigBee network so you can send some frames, then nothing stops you from using homebridge plugin to talk with the rest of the network. Either doing proper discovery or just hardcoding the devices you have in your network.

If you are looking more into the information how your device can join a ZB network. Digi has a KB article about the debugging part.

Cheers! 🍻

mrose17 commented 8 years ago

thanks for the reply!

initially, i should probably start with something small. i have a number of Quirky Trippers that are zigbee-enabled reed sensors. for those, there's only a couple of properties: contact on/off, tamper on/off, and battery level.

i imagine that going the xstick route is best, though i am sort of hoping there's a REST API on the xbee gateway ... either way, i'd be writing some code, i'm just thinking there's probably less code to write (and easier code to debug) doing REST...

many thanks!

cheers!

exsilium commented 8 years ago

Thanks for sharing! Not sure if you're aware but SmartThings has support for them. It helps in understanding how the init and triggers are done.

mrose17 commented 8 years ago

hi again! i still have my wink hub (in fact i have two... i used to work at wink!) and it works great, i'm just trying to see if i can get everything consolidated under one system. i've asked the folks at digi if they can give me some pointers. i think it would be good to have a "generic" zigbee platform for homebridge, so perhaps something will happen here!

best,

/mtr