Skip to content

Commit 7392767

Browse files
committed
#300: Mark 'Last Charge SoC kWh' in HA as a TOTAL_INCRESING sensor so that it can be used in Energy Dashboard
1 parent 7e1cab6 commit 7392767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrations/home_assistant/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __publish_ha_discovery_messages_real(self):
220220
self.__publish_sensor(mqtt_topics.DRIVETRAIN_LAST_CHARGE_ENDING_POWER,
221221
'Last Charge SoC kWh',
222222
device_class='ENERGY_STORAGE',
223-
state_class='measurement',
223+
state_class='total_increasing',
224224
icon='mdi:battery-charging-70',
225225
unit_of_measurement='kWh'
226226
)

0 commit comments

Comments
 (0)