onstar2mqtt icon indicating copy to clipboard operation
onstar2mqtt copied to clipboard

Feature Request - Custom MQTT

Open nodiaque opened this issue 2 years ago • 1 comments

Hello,

I notice everything is currently publish in HA format. I don't use HA, I use openhab. It would be great if a param could be set to change the mqtt path to something else then homeassistant. Also, maybe another one for the name instead of using the serial number?

Thank you!

nodiaque avatar Oct 16 '22 00:10 nodiaque

You can set the topic prefix: https://github.com/michaelwoods/onstar2mqtt/blob/main/src/index.js#L30

Define MQTT_PREFIX at runtime. You can also currently prefix the name value but it will still use the VIN in the topic.

michaelwoods avatar Oct 18 '22 00:10 michaelwoods