Hi All,
My idea is to create a own zigbee switch/dimmer and pair it with gateway.
I used digi xstick and configured it.
Got a Digi S2C zigbee module and changed parameters like PAN ID, Channels etc so that it is pairable
The gateway detected it as a thing (unknown device type)
This is where I am now. Now i want this thing to be detected as a onOff switch / dimmable switch and then control the corresponding relay / triac based dimmer.
Any hints on how to make this thing as a switch? Anyone tried with S2C modules and a custom switch? Any pointers are welcome.
I am in parallel trying the custom firmware on meshbee which is kind of clone of Hue. But i prefer the previous approach.
I have played with the XBee Zigbee Mesh Kit and configured S2C modules as a controller, router and end device with the XCTU software. I never got as far as figuring out how to get them to use clusters from the Zigbee Home Automation profile though, which is what the gateway’s Zigbee adapter is looking for.
Thanks for the info. I have seen the link and I did configure by XBees with these parameters. The gateway (xstick) is able to detect the S2C as a thing (unknown thing) as of now (with these configurations).
But the inclusion process is about announcing the device and then sending the endpoints information back to controller. See the post below, a pretty old post but it explains how devices are included in the network. https://www.falco.co.nz/electronic-projects/xbee-to-smartthings
There, finally the controller needs some additional information to detect it as a on/off switch. I don’t know how that happens in the mozilla gateway here.
Also what I don’t understand is, as part of end-point-announce process the HA profile has some parameter to say this device is on/off switch. But still in the link above this device is detected as unknown type. If the endpoint type is onoff why do you need additional device driver? I fail to understand this.
Regards,
Vijay
The fact that it haw “-thing” at the end means that it was able to see your device, but the classifier still didn’t detect the right clusters. If the right clusters are detected then it would have shown up as “-onOffSwitch”
If you start the gateway using the command:
npm start -- -d
Then you can use the get-devices.sh script from https://github.com/mozilla-iot/curl-examples (you’ll need to using login.sh first). This will print some output which includes the clusters that were recognized. With my Centralite smart plug, the cluster portion of the output looks like this:
Hi,
I ordered few Zigbee HA 1.2 devices, that why a bit late reply.
Even after upgrading to latest 0.5 version, all these devices were identified as things. Some how its not able to classify them correctly. There were smart plug, Door Sensor, Motion Sensor (multiple, light, humidity …) and CO2 sensor.
All of them seemlessly worked in openhab and even identified the profile correctly.
If you need more information i can share it also device details. Devices were imported from alibaba and they are zigbee HA 1.2 devices.
I am trying to build own iot gateway, right now I have digi Xbee S2C modular, it connect into Arduino shield then connected to Raspberry pi 3. you case it same as me or using the usb adaptor for the Xbee S2C?
Sorry for posting in this old topic but I was trying to find out if an XBee S2C module can be used in place of the XStick and found this thread.
When you say load (the S2C) with the coordinator firmware, is it the same as changing the settings on XCTU? Other than the few settings mentioned by @benfrancis above, are there other settings that need to be specified (eg baud rate)? Thank you for your time!
Hi Dave, thanks for that. There aren’t different firmware versions for the Xbee S2C modules. Just as an update - I couldn’t use the Xbee S2C as a dongle. Maybe it needs it’s own driver as mentioned here (Kinds of Zigbee Dongles)
edit: update to the above; I got the Xbee S2c to work as a dongle. It was a problem with my Xbee explorer (https://www.sparkfun.com/products/11812). This one has a serial device of 0403:6015. I got it to work with an older Xbee explorer (https://www.sparkfun.com/products/retired/8687) which has a serial device of 0403:6001 - and what the zigbee adapter code is looking for.
My intention initially was to have a cheap switch using Zigbee but then i realized that it is very complex to get it work using XBee modules. Only devices with HA profile or that can be programmed to HA profile can be paired.
I found a blog post by someone about setting up the S2C as a coordinator. Having the different firmwares for different modes (what I was remembering) was probalby for an older xbee device.
I haven’t personally tried this, so I don’t know if it actually works or not.
Once the dongle has been configured as a coordinator, then the gateway needs to be able to recognize it. Currently it scans for particular USB VIDs/PIDs.
There is a checkbox in the zigbee configuration to allow arbitrary FTDI devices to be checked. To work with a different serial adapter will require a small code change.