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.91k stars 30.98k forks source link

Add support to add measurement units and other metadata #120308

Closed Saad-Imtiaz closed 1 month ago

Saad-Imtiaz commented 5 months 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 5 months 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 5 months 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 5 months ago

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

Saad-Imtiaz commented 5 months 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 5 months ago

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

angelnu commented 5 months ago

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

issue-triage-workflows[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Bassadin commented 1 month ago

I also ran into this issue. Would it be possible for this to be added into the UI? I'd love to make my first contribution to the project sometime, maybe this would be something I could do? Not sure how difficult it would be.