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. pimatic
  4. pimatic-mysensors controller plugin

pimatic-mysensors controller plugin

Scheduled Pinned Locked Moved pimatic
controllernode idnrf24l01+mysensorsrasp
92 Posts 23 Posters 56.3k Views 11 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.
  • karl261K karl261

    @fets Yes, indeed, I made some progress during the last weeks. Today I finally found a way to display these debug messages. Took me months. See this thread: http://forum.mysensors.org/topic/2392/how-to-properly-debug-serial-gateway-nrf24l01
    I think my serial gateway was somehow badly connected. During the past weeks I verified everything, re-soldered, tested various power supplies and radio modules, etc. Now it seems to work usually stable. But not always. Now I am playing around with increasing the sending power of the radio modules.

    I am using a pi 2.

    Interesting, your problem sounds very similar. Unfortunately I do not really have any advice. Maybe try to build a duplicate and see if this works better?

    fetsF Offline
    fetsF Offline
    fets
    wrote on last edited by
    #78

    @karl261 My issue seems solve using capacitors on my rfm69 radios.

    1 Reply Last reply
    0
    • fahrettineF Offline
      fahrettineF Offline
      fahrettine
      wrote on last edited by
      #79

      Hi everyone,
      I installed Pimatic and it looks work just fine.
      In the Config menu I added the codes below.
      Saved and restarted the Pimatic.
      I see "Light Unknown%" on the frontpage.
      How can I fix that? Thanks....

      {
        "plugin": "mysensors",
        "driver": "serialport",
        "protocols": "1.5.1",
        "startingNodeId": 1,
        "driverOptions": {
          "//": "'/dev/ttyUSB0' if using serial Gateway",
          "serialDevice": "/dev/ttyMySensorsGateway",
          "baudrate": 115200
        }
      }
      

      ],
      "devices": [
      {
      "id": "Light",
      "name": "Light",
      "class": "MySensorsLight",
      "nodeid": 15,
      "batterySensor": false,
      "sensorid": 2
      }
      ],

      SweebeeS 1 Reply Last reply
      0
      • fahrettineF fahrettine

        Hi everyone,
        I installed Pimatic and it looks work just fine.
        In the Config menu I added the codes below.
        Saved and restarted the Pimatic.
        I see "Light Unknown%" on the frontpage.
        How can I fix that? Thanks....

        {
          "plugin": "mysensors",
          "driver": "serialport",
          "protocols": "1.5.1",
          "startingNodeId": 1,
          "driverOptions": {
            "//": "'/dev/ttyUSB0' if using serial Gateway",
            "serialDevice": "/dev/ttyMySensorsGateway",
            "baudrate": 115200
          }
        }
        

        ],
        "devices": [
        {
        "id": "Light",
        "name": "Light",
        "class": "MySensorsLight",
        "nodeid": 15,
        "batterySensor": false,
        "sensorid": 2
        }
        ],

        SweebeeS Offline
        SweebeeS Offline
        Sweebee
        wrote on last edited by
        #80

        @fahrettine How does your sketch look? Does pimatic receive anything in de log?

        1 Reply Last reply
        0
        • fahrettineF Offline
          fahrettineF Offline
          fahrettine
          wrote on last edited by
          #81

          Hi,
          Thanks for the answer.
          1-I installed Pimatic.
          2-I installed Serial Gateway on the Arduino Nano.
          3-I installed the Light sketch from MySensors on the Nano.

          Pimatic logs look like below. It seems it doesnt receive any signal.
          I think there is someting wrong with the USB port...
          Are my USB port settings coreect?
          You can see MySensors plugin settings above.

          2016-04-05 19:23:46info [pimatic]: Listening for HTTP-request on port 80...
          19:23:46info [pimatic-mobile-frontend]: rendering html finished
          19:23:20info [pimatic-mobile-frontend]: rendering html
          19:23:20info [pimatic-mobile-frontend]: packing static assets finished
          19:23:18info [pimatic-mobile-frontend]: packing static assets
          19:23:18info [pimatic]: New device "Light"...
          19:23:08info [pimatic-cron]: the time is: Tue Apr 05 2016 14:23:08 GMT-0200 (GMT+2)
          19:23:08info [pimatic]: Loading plugin: "pimatic-mysensors" (0.8.25)
          19:23:02info [pimatic]: Loading plugin: "pimatic-mobile-frontend" (0.8.82)
          19:22:59

          1 Reply Last reply
          0
          • OitzuO Offline
            OitzuO Offline
            Oitzu
            wrote on last edited by
            #82

            @fahrettine said:

             {
               "plugin": "mysensors",
               "driver": "serialport",
               "protocols": "1.5.1",
               "startingNodeId": 1,
               "driverOptions": {
                 "//": "'/dev/ttyUSB0' if using serial Gateway",
                 "serialDevice": "/dev/ttyMySensorsGateway",
                 "baudrate": 115200
               }
             }
            

            You may want to double check that config.
            It should be more like:

             {
               "plugin": "mysensors",
               "driver": "serialport",
               "protocols": "1.5.1",
               "startingNodeId": 1,
               "driverOptions": {
                 "serialDevice": "/dev/ttyUSB0",
                 "baudrate": 115200
               }
             }
            

            if, ttyUSB0 is your connected arduino nano.

            1 Reply Last reply
            0
            • fahrettineF Offline
              fahrettineF Offline
              fahrettine
              wrote on last edited by
              #83

              I plugged the controller and light sensor on my pc.
              The controller receives and the sensor transmits signals.
              So, the hardware is OK.
              I changed the USB setting as "serialDevice": "/dev/ttyUSB0"
              But still no signal.
              Because I am new on RPi I cant set the USB corectly.
              My USB settings (lsusb -t) are like below:
              What is my USB port? USB0 or USB1 or other else?

              pi@raspberrypi:~ $ lsusb -t
              /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
              |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
              |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
              |__ Port 2: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
              |__ Port 2: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
              |__ Port 3: Dev 5, If 0, Class=Vendor Specific Class, Driver=rtl8192cu, 480M
              |__ Port 5: Dev 7, If 0, Class=Vendor Specific Class, Driver=ch341, 12M

              1 Reply Last reply
              0
              • OitzuO Offline
                OitzuO Offline
                Oitzu
                wrote on last edited by
                #84

                @fahrettine said:

                What is my USB port? USB0 or USB1 or other else?

                dmesg | grep tty
                

                Will give you an output like:
                ch341-uart converter now attached to ttyUSBXX

                1 Reply Last reply
                0
                • fahrettineF Offline
                  fahrettineF Offline
                  fahrettine
                  wrote on last edited by
                  #85

                  Oitzu thank you very much.
                  I solved the problem.
                  It was the nodeID. I set the nodeID to on the sketch to 15 and the problem solved.
                  Thanks for your help...

                  1 Reply Last reply
                  0
                  • fahrettineF Offline
                    fahrettineF Offline
                    fahrettine
                    wrote on last edited by
                    #86

                    Hi everyone,
                    I installed Pimatic. It works fine...
                    I installed light sensor code from MySensor: http://www.mysensors.org/build/light
                    Light sensor works fine...
                    After that I intalled the Relay code: http://www.mysensors.org/build/relay
                    The relay doesnt work!!! Any idea for the problem???
                    When I turn the buton On/Off I can see the sending messages on debug.
                    Thanks!!!
                    Below are my Pimatic Config codes and debug messages:

                    {
                      "id": "Switch",
                      "name": "Switch",
                      "class": "MySensorsSwitch",
                      "nodeid": 10,
                      "sensorid": 1
                    }
                    

                    debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
                    21:21:09debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
                    21:21:01debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
                    21:20:56debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
                    21:20:26info [pimatic]: Listening for HTTP-request on port 80...
                    21:20:26info [pimatic-mobile-frontend]: rendering html finished

                    D 1 Reply Last reply
                    0
                    • fahrettineF fahrettine

                      Hi everyone,
                      I installed Pimatic. It works fine...
                      I installed light sensor code from MySensor: http://www.mysensors.org/build/light
                      Light sensor works fine...
                      After that I intalled the Relay code: http://www.mysensors.org/build/relay
                      The relay doesnt work!!! Any idea for the problem???
                      When I turn the buton On/Off I can see the sending messages on debug.
                      Thanks!!!
                      Below are my Pimatic Config codes and debug messages:

                      {
                        "id": "Switch",
                        "name": "Switch",
                        "class": "MySensorsSwitch",
                        "nodeid": 10,
                        "sensorid": 1
                      }
                      

                      debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
                      21:21:09debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
                      21:21:01debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
                      21:20:56debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
                      21:20:26info [pimatic]: Listening for HTTP-request on port 80...
                      21:20:26info [pimatic-mobile-frontend]: rendering html finished

                      D Offline
                      D Offline
                      Dheeraj
                      Plugin Developer
                      wrote on last edited by
                      #87

                      @fahrettine said:

                      check whether you received any message ( serialport output ) on relay sensor node.

                      1 Reply Last reply
                      0
                      • rollercontainerR Offline
                        rollercontainerR Offline
                        rollercontainer
                        wrote on last edited by
                        #88

                        I've seen the "protocol" line. Is it suitable for 2.0.0beta sketches ?

                        SweebeeS 1 Reply Last reply
                        0
                        • rollercontainerR rollercontainer

                          I've seen the "protocol" line. Is it suitable for 2.0.0beta sketches ?

                          SweebeeS Offline
                          SweebeeS Offline
                          Sweebee
                          wrote on last edited by
                          #89

                          @rollercontainer the plug-in works fine with 2.0. You dont have to change the protocol value in the plug-in.

                          1 Reply Last reply
                          1
                          • RedferneR Offline
                            RedferneR Offline
                            Redferne
                            wrote on last edited by
                            #90

                            Is there any development of this plugin?

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              ricardot
                              wrote on last edited by
                              #91

                              @Dheeraj,

                              Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you!

                              D 1 Reply Last reply
                              0
                              • R ricardot

                                @Dheeraj,

                                Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you!

                                D Offline
                                D Offline
                                DavidZH
                                wrote on last edited by
                                #92

                                @ricardot said in pimatic-mysensors controller plugin:

                                @Dheeraj,

                                Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you!

                                I second this. And also see if we can lose the dependency on serialport 2.0.6 so that we can use Node.js > 4.9.1

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


                                16

                                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