Instead of scaling the values to a more useful unit (days), use the original value with original min units, and the duration class to get the HA UI to do the scaling dynamically. Comment on PR #2006
@@ -28,35 +28,33 @@ secondary_entities:
- entity: sensor
name: Filter life
icon: "mdi:air-filter"
+ class: duration
category: diagnostic
dps:
- id: 4
type: integer
name: sensor
- precision: 0
range:
min: 0
max: 43200
mapping:
- - scale: 1440 # minutes => days
- invert: true
- unit: d
+ - invert: true
+ unit: min
name: Pump maintenance
icon: "mdi:pump"
- id: 5
max: 86400
- - scale: 1440
- entity: switch
translation_key: uv_sterilization
category: config