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. Watermeter pulse sensor, mistake in the provided ino file ?

Watermeter pulse sensor, mistake in the provided ino file ?

Scheduled Pinned Locked Moved Development
7 Posts 5 Posters 3.4k Views 1 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.
  • D Offline
    D Offline
    doblanch
    wrote on last edited by
    #1

    Hello Team,

    I'm using the water pulse meter ino file with jeedom.
    I made some change like this :
    gw.present(CHILD_ID_FLOW, S_WATER);
    gw.present(CHILD_ID_VOL, S_WATER);
    gw.present(CHILD_ID_PCMSG, S_WATER);
    gw.request(CHILD_ID_PCMSG, V_VAR1);

    Compare to the orignal one :
    gw.present(CHILD_ID, S_WATER);
    gw.request(CHILD_ID, V_VAR1);

    I f i don't do this, there is only one child presented to the gateway, and all 3 counters are sent in the same variable. The results on jeedom is only one value is recognized, and when it receives 3 values for the same thing, the variable in jeedom takes 3 different values alternatively... by the way, the gw request VAR1 doesn't work as it's taking the wrong variable...
    From now, it works with these changes, but does I miss something ?
    The right result is presented in the image below. As you can see we need 3 different variables in jeedom.
    Screen Shot 2015-04-16 at 10.01.23.png
    Make sense ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andriej
      wrote on last edited by
      #2

      Interesting catch!
      I'd like to know if these values are reported to domoticz properly - too!

      :-)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        doblanch
        wrote on last edited by doblanch
        #3

        @andriej These value are reported into the same Variable... so the GW receive 3 different values sequentially...I guess that behavior should be the same on domoticz.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lunarok
          wrote on last edited by
          #4

          Better to give a link to the sketch and copy the original part of code :
          https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino

          And yes there is only one sensor presentated to the gateway :
          // Register this device as Waterflow sensor
          gw.present(CHILD_ID, S_WATER);

          But there is 3 differents messages created on the same sensor. So there is on this node a waterflower sensor, but also a volume sensor and a counter sensor.
          Why just one sensor ?

          @GizMoCuz I see you have done the latest changes on this sketch and part of it was the declaration of 3 differents messages types with only 1 sensor. Is this volontary ?

          D 1 Reply Last reply
          0
          • L lunarok

            Better to give a link to the sketch and copy the original part of code :
            https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino

            And yes there is only one sensor presentated to the gateway :
            // Register this device as Waterflow sensor
            gw.present(CHILD_ID, S_WATER);

            But there is 3 differents messages created on the same sensor. So there is on this node a waterflower sensor, but also a volume sensor and a counter sensor.
            Why just one sensor ?

            @GizMoCuz I see you have done the latest changes on this sketch and part of it was the declaration of 3 differents messages types with only 1 sensor. Is this volontary ?

            D Offline
            D Offline
            doblanch
            wrote on last edited by doblanch
            #5

            @lunarok said:

            CHILD_ID

            By the way, if I write this "gw.present(CHILD_ID, S_WATER);" , it means that it's only one sensor, and is not able to store 3 differents values.
            Look the screenshot. If I don't declare 3 sensors image, I will have only sensor number 5 for example :-( Hence only flow is reported... in this case, 0 (as there is no flow rate).
            Screen Shot 2015-04-17 at 00.10.06.png
            When node register to gateway, it present itself with one sensor and only one value....
            Or maybe it's a jeedom issue, and jeedom is not able to understand 1 sensors, carrying 3 different values...

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tranbert
              wrote on last edited by
              #6

              Could you share your ino file ? Sounds interesting for jeedom users :-)

              1 Reply Last reply
              0
              • MarcoM Offline
                MarcoM Offline
                Marco
                wrote on last edited by
                #7

                Hello, can you put the entire file .ino modified , I have the same problem as you.

                Thank you

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


                11

                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