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.0k 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?

    AWIA 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?

      AWIA Offline
      AWIA 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
      • AWIA 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();
        
        
        AWIA 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();
          
          
          AWIA Offline
          AWIA 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.

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

              AWIA Offline
              AWIA 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
              • AWIA 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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                20

                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