Hello,
Following this discussion, I am opening a dedicated topic to propose a feature category for radioactivity sensors.
Context
As advised, I wrote a small independent service for the FTLab BSG-001 radiameter, which connects via GATT and publishes to MQTT with Home Assistant discovery: GitHub - ldesgrange/bsg-001: Command-line tools for the FTLab Wireless Smart Geiger BSG-001. · GitHub
It works with Gladys 5.3.6, but due to the lack of a category, the two measurements (flow rate over one minute and average over ten minutes) are displayed as generic sensors: a bare number like 0.07, without unit or icon, and 0.00 becomes 0.
The Measured Quantity
The radioactive dose rate, in µSv/h.
The natural background noise is around 0.1 µSv/h.
Proposal, following docs/specs/device-feature-categories.md
- Category radiation-sensor, read-only.
- Type dose-rate, decimal, in µSv/h.
- Other types can be added later without renaming, for example cumulative-dose (µSv) or count-rate (counts per minute, which depends on the detector).
- Limit: radon is a concentration in Bq/m³, another quantity, which does not belong in this category (but which seems to be in other integrations).
- A single device can publish multiple dose-rates, such as here the flow rate over one minute and the average over ten minutes: it is the same quantity, so the same category.
Several brands and protocols publish the same quantity in µSv/h: Radiacode (Bluetooth LE), GQ GMC counters (Wi-Fi), or Geiger counters mounted under ESPHome (Wi-Fi, to Home Assistant or MQTT).
A Question About Home Assistant Discovery
Home Assistant does not have a device_class for a dose rate.
My bridge therefore publishes unit_of_measurement: “µSv/h” and state_class: measurement, without device_class.
How would you prefer Gladys to recognize these sensors: based on the unit µSv/h when there is no device_class, or otherwise?
Does this proposal suit you?
Thank you!