SAIC-iSmart-API/saic-home-assistant-addon

Sensor for consumption since last charge

Opened this issue · 3 comments

First of I appreciate you A LOT, this Add on is AMAZING. Only the above mentioned sensor would be nice so I can calculate the consumption per km/mile. Though the car is not always charged to max. How can I add a sensor respectively how can I tell mqtt to add get the info?

Which gateway do you use? Python or java?

After some trial and error I got it done:

mqtt:
sensor:
name: "Last Charge Ending Power"
state_topic: "saic/user-email/vehicles/VIN_Number/drivetrain/lastChargeEndingPower"
unit_of_measurement: "kWh"
value_template: "{{ value }}"

Values added in 0.6.0-rc5, but testing shows that they are unreliable as they get randomly reset by the car