question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entities units of measurement + more

See original GitHub issue

Hi @HandyHat and @ColinRobbins

A few bits that i found wrong with the entities:

  1. sensor.electric_consumption_today and sensor.gas_consumption_today are missing the unit of measurement (kWh) - this is in the graph image image

  2. same applies to sensor.electric_consumption_year and sensor.gas_consumption_year image image

  3. sensor.electric_cost_today and sensor.gas_cost_today are missing the unit of measurement (currency as per instance setting?) - this is in the graph. This works fine for standing charge entities image image image

  4. sensor.electric_consumption_year_cost and sensor.gas_consumption_year_cost 4.1 have the wrong unit of measurement. For me the graph is showing EUR. This is not the case for standing charge. I must admit that i forgot to change my currency to GBP before installing the integration. Could this be the issue? image image

4.2 Wouldn’t the name Electric Cost (Yearly) be better? This will match Electric Cost (Today) image

4.3 They do not have unique_id, so they can’t be edited in HA - all the others are fine image image

I am not sure if some of these were by design (or even limitations) or not, so please don’t think i am throwing stones. But if they were not by design maybe they have just been overlooked. I know how it is when you stare at your own code for hours, you are starting to miss things.

Let me know if I can be of any further help

Version What version of the integration and what version of Home Assistant are you running? HA 2021.11.5 Integration v0.5.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ColinRobbinscommented, Nov 22, 2021

No problem, and “no waste of time”, it all contributes to our understanding of how all this works!

0reactions
ColinRobbinscommented, Nov 23, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit of measurement - Wikipedia
In physics and metrology, units are standards for measurement of physical quantities that need clear definitions to be useful. Reproducibility of experimental ...
Read more >
Unit (UoM) entity reference - Dynamics 365 - Microsoft Learn
Unit (UoM) entity reference ... Unit of measure. ... Description, Type a descriptive title or name for the unit of measure.
Read more >
The ontological distinction between units and entities
We argue that a clear and unambiguous scientific distinction should be made between measurement and enumeration. We examine confusion in ...
Read more >
1B.1: Units of Measurement - Chemistry LibreTexts
So a measured number has 3 parts; magnitude, unit and entity. ... number 16 is more than the number one, and this is...
Read more >
The 7 Base Units of the Metric System - ThoughtCo
The metric system, or SI, is built on seven base units. These units describe the properties on which all other measurements are based....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found