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

Make sense ? -
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.inoAnd 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 ?
-
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.inoAnd 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 ?
@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).

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