Skip to content

Commit

Permalink
add battery health (SOH) attribute (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler authored May 25, 2022
1 parent e60d874 commit d62d79b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/leafspy/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def _parse_see_args(message):
'trip': int(message['Trip']),
'odometer': int(message['Odo']),
'battery_temperature': float(message['BatTemp']),
'battery_health': float(message['SOH']),
'outside_temperature': float(message['Amb']),
'plug_state': PLUG_STATES[int(message['PlugState'])],
'charge_mode': CHARGE_MODES[int(message['ChrgMode'])],
Expand Down

0 comments on commit d62d79b

Please sign in to comment.