hif2k1 / battery_sim

Home assistant home battery simulator - allows you to model how much energy you would save with a home battery
106 stars 13 forks source link

HA warning discharge/charge rate sensor units are incorrect. #16

Closed sprouse closed 2 years ago

sprouse commented 2 years ago

I get a warning in my log file that looks like: sensor.tesla_powerwall_current_charging_rate has unit kW which is unsupported for device_class energy

I think the cause is the units are in kW but the "energy" device_class expects "kWh".

purcell-lab commented 2 years ago

Charging rate sensors (kW) should be set to device_class power:

image

hif2k1 commented 2 years ago

This should be resolved in the latest release. I hope this is now correct. Let me know if not.