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.45k stars 30.69k forks source link

SwitchBot devices --> Proper sensor names structure? #129999

Open talormanda opened 1 hour ago

talormanda commented 1 hour ago

The problem

It seems the naming of the sensors is a bit off. For example, with temperature devices (in this case, the meter pro CO2), it will automatically name the sensors correctly with Carbon dioxide and Humidity, etc: sensor.meter_pro_co2_carbon_dioxide sensor.meter_pro_co2_humidity

But if you look at temperature, it defaults to the plain device name, for me this shows up as: sensor.meter_pro_co2

Is there any reason this shouldn't auto set it as sensor.meter_pro_co2_temperature ? aka: including _temperature in the name? I believe it should follow suit like all the other sensors and identify what it is. I had to manually set it on every sensor I have. Right now, I've noticed this just with the temperature sensors. It's possible there are more that do this.

image

What version of Home Assistant Core has the issue?

2024.11.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

switchbot

Link to integration documentation on our website

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

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 1 hour ago

Hey there @danielhiversen, @renierm26, @murtas, @eloston, @dsypniewski, mind taking a look at this issue as it has been labeled with an integration (switchbot) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `switchbot` 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 switchbot` 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)


switchbot documentation switchbot source (message by IssueLinks)