gillesvs / librelink

Librelink integration for Home Assistant
MIT License
21 stars 6 forks source link

Feature request : information about insulin taken #16

Open fnxpt opened 4 months ago

fnxpt commented 4 months ago

Not sure if it’s possible but it would be great to be able to have information about the amount of insulin taken and when it was taken. With this we can create better notifications

gillesvs commented 4 months ago

hi @fnxpt,

Usually, Insulin information comes from the pump if you have one. This integration focuses on librelink GCM data only. There are many applications that gather GCM sensor and insulin information like "mydiabby" automatically (or semi-automatically). So you need indeed two integrations and mix the two in HA; One for GCM data (this one) and one for Insulin (depending on your pump brand or tool you use for medical follow-up)

Otherwise, adding an input number, date and text to manually enter info in HA is not a big deal, but the spirit of this integration is not to do things manually.

Do not hesitate to add more info to your request if I did not understood your request.

Gilles

fnxpt commented 4 months ago

Ok, so my wife doesn't have pump, she takes her insulin with the pens, but the app has a way to track this by adding notes with the values of insulin taken and what type was used. IMG_5694 IMG_5695 IMG_5696

gillesvs commented 4 months ago

Ok clear. I do not use this capability today, but there is a logbook API available from Abbott. So I might add some sensors and retrieve these data if I have time.

fnxpt commented 4 months ago

Seems like my account doesn't have access to the notes... I also cannot use her account to login since it says {"status":2,"error":{"message":"notConnectedToPatient"}} but from the api the logbook endpoint seems to be the on with all the data since it contains references to "GlucoseUnits": 0,

gillesvs commented 4 months ago

I also did input some "notes" data to see if they show in the available api's, especially the one called "Logbook", and it does not.

Exploring all available api in postman from the unofficial API documentation, I was not able to retrieve these Notes data...

If anyone knows how and where to retrieve the log data...