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

battery_sim doesn't take the original unit_of_measurement of import_sensor/export_sensor into account #18

Closed SirUli closed 2 years ago

SirUli commented 2 years ago

Hi,

thanks for this extension - awesome work!

My import_sensor/export_sensors are reporting their values in Wh (ENERGY_WATT_HOUR) whereas battery_sim simply takes them as kWh (ENERGY_KILO_WATT_HOUR). While i could simply template the correct unit_of_measurement for battery_sim i would like to ask if you would want to take the unit_of_measurement of import_sensor/export_sensor into account?

Thanks in advance!

Best Regards, Uli

hif2k1 commented 2 years ago

This should be addressed in the latest release - acceptable units are Watt Hour and Kilowatt Hour. Hope this works for you, would be interested to know.

SirUli commented 2 years ago

Hi @hif2k1

yes! This works - thank you so much, very much appreciated!

Cheers, Uli