Closed NopeDK closed 5 years ago
I can reproduce the same issue on Win10.
is there already a solution for it?
AFAIK, no change has been made since I created the issue.
I reverse-engineered the same issue on my installation and I came to exactly the same findings as @NopeDK. There's no way the embedded MQTT server can be customized, as the client_config
/ broker_config
is always None
:(
is there already a solution for it? I have the same issue~ Why is this question ignored.
@liuyuelin1 I was installing mosquitto
instead of using the internal MQTT server. Works like a charm and is easy to install, maintain. You also have more tools for mosquitto than for the internal server, which makes it great for debugging!
@domibarton Thank you! I'm already using them now.
FYI: same for me. I've been observing this issue for a while, but the best solution for me was to ditch the builtin component and go with mosquitto
too.
Why was it closed? The issue is still there. People are switching from internal MQTT server to mosquitto due to this.
Sorry, went on a issue closing spree earlier and seemed to have misread the most recent comments on this, reopening.
Hopefully someone has figured out how to do it, so if you have a built-in module, don't give it up
I think it's already clear how to fix it, but someone needs to actually do it ;)
Y'all may want to provide feedback on https://github.com/home-assistant/architecture/issues/186
Home Assistant release with the issue:
0.81.2
Last working Home Assistant release (if known): Unknown, most likely several months ago
Operating environment (Hass.io/Docker/Windows/etc.):
Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch
Component/platform:
MQTT Embedded Broker Config
Description of problem: When adding the embedded config, the broker is unable to start.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information: This is due to a breaking change in async_setup#L371
When this function is called, it calls the
_async_server_setup
to get the client broker config._async_setup_server
then callsasync_start
to the parse the configuration.async_start
always returnsclient_config = None
if a custom server config has been added.The
None
is then returned to_async_setup_server
and returned toasync_setup
without change.async_setup
now immediately checks ifbroker_config == None
which it is due to the custom server config and terminates the MQTT broker with a failure to start error.Previous code used a full logic block afterwards to load the configuration: