Skip to content
  • 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. MySensor Things - show up 'as active' when they are unplugged
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

MySensor Things - show up 'as active' when they are unplugged

Scheduled Pinned Locked Moved Mozilla WebThings Gateway
12 Posts 3 Posters 560 Views 3 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.
  • R rmalbers

    I'm not sure if there is setting or option I need to set in my temp sensors or what's going on by I still have 'readings' in my 'Things' when the temp sensor is unplugged and not sending readings. I thought the 'Thing' would be greyed out or the reading gone when no data is received.

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #2

    @rmalbers I am not familiar with Mozilla WebThings, but for how long do you expect the device to be displayed as "active" after sending a message? 1 second? 10 minutes?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rmalbers
      wrote on last edited by
      #3

      Not sure if there is config setting for that somewhere or not, for temp sensor I would say somewhere between an hour and 6 hours, I don't really care I just need to know that what I am seeing is fairly close or show no value. Like if the furnace quits and the temp drops, I need to know.

      mfalkviddM 1 Reply Last reply
      0
      • R rmalbers

        Not sure if there is config setting for that somewhere or not, for temp sensor I would say somewhere between an hour and 6 hours, I don't really care I just need to know that what I am seeing is fairly close or show no value. Like if the furnace quits and the temp drops, I need to know.

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #4

        @rmalbers Domoticz has a global setting called "sensor timeout". I have it set to 660 minutes. Domoticz doesn't seem to have support for per sensor timeouts. I checked https://iot.mozilla.org/docs/gateway-user-guide.html but can't find a similar setting unfortunately.

        R 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @rmalbers Domoticz has a global setting called "sensor timeout". I have it set to 660 minutes. Domoticz doesn't seem to have support for per sensor timeouts. I checked https://iot.mozilla.org/docs/gateway-user-guide.html but can't find a similar setting unfortunately.

          R Offline
          R Offline
          rmalbers
          wrote on last edited by
          #5

          @mfalkvidd Thanks for researching this, that does explain why I didn't have the same issue with Domoticz. I like the 'look' of this gateway but I think I'll have to switch to Domoticz when I leave town, it just seems more feature rich for real life monitoring.

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

            There is a time-out related option in the MySensors settings, but it's focus is on setting the device to 'offline' when the Gateway boots up, and only setting it to 'online' when some data actually arrives.

            I don't know how Mozilla deals with timeouts.

            If it doesn't, then the add-on could manage this, since it can set things to 'available' or 'unavailable'.

            Ideally you'd want a different time-out setting for each device. It would be great if MySensors has a built-in "this is my prefered timeout" S_TYPE (perhaps it does?).

            R 1 Reply Last reply
            0
            • mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #7

              My fear is that Mozilla (along with many other actors) assume that devices never sleep. They assume there is a constant mqtt connection (or similar), which makes it easy to determine if the device is online.

              1 Reply Last reply
              1
              • R Offline
                R Offline
                rmalbers
                wrote on last edited by
                #8

                A timeout setting somewhere is needed for sure if you have battery powered sensors right?

                1 Reply Last reply
                0
                • alowhumA alowhum

                  There is a time-out related option in the MySensors settings, but it's focus is on setting the device to 'offline' when the Gateway boots up, and only setting it to 'online' when some data actually arrives.

                  I don't know how Mozilla deals with timeouts.

                  If it doesn't, then the add-on could manage this, since it can set things to 'available' or 'unavailable'.

                  Ideally you'd want a different time-out setting for each device. It would be great if MySensors has a built-in "this is my prefered timeout" S_TYPE (perhaps it does?).

                  R Offline
                  R Offline
                  rmalbers
                  wrote on last edited by
                  #9

                  @alowhum said in MySensor Things - show up 'as active' when they are unplugged:

                  There is a time-out related option in the MySensors settings, but it's focus is on setting the device to 'offline' when the Gateway boots up, and only setting it to 'online' when some data actually arrives.

                  I don't know how Mozilla deals with timeouts.

                  If it doesn't, then the add-on could manage this, since it can set things to 'available' or 'unavailable'.

                  Ideally you'd want a different time-out setting for each device. It would be great if MySensors has a built-in "this is my prefered timeout" S_TYPE (perhaps it does?).

                  You know, I think I've seen that 'unavailable' happen a few times when I was playing with a battery powered sensor. The 'thing' was gray instead of bright white on the "Thing" page.

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

                    I asked, and the add-on should handle the timeouts.

                    Ideally I'd go the route where each device communicates the intended timeout. I've created a proposal on the MySensors Github to implement something like this.

                    I think for now I will implement a universal timeout period, and then find a way for individual nodes to override that default if they communicate an individual period.

                    1 Reply Last reply
                    2
                    • R Offline
                      R Offline
                      rmalbers
                      wrote on last edited by rmalbers
                      #11

                      Wow that would be great, I think it's something that most people using the gateway would want, at least for some sensor types!

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

                        I've submitted a new version of the add-on that supports this.

                        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.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
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular