I’ve got a Mi Scale 2 that I was able to pair with Home Assistant just fine. It updates the weight value in HA every time I use it, but I’m kind of scratching my head about how to generate a long-term log in an externally-usable format.
Can I dump this number to some kind of external database? Generate a CSV file and upload it to a SMB share or something like that?
(As background, I have my HA instance running in a VM on Proxmox, so it’s no problem for me to spin up a dedicated VM if that’s what’s needed.)
I’m using the file integration and the notify service to save the values to a csv-file that I can easily pick up in e.g. Microsoft Power BI.
Once you have set up the csv file and automation properly, the notify action will add the latest values at the end of the file.
You can then use the ‘Download data’ option from the History to get and fill in previous data, i.e. from before the automation started adding the values to the csv file.