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. Mozilla WebThings Gateway
  4. MySensors add-on crashed ?

MySensors add-on crashed ?

Scheduled Pinned Locked Moved Mozilla WebThings Gateway
12 Posts 2 Posters 908 Views 2 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.
  • Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by Nca78
    #1

    Hello @alowhum, I have some more bad news
    I see that in my log :
    PM25 sensor is an ESP32 thing, not using MySensors add-on.
    The "BlackCircleSensor" nodes are temperature sensors with IDs from 31 to 34. After those log messages I don't have MySensors related messages anymore in the log, and of course no data update in the UI. It's been over 45mns without updates so I believe it's dead as maximum interval for sending temp/hum data is 5mn.

    2019-05-31 04:06:02.923 INFO   : getValue for property AQI for: PM25Sensor returning 55
    2019-05-31 04:06:02.952 INFO   : getValue for property 31-1-0 for: BlackCircleSensor returning 32.7
    2019-05-31 04:06:02.953 INFO   : getValue for property 31-2-1 for: BlackCircleSensor returning 72
    2019-05-31 04:06:02.954 INFO   : getValue for property 31-253-1 for: BlackCircleSensor returning 97
    2019-05-31 04:06:02.984 INFO   : getValue for property 32-1-0 for: BlackCircleSensor returning 33.6
    2019-05-31 04:06:02.985 INFO   : getValue for property 32-2-1 for: BlackCircleSensor returning 74
    2019-05-31 04:06:02.996 INFO   : getValue for property 33-1-0 for: BlackCircleSensor returning 30.6
    2019-05-31 04:06:02.997 INFO   : getValue for property 33-2-1 for: BlackCircleSensor returning 74
    2019-05-31 04:06:03.037 INFO   : getValue for property 34-2-1 for: BlackCircleSensor returning 74
    2019-05-31 04:06:03.038 INFO   : getValue for property 34-1-0 for: BlackCircleSensor returning 33.5
    2019-05-31 04:06:16.590 ERROR  : (node:2547) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 propertyChanged listeners added. Use emitter.setMaxListeners() to increase limit
    2019-05-31 04:06:18.884 ERROR  : (node:2547) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 actionStatus listeners added. Use emitter.setMaxListeners() to increase limit
    2019-05-31 04:06:23.357 INFO   : thing-url: getValue for property AQI for: PM25Sensor returning 57
    

    After disabling/enabling the add-on I get the values back so it's obviously a crash of the add-on or of the python library. If there's some log/file/anything I can check on my gateway to help you understand what happened, don't hesitate to ask.

    Second problem is after the values are received on the Thing view all temp sensors have changed to "Thing" instead of the previously selected Temperature option.
    0_1559275426236_355ec330-6ead-4096-8dd0-3dc8a637a44e-image.png
    But I realize I had "persistence" unchecked, so that's probably the reason. I'll keep an eye on this next time I have to restart the add-on.

    [edit] After setting back sensors to Temperature sensors, I checked persistance in the settings, and it set sensors to "THING" display.
    I changed them back to Temperature again. Then disabled, waited to leave it time to stop, and restarted the add-on. And back to "THING" again.

    1 Reply Last reply
    0
    • alowhumA Offline
      alowhumA Offline
      alowhum
      Plugin Developer
      wrote on last edited by
      #2

      I always run with persistence unchecked too, since I want to know which devices are actually online and responding.

      I can try and create a debug function for the next version. Then perhaps we can find the error.

      You may have to remove things you created before version 0.0.5, since in that version there were a lot of changed to how capabilities work - a lot were removed. And those are the things that can be selected to end up in the center of your thing.

      Still, temperature should work just fine, theoretically.

      Nca78N 1 Reply Last reply
      0
      • alowhumA alowhum

        I always run with persistence unchecked too, since I want to know which devices are actually online and responding.

        I can try and create a debug function for the next version. Then perhaps we can find the error.

        You may have to remove things you created before version 0.0.5, since in that version there were a lot of changed to how capabilities work - a lot were removed. And those are the things that can be selected to end up in the center of your thing.

        Still, temperature should work just fine, theoretically.

        Nca78N Offline
        Nca78N Offline
        Nca78
        Hardware Contributor
        wrote on last edited by
        #3

        @alowhum said in MySensors add-on crashed ?:

        You may have to remove things you created before version 0.0.5, since in that version there were a lot of changed to how capabilities work - a lot were removed. And those are the things that can be selected to end up in the center of your thing.

        Still, temperature should work just fine, theoretically.

        At the moment I only set temperature as center of the thing, I only have TH sensors connected to the Things Gateway.
        I also deleted everything and removed/reinstalled the add-on, so I have nothing left from the previous version.

        1 Reply Last reply
        0
        • alowhumA Offline
          alowhumA Offline
          alowhum
          Plugin Developer
          wrote on last edited by alowhum
          #4

          @Nca78 Great, that will narrow things down. I've created a new version (0.0.6) that exposes the debug options. You will be able to enable 'debugging' and see all the same details I do while developing. Then we can find in more detail what it going on. It should arrive on your system automatically when Mozilla accepts it.

          1 Reply Last reply
          1
          • Nca78N Offline
            Nca78N Offline
            Nca78
            Hardware Contributor
            wrote on last edited by
            #5

            I still had a similar problem today, after restarting the gateway the add-on seemed to have failed to restart properly as the temperatures were showing 0°C.
            I disabled and re-enabled the add-on and the temps sensors got updates. But now this evening I see all sensors back to "Thing" display, the only suspicious thing I see in the log is the same "MaxListenersExceededWarning" message I posted above.
            The fact that they didn't immediately switch back to "Thing" display after restarting add-on might be due to the cache not updated, I'm not sure at all.

            But with the "native" thing on ESP32 also regularly failing and the really annoying and anti-ergonomic logs, I think I'll have a little break and come back to the Things Gateway later, when it will hopefully be a bit more polished and when I'll have had time to learn about the technologies it uses as I'm a bit stuck at the moment and can't check/fix anything myself.

            1 Reply Last reply
            0
            • alowhumA Offline
              alowhumA Offline
              alowhum
              Plugin Developer
              wrote on last edited by
              #6

              @Nca78 I understand, sorry to hear it.

              Could you share one log with me in a private chat? Then I could try to use it to figure out what could be the cause on your system.

              1 Reply Last reply
              0
              • alowhumA Offline
                alowhumA Offline
                alowhum
                Plugin Developer
                wrote on last edited by
                #7

                @nca78 I'm noticing the same behaviour of things switching back to displaying 'thing' in the center instead of the earlier selected property.

                Nca78N 1 Reply Last reply
                0
                • alowhumA alowhum

                  @nca78 I'm noticing the same behaviour of things switching back to displaying 'thing' in the center instead of the earlier selected property.

                  Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by
                  #8

                  @alowhum said in MySensors add-on crashed ?:

                  @nca78 I'm noticing the same behaviour of things switching back to displaying 'thing' in the center instead of the earlier selected property.

                  :( Did you manage to identify the source/cause of the problem ? Restart of mysensors gateway or things gateway ? Version update ?

                  It didn't happen to me anymore this week.

                  1 Reply Last reply
                  0
                  • alowhumA Offline
                    alowhumA Offline
                    alowhum
                    Plugin Developer
                    wrote on last edited by
                    #9

                    It happens when you restart the add-on / gateway. I'm trying to figure it out here:
                    https://github.com/mozilla-iot/gateway-addon-python/issues/48

                    1 Reply Last reply
                    1
                    • alowhumA Offline
                      alowhumA Offline
                      alowhum
                      Plugin Developer
                      wrote on last edited by
                      #10

                      @Nca78 The second problem you mentioned should be fixed now.
                      https://forum.mysensors.org/topic/10342/mozilla-webthings-mysensors-add-on-adapter/26

                      Nca78N 1 Reply Last reply
                      0
                      • alowhumA alowhum

                        @Nca78 The second problem you mentioned should be fixed now.
                        https://forum.mysensors.org/topic/10342/mozilla-webthings-mysensors-add-on-adapter/26

                        Nca78N Offline
                        Nca78N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by
                        #11

                        @alowhum said in MySensors add-on crashed ?:

                        @Nca78 The second problem you mentioned should be fixed now.
                        https://forum.mysensors.org/topic/10342/mozilla-webthings-mysensors-add-on-adapter/26

                        I just updated the add-on and it went all smoothly, all sensors are still here showing temperature and dimmed until message is effectively received.
                        I have activated the extra logging in case of a future problem.

                        Thank you for your hard work !

                        1 Reply Last reply
                        0
                        • alowhumA Offline
                          alowhumA Offline
                          alowhum
                          Plugin Developer
                          wrote on last edited by
                          #12

                          @Nca78 My pleasure!

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


                          10

                          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