Need to add attributes to your sensor.
Check my post: Water Meter in Energy Dashboard Not Available - #3 by mirecekd