MQTT Statestream Modify Topic

Is there any way to modify the outgoing topic for mqtt statestream? I’m trying to use this as a way to communicate with the smartthings hub.

Essentially I have TP Link switches. I’d ideally like them to first be setup through home assistant for reliability. However, the wife likes to use the smartthings app for ease of use. I’d like to then include this entity in mqtt statestream, however the topic is slightly different than what the smartthings-mqtt-bridge is expecting:

What smartthings expects:

smartthings/outside/switch on

What MQTT Statestream provides:

smartthings/outside/state on

It’s very close. I’m guessing there’s got to be a way to modify this? Any help is appreciated!

You can automate the republishing of a topic to your liking.


That’s fair, but I’ve noticed that many MQTT publishes seems to crash home assistant recently. There’s no way to modify statestream on it’s own?

I’d be nice if you could specify in the configuration what topics to use for state/etc. Kind of like:

- state: 'switch'

Under each entity.

Also, this would be difficult to create an automation to update the light when this runs, vs if I can modify statestream then it would all be automatic.

There is a mqtt trigger that can monitor the light mqtt.