cyberjunky / home-assistant-garmin_connect

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

Set up an automation using the garmin_connect.add_body_composition service didn't work for me.... #193

Open robinmarlow opened 4 weeks ago

robinmarlow commented 4 weeks ago

I had been puzzling on how to get my data from my Eufy Smart Scale P2 Pro into Garmin. EufyLife BLE plugin pulls it nicely into homeassistant but I hadn't spotted the great tip at the bottom of your README.

Using your code and the suggested entity_id: sensor.garmin_connect_weight I get:

Logger: homeassistant.helpers.service
Source: helpers/service.py:301
First occurred: 7 September 2024 at 17:58:16 (7 occurrences)
Last logged: 7 September 2024 at 18:36:11

Referenced entities sensor.garmin_connect_weight are missing or not currently available

I found i had to both enable your home-assistant-garmin_connect 'sensor.weight' entity (it's disabled by default) and set: entity_id: sensor.weight for it to work.

Confusingly this is at odds with #146 who say the entity_id doesn't matter! Is it because there has been a fix?

Happy to write a pull request to fix the README.md, unless this is just me doing something wrong!