Use total_increasing instead of measurement for class, so it can work with Energy Dashboard too in HA.
@@ -11,7 +11,7 @@ primary_entity:
type: integer
name: sensor
unit: kWh
- class: measurement
+ class: total_increasing
mapping:
- scale: 100
- id: 15