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. Vera
  4. UI5 Mysensors library 2.0 gateway issues

UI5 Mysensors library 2.0 gateway issues

Scheduled Pinned Locked Moved Vera
73 Posts 8 Posters 15.7k Views 8 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.
  • ramoncarranzaR Offline
    ramoncarranzaR Offline
    ramoncarranza
    wrote on last edited by
    #30

    got it thanks

    1 Reply Last reply
    0
    • hekH hek

      "This example" refers to the example found on the mysensors page.
      "uses the external DHT library" means you have to install the library in your ide by downloading it and install in your IDEs library path.

      If you want to fetch all the examples and support libraries in one schwong, use this link:
      https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip

      ramoncarranzaR Offline
      ramoncarranzaR Offline
      ramoncarranza
      wrote on last edited by
      #31

      @hek hi, this is what the Motion Sensor Log displays:

      0_1479059941596_upload-ad51ad8d-215b-4334-9e15-f7121e53a15f

      1 Reply Last reply
      0
      • hekH hek

        "This example" refers to the example found on the mysensors page.
        "uses the external DHT library" means you have to install the library in your ide by downloading it and install in your IDEs library path.

        If you want to fetch all the examples and support libraries in one schwong, use this link:
        https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip

        ramoncarranzaR Offline
        ramoncarranzaR Offline
        ramoncarranza
        wrote on last edited by
        #32

        @hek I got my sensors working now. The radio unit on the GW was defective, so I swapped it out and things are working fine, just need to change the readings on my DHT from C to F, how would I do that?

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #33

          The unit format is normally updated from the controller. When the sensor starts it asks for the configuration.

          But you can always hard code none-metric by setting it to false here:
          https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L69

          .. and removing this line:

          https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L85

          ramoncarranzaR 2 Replies Last reply
          0
          • hekH hek

            The unit format is normally updated from the controller. When the sensor starts it asks for the configuration.

            But you can always hard code none-metric by setting it to false here:
            https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L69

            .. and removing this line:

            https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L85

            ramoncarranzaR Offline
            ramoncarranzaR Offline
            ramoncarranza
            wrote on last edited by
            #34

            @hek got it
            Thanks

            1 Reply Last reply
            0
            • hekH hek

              The unit format is normally updated from the controller. When the sensor starts it asks for the configuration.

              But you can always hard code none-metric by setting it to false here:
              https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L69

              .. and removing this line:

              https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino#L85

              ramoncarranzaR Offline
              ramoncarranzaR Offline
              ramoncarranza
              wrote on last edited by
              #35

              @hek hi, how can I activate repeater mode on a particular sensor?, I've had to build 2 repeating nodes so far to be able to reach a couple of my sensors. I am adding more sensors as we speak and and they are getting farther and farther, I know I will need a ton of repeaters, but I hate to waste a radio and an Arduino board just for repeaters.
              Thanks

              1 Reply Last reply
              0
              • hekH Online
                hekH Online
                hek
                Admin
                wrote on last edited by
                #36

                https://www.mysensors.org/download/sensor_api_20#create-repeating-nodes

                1 Reply Last reply
                0
                • ramoncarranzaR Offline
                  ramoncarranzaR Offline
                  ramoncarranza
                  wrote on last edited by
                  #37

                  thanks so much, I am becoming a pro at this, one day YOU will come to me for questions lol.

                  1 Reply Last reply
                  0
                  • hekH Online
                    hekH Online
                    hek
                    Admin
                    wrote on last edited by
                    #38

                    Hope so, I might soon get senile ;)

                    ramoncarranzaR 1 Reply Last reply
                    0
                    • hekH hek

                      Hope so, I might soon get senile ;)

                      ramoncarranzaR Offline
                      ramoncarranzaR Offline
                      ramoncarranza
                      wrote on last edited by
                      #39

                      @hek said:

                      senile
                      are the the sensors/nodes awake at all times by default?

                      1 Reply Last reply
                      0
                      • dbemowskD Offline
                        dbemowskD Offline
                        dbemowsk
                        wrote on last edited by
                        #40

                        I had started a different thread that relates to this one and wasn't getting much for response, In my digging on the issue, I found this thread.

                        I have owned my new Vera Plus for over a week now and I cannot get my sensors communicating with Vera. I am running UI7 I believe, and I have my gateway built with a pro mini and an Easy Newbie board from OpenHardware.IO. I appear to be getting communication from nodes over the gateway according to what I am seeing in the log, but I am not able to include my sensors. CLearly, when I press start and stop, inclusion mode is starting and stopping as I see it in the logs. My issue though goes back to a post in this thread from 5 months ago where he addresses an issue with incomming commands being discarded. Here is a snippet from my log that shows the process:
                        0_1482849578478_image.png
                        I posted as an image so you can better see the highlighting. For my TemperatureAndHumidity node, I have manually set the node ID to 84 as can be seen in the logs. The 3 lines in yellow look to me to be the sensor attempting to present itself, but the presentation messages are being discarded. I have seen this both with my humidity sensor node and my garage door sensor node. In the post I referred to from 5 months ago from BartE, he linked to the development version of the plugin, so I even tried that. The log snippet shown above is from the development branch plugin. I was originally using the UI7 branch linked in the Vera how-to setup guide on the website. This had a bit of a different look, but the logs looked the same when I would attempt inclusion.

                        It is getting a bit discouraging since I have owned the controller for over a week now and I can't get the MySensors part working, which is mainly why I got it. If it means anything, I had my gateway and sensors working in Domoticz.

                        You guys have been GREAT so far, so any help is appreciated.

                        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                        1 Reply Last reply
                        0
                        • hekH Online
                          hekH Online
                          hek
                          Admin
                          wrote on last edited by
                          #41

                          @dbemowsk

                          This message appears when a none included node receives data.
                          https://github.com/mysensors/Vera/blob/development/L_Arduino.lua#L466

                          I can't see any presentation message from your node (84).. It should say "c=0" something.

                          1 Reply Last reply
                          0
                          • dbemowskD Offline
                            dbemowskD Offline
                            dbemowsk
                            wrote on last edited by dbemowsk
                            #42

                            @hek, thanks for the quick reply.
                            You say "This message appears when a none included node receives data." but the only time I see those yellow lines is when I present the node.

                            I see under the last discarded command:

                            50	12/27/16 9:12:38.441	luup_log:10: Arduino: Log: TSP:MSG:READ 84-84-0 s=0,c=0,t=7,pt=0,l=0,sg=0: <0x73e23520>
                            50	12/27/16 9:12:38.443	luup_log:10: Arduino: Presentation: 84;0;0;0;7; <0x73e23520>
                            50	12/27/16 9:12:38.446	luup_log:10: Arduino: Log: TSP:MSG:READ 84-84-0 s=1,c=0,t=6,pt=0,l=0,sg=0: <0x73e23520>
                            50	12/27/16 9:12:38.448	luup_log:10: Arduino: Presentation: 84;1;0;0;6; <0x73e23520>
                            

                            The two TSP:MSG:READ lines contain c=0. Is this what you were referring to?

                            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                            1 Reply Last reply
                            0
                            • hekH Online
                              hekH Online
                              hek
                              Admin
                              wrote on last edited by hek
                              #43

                              Yes, very strange. Presentation comes in. How could I miss that.

                              I still run UI5 on my Vera. Wondering if they changed any behaviour in recent firmware updates?

                              1 Reply Last reply
                              0
                              • dbemowskD Offline
                                dbemowskD Offline
                                dbemowsk
                                wrote on last edited by
                                #44

                                I find it hard to believe that no one here has used UI7 and not seen this. It is a bit frustrating.

                                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                1 Reply Last reply
                                0
                                • hekH Online
                                  hekH Online
                                  hek
                                  Admin
                                  wrote on last edited by
                                  #45

                                  What happens if you let vera hand out id?

                                  Clear eeprom and re-upload sketch. And try to include again.

                                  1 Reply Last reply
                                  0
                                  • dbemowskD Offline
                                    dbemowskD Offline
                                    dbemowsk
                                    wrote on last edited by
                                    #46

                                    That was one of my questions in the other thread. I was thinking that Vera wasn't handing out IDs, which is why I manually assigned it. I will try clearing eeprom and try again. I'll post the log results.

                                    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                    1 Reply Last reply
                                    0
                                    • hekH Online
                                      hekH Online
                                      hek
                                      Admin
                                      wrote on last edited by
                                      #47

                                      Yes, the Vera plugin hands out ids.

                                      I can't really explain the weird behaviour you're seeing. Communication seems to work...

                                      1 Reply Last reply
                                      0
                                      • korttomaK Offline
                                        korttomaK Offline
                                        korttoma
                                        Hero Member
                                        wrote on last edited by
                                        #48

                                        Thanks @hek for chipping in an looking at the problem @dbemowsk is experiencing. This is really beyond my knowledge an I cannot understan why it is not working. I am running the latest UI7 firmware on my Veralite test device, am I cannot reproduce this issue. Including MySensor devices is no problem even if I use static node adress.

                                        • Tomas
                                        1 Reply Last reply
                                        0
                                        • dbemowskD Offline
                                          dbemowskD Offline
                                          dbemowsk
                                          wrote on last edited by
                                          #49

                                          So I cleared the eeprom and re-uploaded the humidity sensor sketch. Had to rebuild it from the example because the arduino IDE crashed and erased it. That has happened to me a couple times now since starting with the IDE. This is with debug turned on and viewing the serial monitor. To me it looks like it fails to get an ID from Vera. This is what I was seeing before which was why I manually assigned the ID.

                                          Starting sensor (RNNNA-, 2.0.0)
                                          TSM:INIT
                                          TSM:RADIO:OK
                                          TSM:FPAR
                                          TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          TSM:FPAR
                                          TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                          TSP:MSG:READ 0-0-255 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                          TSP:MSG:FPAR RES (ID=0, dist=0)
                                          TSP:MSG:PAR OK (ID=0, dist=1)
                                          TSM:FPAR:OK
                                          TSM:ID
                                          TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
                                          TSM:ID 
                                          TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0 l=0,sg=0,ft=0,st=ok:
                                          TSM:ID
                                          TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
                                          TSM:ID
                                          TSP:MSG:SEND 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
                                          !TSM:CHKID:FAIL (ID=255)
                                          !TSM:FAILURE
                                          TSM:PDT
                                          

                                          This is the Vera log from start to stop inclusion with the node trying to get an ID. Here I see no c=0 or presentation entries.

                                          ,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:41.287	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          08	12/27/16 12:24:42.769	JobHandler_LuaUPnP::HandleActionRequest device: 10 service: urn:upnp-arduino-cc:serviceId:arduino1 action: StartInclusion <0x73c23520>
                                          08	12/27/16 12:24:42.770	JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=10 <0x73c23520>
                                          08	12/27/16 12:24:42.770	JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-arduino-cc:serviceId:arduino1 <0x73c23520>
                                          08	12/27/16 12:24:42.770	JobHandler_LuaUPnP::HandleActionRequest argument action=StartInclusion <0x73c23520>
                                          50	12/27/16 12:24:42.772	luup_log:10: Arduino: Sending: 0;0;3;0;5;1 <0x779ea320>
                                          04	12/27/16 12:24:42.774	 <0x779ea320>
                                          50	12/27/16 12:24:43.305	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:43.307	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          50	12/27/16 12:24:45.325	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:45.327	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          50	12/27/16 12:24:51.308	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:51.310	luup_log:10: Arduino: Log: TSP:MSG:BC <0x73e23520>
                                          50	12/27/16 12:24:51.314	luup_log:10: Arduino: Log: TSP:MSG:FPAR REQ (sender=255) <0x73e23520>
                                          50	12/27/16 12:24:51.316	luup_log:10: Arduino: Log: TSP:CHKUPL:OK <0x73e23520>
                                          50	12/27/16 12:24:51.319	luup_log:10: Arduino: Log: TSP:MSG:GWL OK <0x73e23520>
                                          50	12/27/16 12:24:52.259	luup_log:10: Arduino: Log: TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0 <0x73e23520>
                                          50	12/27/16 12:24:53.331	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:53.332	luup_log:10: Arduino: Log: TSP:MSG:BC <0x73e23520>
                                          50	12/27/16 12:24:53.334	luup_log:10: Arduino: Log: TSP:MSG:FPAR REQ (sender=255) <0x73e23520>
                                          50	12/27/16 12:24:53.339	luup_log:10: Arduino: Log: TSP:CHKUPL:OK (FLDCTRL) <0x73e23520>
                                          50	12/27/16 12:24:53.340	luup_log:10: Arduino: Log: TSP:MSG:GWL OK <0x73e23520>
                                          50	12/27/16 12:24:54.252	luup_log:10: Arduino: Log: TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=bc:0 <0x73e23520>
                                          50	12/27/16 12:24:57.369	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:57.370	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          50	12/27/16 12:24:59.388	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:24:59.390	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          50	12/27/16 12:25:01.408	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:25:01.410	luup_log:10: Arduino: Sending: 255;255;3;0;4;255 <0x73e23520>
                                          50	12/27/16 12:25:13.497	luup_log:10: Arduino: Log: TSP:MSG:READ 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0: <0x73e23520>
                                          50	12/27/16 12:25:13.499	luup_log:10: Arduino: Log: TSP:MSG:BC <0x73e23520>
                                          50	12/27/16 12:25:13.503	luup_log:10: Arduino: Log: TSP:MSG:FPAR REQ (sender=255) <0x73e23520>
                                          50	12/27/16 12:25:13.505	luup_log:10: Arduino: Log: TSP:CHKUPL:OK <0x73e23520>
                                          50	12/27/16 12:25:13.507	luup_log:10: Arduino: Log: TSP:MSG:GWL OK <0x73e23520>
                                          08	12/27/16 12:25:13.563	JobHandler_LuaUPnP::HandleActionRequest device: 10 service: urn:upnp-arduino-cc:serviceId:arduino1 action: StopInclusion <0x74423520>
                                          08	12/27/16 12:25:13.564	JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=10 <0x74423520>
                                          08	12/27/16 12:25:13.564	JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:upnp-arduino-cc:serviceId:arduino1 <0x74423520>
                                          08	12/27/16 12:25:13.564	JobHandler_LuaUPnP::HandleActionRequest argument action=StopInclusion <0x74423520>
                                          50	12/27/16 12:25:13.565	luup_log:10: Arduino: Sending: 0;0;3;0;5;0 <0x779ea320>
                                          04	12/27/16 12:25:13.567	 <0x779ea320>
                                          

                                          I am not sure what to do next.

                                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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


                                          12

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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