frawau / aioblescan

Python only library to scan and decode advertised BLE info. Uses asyncio. Can decode Ruuvi Tag. Can broadcast EddyStone packets.
MIT License
125 stars 62 forks source link

Add support for ThermoBeacon temperature and humidity sensors #43

Closed 8none1 closed 2 years ago

8none1 commented 3 years ago

This PR adds support for BTLE ThermoBeacon devices sometimes called ORIA.

AliExpress link here: https://www.aliexpress.com/item/1005001792309115.html?spm=a2g0s.9042311.0.0.7fac4c4dTTFobz

I pretty much cloned the ATC way of doing things.

I'm not a great Python developer, so I'll happily make changes given suggestions and advice.

I'm also not thrilled about using the uppercase T command line option, but it seemed to be the best option.

I have updated the README files etc.

Thanks for working on a very handy project.

8none1 commented 2 years ago

Just a quick comment to say this has been running "in production" for a week at my house and is working well.

frawau commented 2 years ago

Thanks for the PR. Sorry, I was pretty busy last week, had not noticed it. Will test things out a bit, then will release. One question, what are the "_ts" values?

8none1 commented 2 years ago

As far as I can tell the max_temp_ts and min_temp_ts are the counter time that the min and max temperatures were seen. I haven't found the min & max information to be terribly useful to be honest. Perhaps that could be commented out?

I record the information continually to InfluxDB - perhaps if I read the information once in a while it would be more useful? Perhaps best left as an exercise for the user? I can add something to the readme if it will help?

Thanks for merging!