This small python tool can read data from Jeelink RF sticks , decode and forward it to Mosquitto MQTT. The Jeelink must run the FHEM LaCross Sketch.
I have created this tool when I switched from FHEM to Homeassistant and wouldn't loose my cheap LaCross/Technoline temperature sensors.
Features:
- read LaCross sensors from jeelink
- publish sensor values to MQTT
- support temperatur, humidity and an "online" status of each sensor
- support "online" status of jeelink device
me@localhost $ ./jee2mqtt.py --loglevel INFO --logfile
Started jee2mqtt using /dev/jeelink with 57600
Logging to /tmp/jee2mqtt.log
2021-02-14 17:18:19,965 INFO: connected to mqtt server
2021-02-14 17:18:22,018 INFO: received somthing ... back online !
2021-02-14 17:18:22,963 INFO: ID=38, type=, Bat new=0 weak=0, T= 11.8, H=40, /DG/Bad
2021-02-14 17:18:24,898 INFO: ID= 2, type=, Bat new=0 weak=0, T= 18.9, H=38, /OG/Jonas
2021-02-14 17:18:26,801 INFO: ID=52, type=, Bat new=0 weak=0, T= 12.5, H=37, /DG/Medien
2021-02-14 17:18:27,216 INFO: ID= 1, type=, Bat new=0 weak=0, T= 20.0, H=41, /OG/Kueche
...
TODO:
- remove pyserial-asyncio dependency and use native async
- Use fnotify to reload config on change
- extend config file with MQTT and SERIAL settings
- replace sensor, which is not received by x time with unknonw received (battery change)