Add device class radiation #886
Replies: 9 comments 10 replies
-
The units for Isn't the unit of |
Beta Was this translation helpful? Give feedback.
-
Does ESPHome already have a device class for this? I think that alone would be a strong enough argument for adding it in HA.
Technically yes, but Hz is typically associated with signals (not referring only to sinusoidal signals, of course). You wouldn't refer to the unit for the number of steps you give per day in Hz either – it will just be a count per day which would be a rate per hour/minute/whatever. |
Beta Was this translation helpful? Give feedback.
-
So, in general, we don't want to add every possible unit of measurement (constant), but only the ones that at least have a few uses in our Core codebase. However, the list provided in the proposal seems to be big compared to the integrations that can use this now. So, let's investigate which units are used by each integration that can currently support this (excluding integration that define their own protocol, like rest, mqtt, templates and such). ../Frenck |
Beta Was this translation helpful? Give feedback.
-
Use case investigations: RadonEye Airthings https://www.uradmonitor.com/uradmonitor-home-assistant-a-match-made-in-heaven/ https://devices.esphome.io/devices/geiger-counter https://github.com/GelidusResearch/grgc1 Based on actual active iot devices used with HA we can reduce the list to:
Sieverts are clearly the most used. |
Beta Was this translation helpful? Give feedback.
-
Are all the units interchangeable? |
Beta Was this translation helpful? Give feedback.
-
Keeping this alive .. |
Beta Was this translation helpful? Give feedback.
-
Hoping to restart discussion on this topic, I had made a very similar but not identical question posed here: #999 I had made a PR focusing specifically on sensors that measure radon, not radiation measurements in general: home-assistant/core#103709 From reading the discussion above, I see no arguments against standardizing radon measurements as either "Bq/m³" or "pCi/L", just discussion on the wider topic of radiation in general. In my opinion, implementation of this would be lower risk and lower effort than trying to have a single catch-all radiation device class? It doesn't really address the needs of @descipher though. |
Beta Was this translation helpful? Give feedback.
-
@Kirchoff No real needs atm just looking to improve the whole. The challenge with a radiation class is the wide variance of units. They do not fit into a classical unit model however they are all related. The notion of sub class is one of the potential solutions. Alternately we could follow a unit path which is where most of the code lives. that would be more like RADIATION_IONIZING_ACTIVITY and RADIATION_IONIZING_DOSE or a less descriptive RADIATION_ACTIVITY and RADIATION_DOSE. Here radiation activity is where radon gas would sit. Its a measurement of activity verses exposure per say. This needs to be walked through the use case possibilities in a test of viability, I have not had the time atm. |
Beta Was this translation helpful? Give feedback.
-
I created a PR for this too before I knew it needed a discussion first. Radon sensors measure environmental radioactivity, which aligns with how the IEEE describes it here:
Consequently, I'd suggest that measures of strictly radioactivity be kept separate from "radioactive concentration" environmental/biological measures, as the volume component can change based on the medium. This EPA.gov page on Radiation Terms and Units shows Bq/L as the unit of radioactivity in a volume of water. Keeping them separate allows for more mix-and-match unit composition, if that is ever needed for a sensor. |
Beta Was this translation helpful? Give feedback.
-
Proposed architectural change:
After developing an ESPHome geiger counter component it was identified that various radiation sensor devices could benefit with the addition of a device class specific to radiation within Home Assistant. The radiation class would give users the ability to select from the wide range of measurement standards for a specific location. The additonal class would also enable radiation unit conversion capability.
Integrations/products which would benefit from this:
airthings, ggreg20, gmc320, GRGC1, openuv, pulse_counter (generic CPM), rd200_ble, web based REST sources etc.
Unit of Measure examples
Some real radiation sensors that engage with Home Assistant
https://suverent.org/2022/02/24/home-assistant-notification-radiation-levels/
https://www.uradmonitor.com/uradmonitor-home-assistant-a-match-made-in-heaven/
https://github.com/GelidusResearch/grgc1
https://www.airthings.com/en-ca/wave-radon
Draft PR for this discussion
home-assistant/core#90811
Beta Was this translation helpful? Give feedback.
All reactions