Hi,
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...?
thanks, Dumpfbacke
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
π
2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:-)
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
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...?
thanks, Dumpfbacke
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π
Hi,
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:-)
ok,
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?
-Zip-
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.
Last edit: Morberis 2021-04-14
Read architecture here;
https://github.com/koenkk/zigbee2mqtt
Read API here;
https://raw.githubusercontent.com/koenkk/zigbee-herdsman/master/docs/Z-Stack%20Monitor%20and%20Test%20API.pdf