Skip to content

Commit

Permalink
Fix units for Battery Capacity
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Smedley <paul@smedley.id.au>
  • Loading branch information
psmedley committed Apr 25, 2024
1 parent 960624a commit c144810
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private void pollStatus() throws IOException {
}
if (systemStatus != null) {
updateState(TeslaPowerwallBindingConstants.CHANNEL_TESLAPOWERWALL_FULL_PACK_ENERGY,
new QuantityType<>(systemStatus.full_pack_energy, Units.KILOWATT_HOUR));
new QuantityType<>(systemStatus.full_pack_energy, Units.WATT_HOUR));
updateState(TeslaPowerwallBindingConstants.CHANNEL_TESLAPOWERWALL_DEGRADATION,
new QuantityType<>((13500 - systemStatus.full_pack_energy) / 13500 * 100, Units.PERCENT));

Expand Down

0 comments on commit c144810

Please sign in to comment.