Coder Social home page Coder Social logo

Comments (3)

strikeir13 avatar strikeir13 commented on July 23, 2024

Found more info on this - it was suggested on the forums that native_unit_of_measurement needs to be added to the sensor to allow for UI-based unit changes: https://developers.home-assistant.io/docs/core/entity/sensor/#properties Unfortunately, I'm not a developer, so making the necessary changes are beyond my capabilities.

from sensor.airthings_wave.

sverrham avatar sverrham commented on July 23, 2024

Not shure if it will be that simple, but I do not have time to look into it right now, maybe someone else will have a look if not it might be some time before I fix it.

from sensor.airthings_wave.

strikeir13 avatar strikeir13 commented on July 23, 2024

I looked into it more yesterday and it appears that HA doesn't have unit conversions for radon units. The HA airthings integration just pulls in radon units with a string for Bq/m3:

from .const import DOMAIN

SENSORS: dict[str, SensorEntityDescription] = {
"radonShortTermAvg": SensorEntityDescription(
        key="radonShortTermAvg",
        native_unit_of_measurement="Bq/m³",
        name="Radon",
    ),

from: https://github.com/home-assistant/core/blob/dev/homeassistant/components/airthings/sensor.py

The proper fix for my issue is HA adding a conversion from Bq/m3 to pCi/L, which is a much bigger task and far beyond the scope of this issue and component.

from sensor.airthings_wave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.