How to change the MQTT integration configuration

Hi all,

I have a question regarding the MQTT integration within hassio. I have setup the integration with my MQTT server (which runs on another server then Hassio) via the integration page. Works perfectly and my devices show up.

However; i would like to change this configuration (IP, username, password).

Question is: how?

I’m not able to find this MQTT configuration parameters anywhere. Not in the configuration.xml but also not on the integration MQTT page within Hassio. The only thing i can configure is auto discovery.

image

I’m running Hassio with Supervisor in Docker. Any help appreciated.

edit

Just found out that the configuration is stored in the “core.config_entries” file. Can i just edit this file with the new parameters? Is this the recommend method?

Just delete the integration and configure it in configuration.yaml.

That is a potential solution; however then all my MQTT devices are lost?

Hardly. A lot of people have trouble removing or renaming mqtt devices. I have my mqtt configuration in configuration.yaml, if I need to remove/rename a mqtt device, I just remove the mqtt integration (without changing the configuration.yaml) and restart HA. Everything is back there after the restart (except the autodiscovered devices who’s retained messages were removed using mqtt explorer)

1 Like

Thanks @francisp