Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only a few of the available entities are pulled to Home Assistant

paalkr opened this issue · comments

Describe the bug
Volvo2mqtt runs fine and publish data to my mqtt broker each minute, no error messages in the logs. But unfortunately the volvoAAOS2mqtt topic does not contain config for all entities. Home Assistant will only pull in data from topics described in the volvoAAOS2mqtt topic for each domain (sensor, binaray_sensor, switch, lock, device_tracker).

As seen in the screenshot from mqttexplorer, only the doors and engine_state binary sensors contains configuration under the volvoAAOS2mqtt topic in the binary_sensor domain.

Screenshots:

image

Expected behavior:

All available topics to be displayed as entities in Home Assistant.

Version info:

Home Assistant: 2024.1.2
Volvo2mqtt: 1.8.23
Car: Volvo XC40 Recharge 2024

Logs:

Jan 07 12:29:18 volvo2mqtt [1] - INFO: Starting volvo2mqtt version v1.8.23
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Using VCCAPIKEY: xxx
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Vin: ['xxx'] found!
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Battery Charge Level is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Electric Range is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Estimated Charging Time is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Charging System Status is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Charging Connection Status is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Estimated Charging Finish Time is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Odometer is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Last Data Update is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Active schedules is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Window Front Left is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Window Front Right is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Window Rear Left is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Window Rear Right is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Door Front Left is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Door Front Right is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Door Rear Left is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Door Rear Right is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Tailgate is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Engine Hood is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Tank Lid is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Sunroof is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Air Conditioning is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Lock state is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Force Update Data is supported by your vehicle.
Jan 07 12:29:19 volvo2mqtt [1] - INFO: Success! Location is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Tire Front Left is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Tire Front Right is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Tire Rear Left is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Tire Rear Right is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Engine State is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Failed, Fuel Level is unfortunately not supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Failed, Average Fuel Consumption is unfortunately not supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Average Energy Consumption is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Failed, Distance to Empty Tank is unfortunately not supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Distance to Empty Battery is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Average Speed is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Hours to Service is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Distance to Service is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Time to Service is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Service warning status is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! Washer Fluid Level warning is supported by your vehicle.
Jan 07 12:29:20 volvo2mqtt [1] - INFO: Success! API Backend status is supported by your vehicle.
Jan 07 12:29:23 volvo2mqtt [1] - INFO: Sending mqtt update...
Jan 07 12:29:23 volvo2mqtt [1] - INFO: Mqtt update done. Next run in 60 seconds.

So you are missing entities ?

Yes. The Volvo2mqtt component connects to the Volvo API and retrieves all available data (as shown in the logs). Also, all the same data is posted each minute to the mqtt broker. But the auto discovery config is missing for most of the topics, so the only entities auto discovered by Home Assistant are the

  • Battery Charge Level
  • All four doors
  • Engine state
  • Lock state

I can't reproduce this behavior...
Please show me your mqtt device inside home assistant.

Sure, thanks for following up. This is how the device looks like in Home Assistant.
image

But I believe this has nothing to do with Home Assistant config. The Auto Discovery config topics simply isn't published to the mqtt borker by Volvo2mqtt. As you see in the screenshot in the OP, only a few topics contain the Home Assistant auto discovery config data.

I have all the topics, so it is not a general issue.

I also have all the topics containing the actual data for each entity supported by my car. The problem is the missing auto discovery topics. Is it possible to enable some more debug logging in the Volvo2mqtt?

I noticed something strange when looking at the mqtt topics just now. Most of the config topics are only written once during the startup of the volvo2mqtt container. After the initial write operation to mqtt, only the data topics and the config topics for the seven entities I get in HA are written during the regular update interval. Why ar only a few config topics written during each update?

As seen in this screenshot, the Battery Charge Level config topic has several messages, while all the other config topics under the sensor domain only has one single message. So, if I restart HA, it will not know anything about the other configs.

image

This also applies to doors
image

And to the lock domain
image

I can't help you. This has to be a local broker problem, as the integration works fine for everyone else.

So, on your broker you get all the config messages on each update cycle? Are the config messages set to be retained?

Yes, all my entities are updating every update loop. And yes, the config topics are retained.

Hm, are also all config entries updated on each loop in your broker? Because for me only a subset of the config topics is updated on each loop, as highlighted in the screenshot.

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.