home-assistant-garmin_connect icon indicating copy to clipboard operation
home-assistant-garmin_connect copied to clipboard

add_body_composition service ignores entity_id parameter

Open cornholio1234 opened this issue 11 months ago • 5 comments

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 avatar Mar 07 '24 10:03 cornholio1234

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

cornholio1234 avatar Mar 07 '24 11:03 cornholio1234

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

cornholio1234 avatar Mar 08 '24 12:03 cornholio1234

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.

JossPer0 avatar Mar 21 '24 14:03 JossPer0

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

cornholio1234 avatar Mar 22 '24 19:03 cornholio1234