V1 uptime value is in minutes but unit shows seconds #28

Closed
opened 2025-07-08 08:33:31 -04:00 by AtHeartEngineer · 0 comments

Originally created by @stleusc on 9/28/2023

re my change in #21:

The data I push into radon_uptime is in minutes.
The sensor definition is in seconds.

Either my value needs to be scaled or the unit could be changed.
Using seconds might not make much sense since the senser only updates every few minutes.
So maybe the V2 data could be changed to mintues and the senor then adapted as well?

"radon_uptime": SensorEntityDescription(
    key="radon_uptime",
    native_unit_of_measurement=UnitOfTime.SECONDS,
    name="Radon Uptime",
    state_class=SensorStateClass.MEASUREMENT,
    icon="mdi:timer-outline",
),
*Originally created by @stleusc on 9/28/2023* re my change in #21: The data I push into radon_uptime is in minutes. The sensor definition is in seconds. Either my value needs to be scaled or the unit could be changed. Using seconds might not make much sense since the senser only updates every few minutes. So maybe the V2 data could be changed to mintues and the senor then adapted as well? "radon_uptime": SensorEntityDescription( key="radon_uptime", native_unit_of_measurement=UnitOfTime.SECONDS, name="Radon Uptime", state_class=SensorStateClass.MEASUREMENT, icon="mdi:timer-outline", ),
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/rd200v2#28