Skip to content

Add missing Home Assistant discovery entities for published MQTT topics #5624

Description

@vincep5

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?

In Home Assistant while using the auto discovery (MQTT Discovery (automatic configuration)) via the docs, I notice several sensors are not created. MQTT has the entries, but the sensors are not in the config

teslamate/cars/1/tpms_soft_warning_fl
teslamate/cars/1/tpms_soft_warning_fr
teslamate/cars/1/tpms_soft_warning_rl
teslamate/cars/1/tpms_soft_warning_rr

teslamate/cars/1/charge_current_request
teslamate/cars/1/charge_current_request_max

These were the ones I had noticed as missing

Also to note, the TPMS look to have some duplicated sensors
I see
homeassistant/sensor/teslamate_1/tpms_pressure_fl
and
homeassistant/sensor/teslamate_1/tpms_pressure_fl_psi

In Home Assistant, you are able to set the Unit of Measurement in the Entity settings. So those that want to see it as bar or psi can make it whichever way they prefer.

Expected Behavior

HA MQTT auto discovery, should create the entities per the expected topics and values from MQTT

Can the issue reliably be reproduced?

Yes

Steps To Reproduce the issue

  1. Setup the Teslamate env with notes from https://docs.teslamate.org/docs/integrations/home_assistant/#mqtt-discovery-automatic-configuration
    MQTT_HOME_ASSISTANT_DISCOVERY=true
  2. In Home Assistant add the MQTT as an integration or reload the integration from the page
  3. View the entities created for the vehicle

Relevant log output

none

Screenshots

Image

Additional data

No response

Type of installation

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

Version

v4.1.1

PostgreSQL version

No response

Are you running latest major supported PostgreSQL version?

  • I run the latest major supported PostgreSQL version

Are you using a reverse Proxy for TeslaMate?

No

Details about your reverse Proxy if applicable

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions