gleeds / cloudbbq

A Bluetooth to MQTT bridge for the Tenergy Solis Digital Meat Thermometer and other similar devices.
MIT License
45 stars 12 forks source link

Running as a service #23

Open brandondb1 opened 3 years ago

brandondb1 commented 3 years ago

This is a great little tool...now I can graph the progress of my BBQ efforts in HomeAssistant!!...anyway, running it as a service (and headless) it's a bit of a mystery what's happening if it doesn't connect, so I created another topic and put in MQTT publications mirroring each log entry so you can see from the MQTT side what's happening. I also made it so that if a probe is null it will still publish (a null value)...in combination with the log messages, if something goes wrong you can use the MQTT output to see problems so you won't be sitting there and thinking all is well when it isn't. If this seems useful I'll create a PR.

gleeds commented 3 years ago

It sounds useful, but publishing null probe values should be an option. I use io.adafruit.com as my MQTT broker, and they limit you to 30 messages a minute on their free tier, so sending empty probe data isn't desirable when using them, but if you are using your own broker that's not a limitation. maybe add a config file option like sendNullProbeValues:trueor something like that.