Aeotec Multisensor 6 Enabling humidity threshold reporting

Hi Guys,
I have an Aeotec Multisensor 6 connected via the Z Stick to a Raspberrypi running Hass.io.
I’m trying to Enable parameter 48 - “enable/disable to send out a report when the measurement is more than the upper limit value” for the Humidity upper limit sensor.
I just don’t understand Bit Masks! I’ve read the manual, but I can’t figure out what to set the parameter to… 1 to 255?

Any guidance would be much appreciated.
Thanks everyone.

If you only want the humidity upper limit set, and everything else disabled, then your configuration value is 32. This is the number you’d set in the Z-Wave control panel.

To calculate that, you set and clear individual bits in an 8-bit number. The manual tells you which bits to set or clear depending in the behavior you want. To enable a report you set a bit, and to disable you clear it. The lower limit bits are bit numbers 0-3, and the upper limits are 4-7. Each bit then corresponds to a single sensor and limit combination. The Humidity Upper Level is bit 5, so you would set that and clear everything else. In binary you would write it like this:

Bit Number  76543210
Bit Value   00100000

In decimal the binary number 00100000 is 32 (2^5).

Another example, if you want to enable humidity upper limit (bit 5) and temperature lower limit (bit 0) you would use:

Bit Number  76543210
Bit Value   00100001

This would be a value of 33 (2^5 + 2^0 = 32 + 31 = 33).

Basically, choose which sensors (temp, humidity, etc.) and limits (lower and upper) you want to enable, and construct the bitmask as in the above examples. Then convert binary to decimal.

Here’s a table of all binary numbers from 0-255, with their decimal conversions.:
https://ascii.cl/conversion.htm

Here’s a converter:
https://www.binaryhexconverter.com/binary-to-decimal-converter

Well I definitely learnt something today! Thank you for your help and providing an easy to understand explanation.