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. Development
  3. Diy Awake signal sensor

Diy Awake signal sensor

Scheduled Pinned Locked Moved Development
9 Posts 3 Posters 1.5k 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.
  • fhenrycoF Offline
    fhenrycoF Offline
    fhenryco
    wrote on last edited by fhenryco
    #1

    I did not find any info about how i could use reception of the heartbit signal in domoticz to build a AWAKE/SLEEPING variable...and smartsleep is also not supported by DZ.
    SO i'm trying the other way which is to have a sensor that would indicate to the controller when the node is awake so that the controller could use such device variable in a script and react to this in order to send various switches commands which were kept in the state of a dummy switch just waiting for the node to wake up.

    To have such a DiY awake/sleep sensor detector i was thinking that i could use one pin of the node reflecting the state of the node (for instance HIGH when the node is awake and LOW when the node is sleeping: i can do that in nodemanager with nodeManager.setAutoPowerPins(true) for the pin i want ) and use this as an interrupt toward another pin of the node defined as the input pin of a sensor switch (as in a motion detector) ... : so waking up of the node would interrupt itself and the controller would be notified

    i managed to make this work (in node manager) but sometimes it is unstable and i also realized by chance that such sensor switch could trigger when the nodes wake up even if it is left open (not connected to any other pin).
    But unsurprisingly i also encountered some apparantly instable behaviours (glitches) from time to time... so i'm wondering what much more simple solution did i miss..
    any comment or suggestion welcome!

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I think you can simply use some variables in the controller and have the node requests for those values from controller whenever it needs them (like the pulse energy meter that upon boot it requests the last pulse count from the controller and start counting from that)

      fhenrycoF 1 Reply Last reply
      0
      • fhenrycoF Offline
        fhenrycoF Offline
        fhenryco
        wrote on last edited by
        #3

        interesting possibility , thanks

        1 Reply Last reply
        0
        • gohanG gohan

          I think you can simply use some variables in the controller and have the node requests for those values from controller whenever it needs them (like the pulse energy meter that upon boot it requests the last pulse count from the controller and start counting from that)

          fhenrycoF Offline
          fhenrycoF Offline
          fhenryco
          wrote on last edited by
          #4

          @gohan the last pulse count seems to be requested from the gateway ... does the gateway automatically reflects all user variables defined in the controller so that other nodes can access them by requesting from the gateway?

          YveauxY 1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #5

            I haven't looked at this yet, maybe @Yveaux can give a little hint.

            1 Reply Last reply
            0
            • fhenrycoF fhenryco

              @gohan the last pulse count seems to be requested from the gateway ... does the gateway automatically reflects all user variables defined in the controller so that other nodes can access them by requesting from the gateway?

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

              @fhenryco said in Diy Awake signal sensor:

              does the gateway automatically reflects all user variables defined in the controller so that other nodes can access them by requesting from the gateway?

              No it doesn't. It's just a gateway that doesn't buffer any data.

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #7

                I think he is more interested to a general way of accessing variables on controller through the gw

                YveauxY 1 Reply Last reply
                0
                • gohanG gohan

                  I think he is more interested to a general way of accessing variables on controller through the gw

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

                  @gohan anyway, just a gateway. No special magic in there...

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  0
                  • gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #9

                    well yes, I know that, I am just saying he needs to be pointed in the right direction on how to retrieve values from controller :)

                    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.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