Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Open Source Home Automation (Raspberry)

Open Source Home Automation (Raspberry)

Scheduled Pinned Locked Moved Controllers
automationopen sourceraspberrycontroller
111 Posts 30 Posters 155.1k Views 15 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • YveauxY Yveaux

    @epierre I'm afraid I don't get you...
    So you're on domoticz, and you already have a gateway to mysensors?
    Why do you want to switch to MQTT then?

    epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by
    #43

    @Yveaux no I mean to make a mysensors gateway to imperihomr

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    YveauxY 1 Reply Last reply
    0
    • epierreE epierre

      @Yveaux no I mean to make a mysensors gateway to imperihomr

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #44

      @epierre You could use my code as a start to connect to a mysensors Ethernet gateway and read/send messages, but it is really meant to bridge to MQTT protocol, and you don't need that, right?

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • DammeD Damme

        @Yveaux I made it work but with lots of changes, first I use serial and not ethernet on the arduino, and then I didnt find the AnyEvent::MQTT, I use Net:MQTT instead. So basically its not much left of your original script, but it was just for testing MQTT a bit.

        I think it would direcly in arduino..

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #45

        @Damme I did start with an arduino implementation buy as MQTT is text-based I needed quite some flash to store all the strings to convert the mysensors variable names and stuff.
        This filled up my atmega328 almost completely and I got tired of all the trickery required to stay within the 32kb. I just wanted to prove and test the cooperation of my sensors and MQTT.
        Then I realized the MQTT broker had to run on a 'heavier' platform anyway and decided that also my gateway could -- I see no use to stuff everything into an arduino.

        If you're interested I can share the arduino implementation, but I no longer see the use for it.

        If your changes improved my implementation then please share them with us :+1:

        http://yveaux.blogspot.nl

        DammeD 1 Reply Last reply
        0
        • YveauxY Yveaux

          @Damme I did start with an arduino implementation buy as MQTT is text-based I needed quite some flash to store all the strings to convert the mysensors variable names and stuff.
          This filled up my atmega328 almost completely and I got tired of all the trickery required to stay within the 32kb. I just wanted to prove and test the cooperation of my sensors and MQTT.
          Then I realized the MQTT broker had to run on a 'heavier' platform anyway and decided that also my gateway could -- I see no use to stuff everything into an arduino.

          If you're interested I can share the arduino implementation, but I no longer see the use for it.

          If your changes improved my implementation then please share them with us :+1:

          DammeD Offline
          DammeD Offline
          Damme
          Code Contributor
          wrote on last edited by
          #46

          @Yveaux My script is not better than yours, I kind of broke it.. :)

          I had a thought that the atmega328 isn't enough, one option is to have external flash but no program code can be stoored there. The 32kb is still very limiting.
          I had a thought of atmega2560, there is one model with build in ethernet and some with external, total cost ~30USD. It has 256KB flash memory.
          So, yes I would be interessed in yout arduino code.. I might be able to slim the program down.. :)

          YveauxY 1 Reply Last reply
          0
          • F Offline
            F Offline
            filoucaenais
            Plugin Developer
            wrote on last edited by
            #47

            Hello
            go Jeedom
            the project progresses faster
            and I motivated to make a plugin for MySensors
            there will be more people motivate
            faster plugin advance

            epierreE 1 Reply Last reply
            0
            • DammeD Damme

              @Yveaux My script is not better than yours, I kind of broke it.. :)

              I had a thought that the atmega328 isn't enough, one option is to have external flash but no program code can be stoored there. The 32kb is still very limiting.
              I had a thought of atmega2560, there is one model with build in ethernet and some with external, total cost ~30USD. It has 256KB flash memory.
              So, yes I would be interessed in yout arduino code.. I might be able to slim the program down.. :)

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #48

              @Damme My code does only implement a MQTT client, not the broker. But if you still want it, chat me your email and I'll send it to you.

              http://yveaux.blogspot.nl

              DammeD 1 Reply Last reply
              0
              • YveauxY Yveaux

                @Damme My code does only implement a MQTT client, not the broker. But if you still want it, chat me your email and I'll send it to you.

                DammeD Offline
                DammeD Offline
                Damme
                Code Contributor
                wrote on last edited by
                #49

                @Yveaux Ah, I been writing a broker, just need a new Ethernet controller to continue, hope it will arrive tomorrow.

                1 Reply Last reply
                0
                • F filoucaenais

                  Hello
                  go Jeedom
                  the project progresses faster
                  and I motivated to make a plugin for MySensors
                  there will be more people motivate
                  faster plugin advance

                  epierreE Offline
                  epierreE Offline
                  epierre
                  Hero Member
                  wrote on last edited by
                  #50

                  @filoucaenais so bad all the core features in the market are to be bought... and that only zway which is now dying is supported, not openzwave...

                  @bjornhallberg @Damme even domoticz guy are pushing people to use something better than raspberry... for a little more you have a cubieboard2 which has 1Go RAM and 2 cores @ 2011 bogomips... For z-wave OpenHab is still the best choice...

                  z-wave - Vera -> Domoticz
                  rfx - Domoticz <- MyDomoAtHome <- Imperihome
                  mysensors -> mysensors-gw -> Domoticz

                  bjornhallbergB hekH 2 Replies Last reply
                  0
                  • epierreE epierre

                    @filoucaenais so bad all the core features in the market are to be bought... and that only zway which is now dying is supported, not openzwave...

                    @bjornhallberg @Damme even domoticz guy are pushing people to use something better than raspberry... for a little more you have a cubieboard2 which has 1Go RAM and 2 cores @ 2011 bogomips... For z-wave OpenHab is still the best choice...

                    bjornhallbergB Offline
                    bjornhallbergB Offline
                    bjornhallberg
                    Hero Member
                    wrote on last edited by bjornhallberg
                    #51

                    @epierre Yes there are a lot better options out there, but I'm not going to buy a new platform just so I can run JAVA ;-) Nothing in this price range is going to be fast enough for that I suspect. Faster, sure, but not fast as in virtually instantaneous.

                    I actually tried openhab2 branch on the RPi just a few minutes ago. Slow Sunday, I know. Don't know if it has been optimized yet as promised but it took about 4 minutes to start. And then it used up 25% of available RAM right out of the box, running the demo config. Would be interesting to see how fast it boots on a cubieboard2 or similar. Even if it could get it down to a minute it would be a minute too much imo. Perhaps it will run fine after it's been loaded, but those loading times were enough to deter me. I mean, in 4 minutes your house could get burgled several times over ;-) I just don't see what openhab has to offer that is worth all that.

                    The reason I got a RPi was the camera module. And the extremely wide support for the platform. I swore I would never touch an ARM platform again after my first Android phone and my Synology NAS but I guess the price (and camera) got the better of me. I also don't have any z-wave devices.

                    On a side note, I've ordered another Arduino Uno Ethernet Shield to complete the bridge to the MQTT broker. I will just have to find some automation software that will run fine on the Pi.

                    epierreE 1 Reply Last reply
                    1
                    • bjornhallbergB bjornhallberg

                      @epierre Yes there are a lot better options out there, but I'm not going to buy a new platform just so I can run JAVA ;-) Nothing in this price range is going to be fast enough for that I suspect. Faster, sure, but not fast as in virtually instantaneous.

                      I actually tried openhab2 branch on the RPi just a few minutes ago. Slow Sunday, I know. Don't know if it has been optimized yet as promised but it took about 4 minutes to start. And then it used up 25% of available RAM right out of the box, running the demo config. Would be interesting to see how fast it boots on a cubieboard2 or similar. Even if it could get it down to a minute it would be a minute too much imo. Perhaps it will run fine after it's been loaded, but those loading times were enough to deter me. I mean, in 4 minutes your house could get burgled several times over ;-) I just don't see what openhab has to offer that is worth all that.

                      The reason I got a RPi was the camera module. And the extremely wide support for the platform. I swore I would never touch an ARM platform again after my first Android phone and my Synology NAS but I guess the price (and camera) got the better of me. I also don't have any z-wave devices.

                      On a side note, I've ordered another Arduino Uno Ethernet Shield to complete the bridge to the MQTT broker. I will just have to find some automation software that will run fine on the Pi.

                      epierreE Offline
                      epierreE Offline
                      epierre
                      Hero Member
                      wrote on last edited by
                      #52

                      @bjornhallberg on my cubie (paid $50 with a box), I have imperihome gateway, mysensors gateway, jeedom, domoticz and openhab running... load: 0,6 more than 200 Mo ram available even with kernel cache...

                      remember that the pi has no FPU... BogoMIPS : 464.48 ...

                      z-wave - Vera -> Domoticz
                      rfx - Domoticz <- MyDomoAtHome <- Imperihome
                      mysensors -> mysensors-gw -> Domoticz

                      1 Reply Last reply
                      0
                      • epierreE epierre

                        @filoucaenais so bad all the core features in the market are to be bought... and that only zway which is now dying is supported, not openzwave...

                        @bjornhallberg @Damme even domoticz guy are pushing people to use something better than raspberry... for a little more you have a cubieboard2 which has 1Go RAM and 2 cores @ 2011 bogomips... For z-wave OpenHab is still the best choice...

                        hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #53

                        @epierre said:

                        even domoticz guy are pushing people to use something better than raspberry... for a little more you have a cubieboard2 which has 1Go RAM and 2 cores @ 2011 bogomips... For z-wave OpenHab is still the best choice...

                        Ok, ordered myself a cubieboard2 to have something to compare with the RPi.

                        epierreE 1 Reply Last reply
                        0
                        • hekH hek

                          @epierre said:

                          even domoticz guy are pushing people to use something better than raspberry... for a little more you have a cubieboard2 which has 1Go RAM and 2 cores @ 2011 bogomips... For z-wave OpenHab is still the best choice...

                          Ok, ordered myself a cubieboard2 to have something to compare with the RPi.

                          epierreE Offline
                          epierreE Offline
                          epierre
                          Hero Member
                          wrote on last edited by epierre
                          #54

                          @hek if you want to stay on a debian (as raspi), you can try from the SD this one: http://www.cubieforums.com/index.php/topic,1275.0.html

                          Kernel is quite new (not the official 3.4.75 but a 3.4.98 with temp sensor and watchdog), it is minimal so if you compile you'll add to add packages that are not present by default.

                          I moved because I aded dynamic linking to lua to acess sqlite3 from scripts, but it was reverted because of NAS users having compilation issues... compiling omoticz on raspi took more than 1 hour... on cubie a lot less !

                          Even better is the odroid, but it is yet another class (quad core, 4GB DDR3, Ekynos SoC of the samsung S3). More like an AMM counter ;-)

                          z-wave - Vera -> Domoticz
                          rfx - Domoticz <- MyDomoAtHome <- Imperihome
                          mysensors -> mysensors-gw -> Domoticz

                          1 Reply Last reply
                          0
                          • JohnJ Offline
                            JohnJ Offline
                            John
                            Plugin Developer
                            wrote on last edited by John
                            #55

                            Hi I'm John and i'm developing PiDome together with a friend of mine.

                            The project is in an early stage and we just a couple of days ago are starting to support existing devices (Philips Hue was the first) and are going to include native MySensors support. When it will be included exactly i can not tell but it will be between now and some weeks. The main reason for this is that i'm doing the software and this friend of mine the hardware. So we are just two developers.

                            The project is aimed at the raspberry pi but being based on java, it will not prevent it will also run on other systems (windows services are in test fase for example). The project also exists of multiple sub projects. Like the server, Desktop OS like/small application and an Android app.
                            It supports websockets, raw sockets and webservice json-rpc entrypoint all these have secure and non secure ports, visual trigger editor (if this then that (else is on it's way)), floor planner (multiple floors).

                            It is an ambitious but in very early stage project with currently only quick follow up alpha releases and a lot, lot of testing. Maybe at some point it will be interesting when the MySensors support is built in and people are willing to test it.

                            [edit]
                            A little video about the project is posted here: http://pidome.wordpress.com/2014/05/28/pidome-explained-in-a-video-clip-with-web-interface-demo/

                            My Domotica project: http://www.pidome.org

                            hekH 1 Reply Last reply
                            0
                            • JohnJ John

                              Hi I'm John and i'm developing PiDome together with a friend of mine.

                              The project is in an early stage and we just a couple of days ago are starting to support existing devices (Philips Hue was the first) and are going to include native MySensors support. When it will be included exactly i can not tell but it will be between now and some weeks. The main reason for this is that i'm doing the software and this friend of mine the hardware. So we are just two developers.

                              The project is aimed at the raspberry pi but being based on java, it will not prevent it will also run on other systems (windows services are in test fase for example). The project also exists of multiple sub projects. Like the server, Desktop OS like/small application and an Android app.
                              It supports websockets, raw sockets and webservice json-rpc entrypoint all these have secure and non secure ports, visual trigger editor (if this then that (else is on it's way)), floor planner (multiple floors).

                              It is an ambitious but in very early stage project with currently only quick follow up alpha releases and a lot, lot of testing. Maybe at some point it will be interesting when the MySensors support is built in and people are willing to test it.

                              [edit]
                              A little video about the project is posted here: http://pidome.wordpress.com/2014/05/28/pidome-explained-in-a-video-clip-with-web-interface-demo/

                              hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by
                              #56

                              @John-Sirach

                              :thumbsup:

                              Nice project you got going! Let me know if you need help interpreting the protocol while developing the MySensors plugin.

                              JohnJ 1 Reply Last reply
                              0
                              • hekH hek

                                @John-Sirach

                                :thumbsup:

                                Nice project you got going! Let me know if you need help interpreting the protocol while developing the MySensors plugin.

                                JohnJ Offline
                                JohnJ Offline
                                John
                                Plugin Developer
                                wrote on last edited by
                                #57

                                @hek Thnx! We're doing the best we can. If i have any questions i will drop you a line. When i take a look at the devices it's all fairly simple. The only thing i notice is that there are variable types, but no data types. Is this correct?

                                My Domotica project: http://www.pidome.org

                                hekH 1 Reply Last reply
                                0
                                • daulagariD Offline
                                  daulagariD Offline
                                  daulagari
                                  Hero Member
                                  wrote on last edited by
                                  #58

                                  Instead of every project reinventing the wheel I would hope we would come to a common MQTT gateway so at least part of the code to support MySensors can be reused and ... you can have multiple Domotica solutions in parallel working with MySensors.

                                  Every Domotica project can then focus on how to handle the different devices the best but at least the interface talking to the MySensor network is standardized.

                                  @Yveaux has already posted a script above not 100% sure how far this is off for a complete solution.

                                  JohnJ 1 Reply Last reply
                                  0
                                  • JohnJ John

                                    @hek Thnx! We're doing the best we can. If i have any questions i will drop you a line. When i take a look at the devices it's all fairly simple. The only thing i notice is that there are variable types, but no data types. Is this correct?

                                    hekH Offline
                                    hekH Offline
                                    hek
                                    Admin
                                    wrote on last edited by
                                    #59

                                    @John-Sirach

                                    Yes, that is correct. There are both device- and variable types. You can report multiple variables on one device.

                                    When to use a specific variable type for a device is really a silent agreement between sensor and controller. Today you could actually report a temperature variable to a humidity device. It would not make any sense, but noting prohibits this. A good example where multiple variables is reported for one device is POWER-device where you usually report both KWH and WATT.

                                    If we can find a more general way of handling this in the future (and not over complex from the sensors point of view) it would be good. We had an discussion going about this but the thread disappeared in an crash.

                                    - I might split this into a new topic -

                                    JohnJ 1 Reply Last reply
                                    0
                                    • daulagariD daulagari

                                      Instead of every project reinventing the wheel I would hope we would come to a common MQTT gateway so at least part of the code to support MySensors can be reused and ... you can have multiple Domotica solutions in parallel working with MySensors.

                                      Every Domotica project can then focus on how to handle the different devices the best but at least the interface talking to the MySensor network is standardized.

                                      @Yveaux has already posted a script above not 100% sure how far this is off for a complete solution.

                                      JohnJ Offline
                                      JohnJ Offline
                                      John
                                      Plugin Developer
                                      wrote on last edited by
                                      #60

                                      @daulagari One of the features of PiDome is the json-rpc api which is standardized for every device added. Every device is being reported in the same manner (data, structure, etc...). One of the features on our todo list is MQTT and not only for device communication, but next to the json-rpc api and to be used between multiple PiDome server instances. This would also of course make it possible to chain different type of domotica solutions. We are not yet done with defining the MQTT structure, but it will eventually certainly be done.

                                      My Domotica project: http://www.pidome.org

                                      1 Reply Last reply
                                      0
                                      • hekH hek

                                        @John-Sirach

                                        Yes, that is correct. There are both device- and variable types. You can report multiple variables on one device.

                                        When to use a specific variable type for a device is really a silent agreement between sensor and controller. Today you could actually report a temperature variable to a humidity device. It would not make any sense, but noting prohibits this. A good example where multiple variables is reported for one device is POWER-device where you usually report both KWH and WATT.

                                        If we can find a more general way of handling this in the future (and not over complex from the sensors point of view) it would be good. We had an discussion going about this but the thread disappeared in an crash.

                                        - I might split this into a new topic -

                                        JohnJ Offline
                                        JohnJ Offline
                                        John
                                        Plugin Developer
                                        wrote on last edited by
                                        #61

                                        @hek Having multiple kind variables posted to a single device is no problem, it's more about the datatype handling because of possible automatic graph creations. It would be nice of there was a table somewhere telling what kind of data a variable is for the internal mappings used. But this would an other topic.

                                        My Domotica project: http://www.pidome.org

                                        marceltrapmanM 1 Reply Last reply
                                        0
                                        • daulagariD Offline
                                          daulagariD Offline
                                          daulagari
                                          Hero Member
                                          wrote on last edited by
                                          #62

                                          @John-Sirach said:

                                          It would be nice of there was a table somewhere telling what kind of data a variable is for the internal mappings used.

                                          Yes, agree, and it would be even nicer if that table was in a machine readable format so that again not everybody has to reinvent the wheel.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular