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

SAIC-iSmart-API repository for Home Assistant OS (HASS.IO)
MIT License
58 stars 6 forks source link

Sensor for consumption since last charge #47

Open GregorEstebanCardosoSchiller opened 10 months ago

GregorEstebanCardosoSchiller commented 10 months ago

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?

Tonno87 commented 9 months ago

Which gateway do you use? Python or java?

GregorEstebanCardosoSchiller commented 9 months ago

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 }}"

nanomad commented 7 months ago

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