diyruz / flower

DIY Zigbee flower sensor
https://modkam.ru/?p=1700
GNU General Public License v3.0
378 stars 80 forks source link

A few questions please #45

Closed robertalexa closed 9 months ago

robertalexa commented 2 years ago

Hi @nurikk and thanks for your work.

Got a few questions and I am unable to find a clear answer anywhere, not even looking at the firmware code.

  1. What is the battery percentage scale used? 0 to 100 or 0 to 200 as per ZCL standard. I am asking this because in my setup with 2xAAA the device is reporting 2.7V, 36 battery percentage which turn into 18% in z2m. If the scale is 0 to 100 i can put in a PR and get this fixed in z2m. Even so, my batteries are fully charged, so even 36% sounds veeery low. And with that I would expect to have a better conversion, or 2 versions of the firmware for the 2 types of batteries. Looking at the code I would have expected to see the battery low threshold set to sth, but i can't find it.

  2. What is the range of illuminance? Like min and max values, and what is the conversion to lux. Converting the current values to lux in z2m give a result that is waaay too low. So if I know what the raw values could be, i can try to map it to correct lux readings in a PR in z2m. Here is a screenshot of my device for reference

image

  1. Can conductivity be measured with this device, similar to the MiFlora device? If so, could anyone share some more info on this?

Many thanks

robertalexa commented 2 years ago

Can anyone point me to somewhere else where I can ask these questions?