RadonEye BLE Interface

Hi all,

thanks for the radoneye component and the background info of the community.

Try to get it work but it seems to be that I am missing some bits.

I am runniung HA on a NUC / docker / hassio environment.

Managed to activate bluetooth on the NUC and got the MAC of RadonEye.

What I have done:

copied radon_reader.py to config/python_scripts in my HA config

chmod -X

tried to run

./config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypassword’

in hassio terminal console.

Traceback (most recent call last):
File “./config/python_scripts/radon_reader.py”, line 12, in
import paho.mqtt.client as mqtt
ImportError: No module named paho.mqtt.client

seems to be the environment paho.mqtt.client is not accessible in terminal console within hassio.

tried than within HA as a script which I executed via developer_console / states for testing

script:

radon_readout_script:
alias: ‘radon readout script’
sequence:
- service: shell_command.read_radon_value

in configuration.yaml

sensor:

  • platform: mqtt
    name: ‘Radon Level’
    unit_of_measurement: ‘pCi/L’
    value_template: ‘{{ value_json.radonvalue }}’
    force_update: true
    state_topic: ‘enviroment/radoneye’

python_script:

shell_command:
read_radon_value: ‘python /config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypassword’

tried also:
shell_command:
read_radon_value: ‘curl /config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypassword’
read_radon_value1: curl /config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypassword
read_radon_value2: ‘curl ./config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypasswordl’
read_radon_value3: curl ./config/python_scripts/radon_reader.py -a XX:YY:ZZ:AA:BB:CC -b -v -m -ma -ms 192.168.2.100 -mu my_username -mw mypassword

What am I missing?

tnx

fregatte