cyberjunky / RTL-SDR-P2000Receiver-HA

Receive P2000 messages using RTL-SDR stick and post them to Home Assistant
MIT License
23 stars 11 forks source link

Update p2000.py #37

Closed Dinges28 closed 2 years ago

Dinges28 commented 2 years ago

change to make the p2000 sensor post data as sensors to MQTT

cyberjunky commented 2 years ago

Thanks!

cris1 commented 2 years ago

For me this did not work. According to the logfile it says

MQTT Crashed: name 'mqtt_topic_sensor' is not defined.

cyberjunky commented 2 years ago

@cris1 can you try the latest code and let us know? There was a bug which is fixed now.