want to use Zigbee (temperature sensors, light control) with codesys on raspberry pi runtime. is this possible?
Whats best standart at the moment to to smart home on pi?
Zigbee, Mqtt, encean, etc...?
You could probably use Mqtt on codesys with zigbee2mqtt running on the raspberry pi. You will also need a cc2531 usb stick flashed with the zigbee2mqtt firmware.
ok, thanks for this hint👍
Yes Zigbee seems to be the most popular wireless protocol at this moment for Domotica (IoT). Zigbee concentrator (a central send receive hub) can be a simple USB stick with the right firmware loaded on it. In theory this hub is then accessed via CODESYS as a serial device via USB (a COM port) but I am not really sure of this because I have not yet connected mine (yes I also want to couple Zigbee to CODESYS ;-)
If you are handy enough, you can buy one from aliexpress and flash it yourself. I got one for about 4euro. Plus you if you use MQTT you could also opt to use Sparkplug as payload. This can potentially take away a huge chunk of manual programming effort. However since Sparkplug for CODESYS has highest prio I have not come around to it.
Please share your adventures and updates on this topic with us:-)
In theory this hub is then accessed via CODESYS as a serial device via USB (a COM port) but I am not really sure of this because I have not yet connected mine (yes I also want to couple Zigbee to CODESYS ;-)
so this means i can read a datastream via USB com port from this stick?
I can't find what I was talking about. Yesterday I saw some stuff that seemed relevant when looking up adding a USB HID device.
You might be able to use Node Red to do the work and then read/write to those variables from Codesys. But thats not as nice of a solution.
Read architecture here;
Read API here;
Log in to post a comment.