hpeyerl / airthingswave-mqtt Goto Github PK
View Code? Open in Web Editor NEWPublish readings from Airthings Wave radon detectors to an MQTT broker
License: MIT License
Publish readings from Airthings Wave radon detectors to an MQTT broker
License: MIT License
I have two Airthings wave, one is 1st Gen and newer one is 2nd Gen (it does display battery status in Airthings app).
The reason seems to be that data structure is not compatible between both versions. There is even two versions of read_wave.py in official Airthings github https://github.com/Airthings/wave-reader
It would be great if you consider to make a compatible version of your mqtt tool. It works great with my 1st gen wave
Firstly, thanks for this project. Hoping to publish the readings from my Wave 2 to my Home Assistant over MQTT. Unfortunately I've been unable to get this working with my Wave (gen 2).
find_wave2.py
works and I am able to pick up my Wave's mac/serial, so I know the bluetooth stack is up and running on my RPi3. Any ideas what might be causing this? All dependencies are installed and up-to-date. Output below:
$ python -m airthingswave-mqtt /home/pi/airthingsconfig.yaml
Config file: /home/pi/airthingsconfig.yaml
/home/pi/.local/lib/python2.7/site-packages/airthingswave-mqtt/airthingswave.py:49: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
self.config=yaml.load(f)
basement <redacted>
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/.local/lib/python2.7/site-packages/airthingswave-mqtt/__main__.py", line 32, in <module>
main()
File "/home/pi/.local/lib/python2.7/site-packages/airthingswave-mqtt/__main__.py", line 25, in main
r = atw.get_readings(handle)
File "/home/pi/.local/lib/python2.7/site-packages/airthingswave-mqtt/airthingswave.py", line 96, in get_readings
ch = p.getCharacteristics(uuid=s.uuid)[0]
File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 508, in getCharacteristics
rsp = self._getResp('find')
File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 407, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/usr/local/lib/python2.7/dist-packages/bluepy/btle.py", line 368, in _waitResp
raise BTLEGattError("Bluetooth command failed", resp)
bluepy.btle.BTLEGattError: Bluetooth command failed (code: 10, error: No attribute found within the given range)`
Hello
your guide is great and only one which I managed to integrate and use with HA.
Struggle a little with the Cron job setup.
would this be the way to do it? In this picture the Cron should update every 5 min.
the command after python ... works by it self and it pushed data to HA.
Also I plan to change */5 yo */60 once I figure out how Cron works
getting this error "(CRON) info (No MTA installed, discarding output)"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.