Invert needs to know the range in order to know where to invert to. Without that, the counters count up rather than down, which is less useful. Discussion #501
@@ -43,6 +43,9 @@ secondary_entities:
type: integer
name: sensor
precision: 0
+ range:
+ min: 0
+ max: 43200
mapping:
- scale: 1440 # minutes => days
invert: true
@@ -56,6 +59,9 @@ secondary_entities:
+ max: 86400
- scale: 1440