conurb / low_energy_sensor

ATtiny85 with a BME280 sensor in I2C (mimics an Oregon Scientific sensor)
GNU General Public License v3.0
9 stars 6 forks source link

RH value greather than 99 impossible #3

Closed sperate closed 4 years ago

sperate commented 5 years ago

There is no verification of the result of this function before setting the value in the oregon frame lrintf(bme.humidity/1024.0) Values greater than 99 are impossible to send via oregon protocol : only two BCD quartets for the RH value. It generates errors : After 99 RH, the value sent is A0 and Domoticz doesn't recognise-it. Regards, sperate

conurb commented 4 years ago

Although rtl_433 has no issue with 100% RH, you're right and it seems more reliable for all home automation platforms to limit output to 99 (BCD code).

Thank for your feedback