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. how to get data from controller?

how to get data from controller?

Scheduled Pinned Locked Moved Development
7 Posts 3 Posters 2.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.
  • vgaV Offline
    vgaV Offline
    vga
    wrote on last edited by
    #1

    Hi,
    is it possible that my sensor can call a value from the controller?
    Scenario:
    Flow Sensor sends the total liter to the controller, after rebooting the sensor total liters will be 0 again. So the idea is to get the last value from the controller at startup.
    I haven´t find anything like this. Is there a function?

    A 1 Reply Last reply
    0
    • vgaV vga

      Hi,
      is it possible that my sensor can call a value from the controller?
      Scenario:
      Flow Sensor sends the total liter to the controller, after rebooting the sensor total liters will be 0 again. So the idea is to get the last value from the controller at startup.
      I haven´t find anything like this. Is there a function?

      A Offline
      A Offline
      AWI
      Hero Member
      wrote on last edited by
      #2

      @vga You can with the gw.request function. Many of the controllers seem to have in not implemented (eg. Domoticz). For your scenario it would be a good solution to store the values in EEPROM (gw.saveState() (be aware that it only takes byte values

      alexsh1A 1 Reply Last reply
      0
      • A AWI

        @vga You can with the gw.request function. Many of the controllers seem to have in not implemented (eg. Domoticz). For your scenario it would be a good solution to store the values in EEPROM (gw.saveState() (be aware that it only takes byte values

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by alexsh1
        #3

        @AWI Are you sure about Domoticz? I am sure that a pulse meter node is requesting value from Domoticz every time it powers up and it is working.

        // Fetch last known pulse count value from gw
          gw.request(CHILD_ID, V_VAR1);
          
          attachInterrupt(INTERRUPT, onPulse, RISING);
          lastSend=lastPulse=millis();
        
        
        A 1 Reply Last reply
        0
        • alexsh1A alexsh1

          @AWI Are you sure about Domoticz? I am sure that a pulse meter node is requesting value from Domoticz every time it powers up and it is working.

          // Fetch last known pulse count value from gw
            gw.request(CHILD_ID, V_VAR1);
            
            attachInterrupt(INTERRUPT, onPulse, RISING);
            lastSend=lastPulse=millis();
          
          
          A Offline
          A Offline
          AWI
          Hero Member
          wrote on last edited by
          #4

          @alexsh1 you van get data from some specific variables, text and switches, but not for all sensors.

          1 Reply Last reply
          0
          • alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #5

            @vga What's your controller please?

            @AWI It covers most of the things, no? Electricity pulse meter and water pulse meter. I have not come up with another example when gw.request may be applied.

            A 1 Reply Last reply
            0
            • alexsh1A alexsh1

              @vga What's your controller please?

              @AWI It covers most of the things, no? Electricity pulse meter and water pulse meter. I have not come up with another example when gw.request may be applied.

              A Offline
              A Offline
              AWI
              Hero Member
              wrote on last edited by
              #6

              @alexsh1 you can use special variables to store and retrieve values. These are not available in the Domoticz interface.
              As far as I know only switches, text and a very domoticz specific custom value can be retrieved. You can find some discussion on the Domoticz forum.

              alexsh1A 1 Reply Last reply
              0
              • A AWI

                @alexsh1 you can use special variables to store and retrieve values. These are not available in the Domoticz interface.
                As far as I know only switches, text and a very domoticz specific custom value can be retrieved. You can find some discussion on the Domoticz forum.

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #7

                @AWI yes I spoke to Rob about it some time ago. V_VAR is good enough for my needs. I just do not see why one would want more

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                8

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                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