Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Zigbee and Codesys

dumpfbacke
2021-04-13
2021-04-14
  • dumpfbacke

    dumpfbacke - 2021-04-13

    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

     
  • yannickasselin

    yannickasselin - 2021-04-13

    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
    • dumpfbacke

      dumpfbacke - 2021-04-13

      ok, thanks for this hintπŸ‘

       
  • h-hermsen

    h-hermsen - 2021-04-13

    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:-)

     
    πŸ‘
    1
    • dumpfbacke

      dumpfbacke - 2021-04-14

      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?

       
      • Morberis

        Morberis - 2021-04-14

        -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.

         
        πŸ‘
        1

        Last edit: Morberis 2021-04-14

Log in to post a comment.