first of all let me apologies for the question, because I have already found many other user asking something similar (but I cannot find an easy start2finish guide)
I am pretty new to openHab and I got excited on how I can “dump” all sort of “proprietary hubs”…
The first I want to dump if IKEA
I have some IKEA lights (ZigBee) and I was trying to setup a USB dongle CC2531… (I have the debugger and I can easily flash the firmware…)
I have the following problems:
which firmware should I l flash the CC2531 with?
once flash the USB, how to I see connect it to the openHab? (Raspberry Pi3)
You can change any settings through PaperUI. Just select the coordinator thing that you added above and change any configuration that you need to set. In general, other than the serial port you shouldn’t need to change much I hope.
You can also take a look at this for zigbee2mqtt and it work well with OH. The link has all the instructions you will need just start with “Getting Started”.
please be aware that the zigbee binding could have problemens with some ikea dimmers and motion sensors. These devices act not like expected from the zigbee standard. They open own groups and don´t communicate (directly) with the coordinater (your usb stick). As far as I know also some xiamio devices have the same problems.
This could have chanced recently. Maybe @chris knows the actual state of these strange acting devices. For me this was a reason to change to zigbe2mqtt. But the integration is a bit more complex as you need:
proper firmware
zigbee2mqtt as another software beside openhab
a mqtt service beside openhab (maybe you use one allready)
manage the mqtt commands and messages yourself (could get tricky, i.e. for color lights)
you need to manage your devices within zigbee2mqtt and openhab in parallel
(function(x){
var result;
var json = JSON.parse(x);
result = json.brightness * 100 / 255;
return result;
})(input)
JS transformation for setting bulb brightness:
(function(x){
var brightness = x * 255/100;
var result = new Object();
result.brightness = brightness;
return JSON.stringify(result);
})(input)
JS transformation for setting zigebee state:
```csv
(function(x){
var result = new Object();
result.state = x;
return JSON.stringify(result);
})(input)