#Enable MQTT integration on docker container startup without GUI interaction

1 messages · Page 1 of 1 (latest)

astral marsh
#

Do I seriously have to go into the GUI and point-and-click to the integration, enter my MQTT URL and click "ok" everytime I restart my HA docker container for development?
No

#

Why would you think that?

somber wren
#

You're not providing a volume for /config

astral marsh
#

it seems like you didn't map /config and it's just sitting in the container. You'd have the same issue with any HA configuration and for any integration you set up

#

there's generally no need to use any YAML config at all for MQTT

#

If you're trying to provide entities to HA via MQTT, follow the instructions for discovery and let HA handle creating the entities

somber wren
#

No, you're not mapping /config to a volume at all. The configuration is stored in /config/.storage.

astral marsh
#

You're just specifically mapping configuration.yaml and not the entire config directory as you should

#

I suggest reviewing the installation docs

#

You should use docker compose and not docker run