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
69.71k stars 28.87k forks source link

Add support to add measurement units and other metadata #120308

Open Saad-Imtiaz opened 1 week ago

Saad-Imtiaz commented 1 week ago

The problem

Feedback

In the documentation of the integration it should be motioned how to declare the unit of measurement for each sensor, right now I am getting this history graph, as shown in the picture below. history graph

What I want is the line graph which I get on all my other sensors. CO2 Line Graph

I know that unit of measurement needs to be defined for each entity but there is no information how to do so.

Please help me in this regard,

Thank you.

URL

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

Version

2024.6.3

Additional information

What version of Home Assistant Core has the issue?

core-2024.6.3

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

The Things Network

Link to integration documentation on our website

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

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 week ago

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

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


thethingsnetwork documentation thethingsnetwork source (message by IssueLinks)

angelnu commented 1 week ago

You might use customize: https://community.home-assistant.io/t/unit-of-measurement/208905

It might need you to go the yaml way. Not great but it will have to do for a few weeks until we complete the features from the new integration.

angelnu commented 1 week ago

Please rename the tittle to indicate this a feature request to configure measurement units. Thanks.

Saad-Imtiaz commented 1 week ago

Thank you, @angelnu - This worked for me. Now I am getting a proper line graph.

It will be much appreciated if this can be added into the documentation of the integration, so no one else encounters the same issue.

angelnu commented 1 week ago

I will add a known limitations section and link the circumvention and planed development

angelnu commented 1 week ago

@home-assistant rename Add support to add measurement units and other metadata