# Water flow rate pulses into KNX binary inputs?

**URL:** <https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864>\
**Category:** Home Automation\
**Tags:** knx, s0\
**Created:** [September 20, 2018, 10:04am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864 "2018-09-20T10:04:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imaginator](https://community.openhab.org/user_avatar/community.openhab.org/imaginator/32/72391_2.png) [@imaginator](https://community.openhab.org/u/imaginator)\
**Post date:** [September 20, 2018, 10:04am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/1 "2018-09-20T10:04:40Z")

</div>

I need a bit of advice on how to get water flow rates/total-use into openhab.

These [relatively cheap hall-effect sensors](https://www.aliexpress.com/w/wholesale-flow-sensor-water.html?initiative_id=SB_20180920012504&site=glo&g=y&SearchText=flow+sensor+water&CatId=15370402&isrefine=y) that look like they mount inline with the water inlet.

I found a similar [project on github using an auduino](https://github.com/SeeedDocument/wiki_english/blob/7c9afbfe5c2bf87e1bca57f825db799face03b94/docs/G1-8_Water_Flow_Sensor.md). That said, I’d prefer to avoid the Auduino route if I already have a knx binary input.

It looks like they put our a rising and falling pulse. My understanding is that this could be collected by a [KNX binary input](https://www.mdt.de/download/MDT_DS_Binary_Input.pdf) for floating contacts (there are also 24v and 240v options). If I can can count the pulses in something like the MDT BE-04000.01 then I can use the KNX binding to report water use.

The flow sensor (claims to) put out the following signal. Does this count as a “floating contact” in KNX-speak?

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/0/6/067707992488451a3ec9de527475c987f660afdc.jpeg)

Can anyone with experience of KNX binary inputs comment on this working?

---

<div class="post-metadata">

**Author:** ![MDAR](https://community.openhab.org/user_avatar/community.openhab.org/mdar/32/57900_2.png) [@MDAR](https://community.openhab.org/u/MDAR)\
**Post date:** [September 20, 2018, 10:07am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/2 "2018-09-20T10:07:15Z")

</div>

Hi

I use a couple of these in various places.

They give out (very roughly) 420 0v pulses for every 1 litre that passes through them.

I use a pulse input of a Velbus VMB7IN, but I assume there must be KNX pulse input device???

---

<div class="post-metadata">

**Author:** ![imaginator](https://community.openhab.org/user_avatar/community.openhab.org/imaginator/32/72391_2.png) [@imaginator](https://community.openhab.org/u/imaginator)\
**Post date:** [September 20, 2018, 10:21am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/3 "2018-09-20T10:21:51Z")

</div>

420 pulses/liter! Nice to know @MDAR. That said, I’m not sure that putting 420 pulses (per flowmeter) onto the knx bus is a good idea…

Indidentally the binary input modules that look like they would make sense are these two:

 ![Screenshot%20from%202018-09-20%2012-15-24](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/8/d/8d175279cd26d43514ff324e3fceb56ceb2f8492.png)  
 ![Screenshot%20from%202018-09-20%2012-15-34](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/c/a/caa5c0590a30c7f9889f54f004080c85ae18131c.png)

Any ideas on which makes the most sense given the 0v/5v/signal wiring?

---

<div class="post-metadata">

**Author:** ![MDAR](https://community.openhab.org/user_avatar/community.openhab.org/mdar/32/57900_2.png) [@MDAR](https://community.openhab.org/u/MDAR)\
**Post date:** [September 20, 2018, 10:57am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/4 "2018-09-20T10:57:39Z")

</div>

Hi

Unfortunately I can’t help with that bit, I’m strictly a Velbus man.

But what I can tell you is that the Velbus module I’m referring to has a pulse counter onboard, so it only submits to the bus a counter value, rather than an update for every pulse.

I think you’re right, ~420 pulses x \>11 litres, every minute anyone is using water will bring your KNX bus to its knees.

UK water delivery speed is supposed to be around 24 litres per minute, so that’s one heck of a lot of pulses.

However, the 080000.1 diagram looks like a 0v switch input device to me 😉

---

<div class="post-metadata">

**Author:** ![imaginator](https://community.openhab.org/user_avatar/community.openhab.org/imaginator/32/72391_2.png) [@imaginator](https://community.openhab.org/u/imaginator)\
**Post date:** [September 20, 2018, 11:04am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/5 "2018-09-20T11:04:41Z")

</div>

I think you are right about needing something infront: the binary input is rated for 30ms S0 pulses. (which look identical to the output from the hall sensor). Assuming household flow of ±60l/m \* 400 pulses per liter = we get about 400 pulses per second. Which will never fit into the 30ms pulse specification. Looks like the future is something like this: [https://www.arcus-eds.de/impuls\_2.html](https://www.arcus-eds.de/impuls_2.html)

---

<div class="post-metadata">

**Author:** ![MDAR](https://community.openhab.org/user_avatar/community.openhab.org/mdar/32/57900_2.png) [@MDAR](https://community.openhab.org/u/MDAR)\
**Post date:** [September 20, 2018, 11:12am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/6 "2018-09-20T11:12:16Z")

</div>

> [@imaginator](#):
>
> Looks like the future is something like this: [https://www.arcus-eds.de/impuls\_2.html](https://www.arcus-eds.de/impuls_2.html)

Look spot on to me 🙂

Who knows what you could use the second input for 🙂

My home is setup with..

Electricity pulse - simple LDR over the LED on the meter

Cold water flow rate (to whole house)

Cold water flow into the on-demand water heater (house cold - on-demand flow = cold only consumption)

Gas flow from a reed switch style pulse output from a secondary gas meter. (I’m told there are gas meters out there now with proper 0v pulse outputs, just not in the UK)

And…

60 litre per minute flow into your property!!! Blimey, do you live at the bottom of a water fall?

---

<div class="post-metadata">

**Author:** ![imaginator](https://community.openhab.org/user_avatar/community.openhab.org/imaginator/32/72391_2.png) [@imaginator](https://community.openhab.org/u/imaginator)\
**Post date:** [September 20, 2018, 11:14am UTC](https://community.openhab.org/t/water-flow-rate-pulses-into-knx-binary-inputs/51864/7 "2018-09-20T11:14:49Z")

</div>

> [@MDAR](#):
>
> Cold water flow rate (to whole house)
> 
> Cold water flow into the on-demand water heater (house cold - on-demand flow = cold only consumption)

That’s exactly the plan!
