Open pattullo opened 3 years ago
+1 I've been wanting this functionality as well. Going the MQTT route would seem better standardized and can slot right in with Telegraf since it could be used as a MQTT data broker.
+1 as well.
I'm going to try to see if I can do something, but very new at this type of tech.
It looks like most people instead use something else to do BT connections, write that to Influx or advertise as MQTT, then use a different plugin to read from that as a custom device in Homebridge.
First off, thanks for the great plugin. It works incredibly well and does exactly as advertised, right out of the box. Was surprised and happy to see my two new 5075s added a few seconds after I put the batteries in. No config or anything required, Effectively instant. Great stuff!
Is your feature request related to a problem? Please describe: I'm looking to collect historical data. I need to see a time series on temperatures in the rooms I place the devices. I currently use the TIG stack on my raspberry 4B. But can also do MQTT. Just need the data to start being exported somewhere.
Describe the solution you'd like: Some kind of facility within the plugin to specify a destination for data collected on devices, ideally per output type. So for a 5075 it'd be ideal to give it a name to associate with the data "Office Temp", "Office Humidity", and simply have the data punted off to a data storage system (Telegraf, MQTT, whatever is easiest for you to implement).
Describe alternatives you've considered: I looked around for ways to get homebridge to do this as I'm very new to it and expected that this would be an out-of-the-box function for a system like this. Especially since "data collection" comes hand-in-hand with the community that wants data presentation / smart home systems like this, For whatever reason, it's not though :(. Not complaining - homebridge is a great tool that works incredibly well - just very surprised.
I also looked at whether there were other plugins that would allow me to get access to the data you are presenting and then log it. But it appears (perhaps I'm wrong?) that each plugin and its respective data is quite discrete, and as such another plugin isn't able to see & store your plugin's data.
Additional context: homebridge-mqttthing does this for a bunch of homekit devices and may provide a rich library of code from which equal functionality could be derived.
homebridge-mi-hygrothermograph also specifically supports MQTT. Given the similarities this may be even better than mqttthing for copy-paste of functionality.
I've not seen anything support Telegraf or other data storage so can't provide examples, though I think Telegraf would be a more ideal destination for the data given its rich feature set.