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.99k stars 31.03k forks source link

Change unit of measurement in The Things Network sensors and TTN device tracker compatibility #120320

Open Emacee opened 5 months ago

Emacee commented 5 months ago

The problem

The sensors provided by this integration cannot be adjusted in the UI and are therfore incorrectly displayed. I would like to change the unit of measurent of these sensor (e.g. temperature in Celsius in a graph rather than a decimal number in a history bar). Additionally it would be nice to integrate the device_tracker as well; one of the sensors provided by this integration includes the latitude and longitude of the device. I'm struggling to get this working over MQTT as JSON template but I would make sense to take this straight from the TTN API rather than using MQTT as well.

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

thethingsnetwork

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

Let us split this into 2 feature requests:

For the last one this was already reported: https://github.com/home-assistant/core/issues/120308

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.

mal62 commented 2 months ago

Hi there. Im keen to see the Unit_of_measurement resolved so that data coming in via this integration can be displayed correctly in graphs. Why carnt the UoM be an attribute in the setup of either the History Graph Card Config OR more natively with each sensor entity.? following pic for eg HA_Boxy_graph_config with entities

Bassadin commented 2 months ago

I'd love to see this added too :)

johncliffton commented 1 month ago

Stumbled upon the same issue with decimal values being handled as text from a temperature sensor. Would also appreciate the possibility to change the data type.

Bassadin commented 3 weeks ago

Count me in. The integration is useless without the correct datatypes.

To say that is a bit disrespectful to the developer, imho. But it'd certainly be more usable with them.