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

                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


                9

                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