liter/s
-
- Posts: 13
- Joined: 26 Jan 2021 00:20
liter/s
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
not in predefined list, but you can use the generic form and take constants from Z-Wave spec
-
- Posts: 13
- Joined: 26 Jan 2021 00:20
Re: liter/s
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.
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
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
Sensor Type (8 bits): Water flow 0x38
Scale (2 bits): Liter per hour (l/h) 0x00
-
- Posts: 13
- Joined: 26 Jan 2021 00:20
Re: liter/s
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
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)
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)