Skip to content

Enhancement: add charge_energy_used to MQTT publishingΒ #4947

@yeti08

Description

@yeti08

Is there an existing issue for this?

  • I have checked the existing issues and discussions, and I can confirm that there are no duplicates.

What happened?

charge_energy_added is published via MQTT, but it would be useful to also publish charge_energy_used so that this data could be passed on to integrate with energy monitoring systems as in the homeassistant energy dashboard. I believe charge_energy_used would just need to be added to teslamate/mqtt/pubsub/vehicle_subscriber.ex

Expected Behavior

Report both the energy added to the battery and the energy consumed for that addition.

Can the issue reliably be reproduced?

Yes

Steps To Reproduce the issue

Enhancement

Relevant log output

N/A

Screenshots

No response

Additional data

No response

Type of installation

Docker (https://docs.teslamate.org/docs/installation/docker/)

Version

v2.1.1

PostgreSQL version

v17.6-1

Are you running latest major supported PostgreSQL version?

  • I run the latest major supported PostgreSQL version

Are you using a reverse Proxy for TeslaMate?

Yes (specify in next field)

Details about your reverse Proxy if applicable

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:ideaIdea for new feature or some form of enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions