Catch you on Discord — and thanks for understanding!
I’m using the MQTT Publisher plugin to send telemetry data to home assistant. I can’t find any documentation on the topic structure from simhub.
I have the plugin installed in simhub and can successfully connect to Mosquitto on Home Assistant.
But I can’t get telemetry data. I think I don’t have the topics properly configured, but I can’t find any documentation on them.
Has anyone successfully navigated this?
I figured it out.
In MQTT Publisher settings, the “topic” field can be whatever you want. This will become the top-level topic when the data is sent.
MQTT Publisher sends json data in this format:
"time": 1742331819985,
"userId": "87287400-9122-4396-aaf8-cb9328c4
"carState": {
"SpeedKmh": 0,
"Rpms": 2500,
"Brake": 100,
"Throttle": 0,
"Clutch": 100,
"Gear": "1"
"CarCoordinates": [
-91.28926086425781,
0. 9819401502609253,
0.730110228061676
1, "CurrentLapTime": 9915,
"CarModel": "BMW M3 E30 Gr.A 92",
"CarClass": null,
"EngineIgnitionOn": true,
"EngineStarted": true
}
}
The data structure is essentially
[your custom topic] > carState > Brake (or Throttle, or Gear, etc)
Setting up the MQTT Publisher plugin in SimHub to send telemetry data to Home Assistant can be tricky without clear documentation. It’s crucial to ensure that the topic structure matches what Home Assistant expects, such as using a format like simhub/{device}/{data_type}. If you’re not receiving data, double-check your topic configurations and consider using an MQTT client to verify that messages are being sent correctly.