Page 1 of 1

liter/s

Posted: 26 Jan 2021 00:23
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?

Re: liter/s

Posted: 26 Jan 2021 12:11
by tjansteman
or liter/m

Re: liter/s

Posted: 27 Jan 2021 02:04
by PoltoS
not in predefined list, but you can use the generic form and take constants from Z-Wave spec

Re: liter/s

Posted: 27 Jan 2021 12:06
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. 

Re: liter/s

Posted: 28 Jan 2021 00:59
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

Re: liter/s

Posted: 28 Jan 2021 14:46
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. 

Re: liter/s

Posted: 28 Jan 2021 23:43
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)