cyberjunky / home-assistant-garmin_connect

The Garmin Connect integration allows you to expose data from Garmin Connect to Home Assistant.
MIT License
224 stars 29 forks source link

add_body_composition service ignores entity_id parameter #146

Open cornholio1234 opened 4 months ago

cornholio1234 commented 4 months ago

We habe two garmin accounts for me and my wife. I can add both accounts and HA is fetching the data for both, but updating the weight using the service will always end up in the first account linked. I played around and found out that the entity_id is not relevant at all. I can just enter random characters and the first account is updated with the values. Any idea how to improve this behavior to allow multiple accounts linked?

service: garmin_connect.add_body_composition
data:
  weight: 57.1
  timestamp:  2024-03-07T11:47:00
  entity_id: abc
cornholio1234 commented 4 months ago

133 <- just saw this is just a more detailled duplicate of issue 133

cornholio1234 commented 4 months ago

Just a reply on myself: I have added the integration twice - in different folders and adjusted some files so HASS sees now two integrations. This way I have two separate services I can call (one for each user). This is not nice but at all it is working. Maybe this is helpful for someone ... image

JossPer0 commented 4 months ago

HI, issue 133 was mine. If this works I will give it a try, but not sure how to add twice. Any steps would be very helpful.

cornholio1234 commented 4 months ago

Hi Joss, just duplicate the folder. Then go through the files and adjust the name/domain like in my picture. It is only a couple of references. Restart hass and add another (now Garminconnect2) device with the secondary credentials