liter/s

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
tjansteman
Posts: 9
Joined: 26 Jan 2021 00:20

liter/s

Post by tjansteman »

I'm trying to make a water flow sensor but i can't find a ZUNO_SETUP_CHANNELS that registers liters/s, is there one that i've missed?
tjansteman
Posts: 9
Joined: 26 Jan 2021 00:20

Re: liter/s

Post by tjansteman »

or liter/m
User avatar
PoltoS
Posts: 6340
Joined: 26 Jan 2011 19:36

Re: liter/s

Post by PoltoS »

not in predefined list, but you can use the generic form and take constants from Z-Wave spec
tjansteman
Posts: 9
Joined: 26 Jan 2021 00:20

Re: liter/s

Post by tjansteman »

Ok,
so i chose ZUNO_SENSOR_MULTILEVEL_TYPE_GENERAL_PURPOSE_VALUE but what should i use for scale, the only one i can find is percentage. 
User avatar
PoltoS
Posts: 6340
Joined: 26 Jan 2011 19:36

Re: liter/s

Post by PoltoS »

Look in SDS13812, Multilevel Sensor Command Class, list of assigned Multilevel Sensor types and scales:
Sensor Type (8 bits): Water flow 0x38
Scale (2 bits): Liter per hour (l/h) 0x00
tjansteman
Posts: 9
Joined: 26 Jan 2021 00:20

Re: liter/s

Post by tjansteman »

Sorry for my ignorance, but is this something I can define in z-uno? been skimming the net and i can't seem to find an answer to this. 
User avatar
PoltoS
Posts: 6340
Joined: 26 Jan 2011 19:36

Re: liter/s

Post by PoltoS »

Here is an example:
ZUNO_SENSOR_MULTILEVEL(0x38 /* Water flow */, 0x00 /* l/s */, 2 /* two bytes size */, 1 /* one decimal */, getterLevel)
Uou can chenge the decimals (0-4) and size (1, 2, 4)
Post Reply