MQTT topics?
 
Notifications
Clear all

MQTT topics?

5 Posts
3 Users
0 Reactions
117 Views
(@itseli)
Active Member
Joined: 1 month ago
Posts: 3
Topic starter  

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? 


   
Quote
Topic Tags
(@wilkinsonwilfrid)
New Member
Joined: 9 months ago
Posts: 4
 

You seem to be progressing quite nicely with the MQTT Publisher plugin! Check the MQTT settings in SimHub for any default configurations if you're experiencing issues with the topic structure while transferring telemetry data from SimHub to Home Assistant. The themes frequently adhere to a particular format, which is frequently consistent with the device or data source. 

https://www.simhubdash.com/community-2/simhub-support/mqtt-topics/ basketball stars

This post was modified 3 weeks ago 2 times by wilkinsonwilfrid

   
ReplyQuote
(@itseli)
Active Member
Joined: 1 month ago
Posts: 3
Topic starter  

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)


   
ReplyQuote
(@barkerxavierr)
New Member
Joined: 5 days ago
Posts: 2
 

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.

 

   
ReplyQuote
(@barkerxavierr)
New Member
Joined: 5 days ago
Posts: 2
 

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.

Drift Boss

This post was modified 5 days ago by barkerxavierr

   
ReplyQuote
Share: