home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.32k stars 30.63k forks source link

Fitbit integration and multiple accounts: devices and entities have no account identifier in names #123893

Open RealGandy opened 2 months ago

RealGandy commented 2 months ago

The problem

When adding multiple fitbit accounts to retrieve data for multiple peple, the devices and entities that get created do not contain the 'Application Credentials' name.

If I create Fitbit Application Credentials named User1 and User2, the devices and entities do not include these in the names.

The first item configured will have entities created such as sensor.steps and the second one will have sensor.steps_2 making it difficult to know which is which. The integration should create objects with a name that includes an identifier to understand which crednetials are being used, either by using the credentials name or something retrieved from the api being called.

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Fitbit

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fitbit/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (fitbit) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `fitbit` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign fitbit` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


fitbit documentation fitbit source (message by IssueLinks)