11# RadonReader 2022 RD200 v2 (=>2022)
22
3+ This project provides a tool which allows users collect current radon data from FTLab Radon Eye RD200 v1 and V2 (2022+) (Bluetooth only versions).
34
45EtoTen v0.4 - 07/05/2022
56- Forked Project
@@ -10,7 +11,6 @@ EtoTen v0.4 - 07/05/2022
1011
1112Note: if specifying an (-a) MAC address, you now also have to specify a device type (-t) (either 0 for original RD200 or 1 for RD200 v2)
1213
13-
1414# Pre-req install steps:
1515
1616<pre ><code >sudo apt install libglib2.0-dev
@@ -20,13 +20,29 @@ sudo setcap cap_net_raw+e /home/pi/.local/lib/python3.7/site-packages/bluepy/blu
2020sudo setcap cap_net_admin+eip /home/pi/.local/lib/python3.7/site-packages/bluepy/bluepy-helper
2121</pre ></code >
2222
23+ # Home assistant integration via MQTT:
24+
25+ - Install mosquitto MQTT add-on in HA, configure it with a local user and password
26+ - Install mosquitto MQTT integration in HA
27+ - On the host machine run: <pre ><code >python3 radon_reader.py -v -ms localhost -mu radonuser -mw radon123 -ma -m</pre ></code > and listen to:
28+ "environment/RADONEYE/#" in the MQTT integration in HA to verify messages are being sent
29+
30+ - Now make the app send automatic updates to HA every 3 minutes
31+ <pre ><code >crontab -e</pre ></code >
32+ <pre ><code >*/3 * * * * /usr/bin/python3 /home/pi/radonreader/radon_reader.py -v -a 94:3c:c6:dd:42:ce -t 1 -ms localhost -mu radonuser -mw radon123 -mw radon123 -ma -m #update radon reading via MQTT every 3 minutes</pre ></code >
33+
34+ - Add this to configuration.yaml:
35+ <pre ><code >
36+ mqtt:
37+ sensor:
38+ - state_topic: "environment/RADONEYE/#"
39+ name: 'Radon Level'
40+ unit_of_measurement: 'pCi/L'
41+ value_template: "{{ value_json.radonvalue }}"
42+ </pre ></code >
2343
24-
25- ------------
26-
27- This project provides a tool which allows users collect current radon data from FTLab Radon Eye RD200 (Bluetooth only version).
28-
29-
44+ - Now you cam add a sensor card to your HA view
45+ -
3046# Hardware Requirements
3147- FTLabs RadonEye RD200 v1 or v2
3248- Raspberry Pi w/Bluetooth LE (Low Energy) support (RPi 3B/4/etc...)
@@ -37,10 +53,9 @@ This project provides a tool which allows users collect current radon data from
3753- paho-mqtt Python library
3854
3955# History
40- - 0.4 - Forked
56+ - 0.4 - Forked and modified extensively
4157- 0.3 - Added MQTT support
4258
43-
4459# Usage
4560<pre ><code >usage: radon_reader.py [-h] [-a] ADDRESS [-t] DEVICE_TYPE [-b] [-v] [-s] [-m] [-ms MQTT_SRV]
4661 [-mp MQTT_PORT] [-mu MQTT_USER] [-mw MQTT_PW] [-ma]
0 commit comments