-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT configuration info available in the Configuration UI or corresponding YAML ? #22
Comments
I'd like to keep to using service discovery vs storing credentials in plain text. I could add an option to the UI to fall back to the manual config options but you need the MQTT integration configured anyway for the entities to show up. You configure the MQTT integration to use your broker: That's mine for the mosquitto addon. |
Ah yes, I do have the MQTT configured with my broker, port, the HASS username and pw in there. So, maybe it's just not fully getting passed to the Addon ? |
Can you post the error and your MQTT config? The Supervisor API shouldn't differentiate between using Mosquitto and something else |
The Mosquitto addon also uses a username and password, so using an external broker should not be different. But, for sake of completeness: here's where the username/password is set in the upstream project and here is where this addon extracts the credentials The error is saying "Invalid host". It's not clear to me if that's because of that "Service not enabled" API error or if your config is incorrect. Are you using the MQTT integration for other things successfully? Have you restarted your Home Assistant instance (a quick Google showed several issues on the |
Yeah, I use the MQTT successfully (407 devices, 501 entities). I see the two code-links you provided, and it makes some sense with:
that if the I had already restarted HA this morning, but went ahead and just did it, with no change. I'd wonder if it's a routing issue, with potentially the container not routing to non-containers, but that would not make sense since others would then be having issues with the Xcel meter not being reachable. For what it's worth, I tried adding on The link you sent above, is there any way to have it use the "bashio::log.info" to output the MQTT Server/Port/User (not Password) ENV variables after bashio::services has attempted to fetch them, to make sure they're even being fetched correctly? Say, after line 16? |
Sure, just pushed a commit to the |
Would love to, but, naively, "how" - I ended up uninstalling then reinstalling, figuring that I would get the prompt for Main vs (other) branch there, but that didn't happen (had saved my config, hopefully it'll still work). Attempting to add a new repo of "https://github.com/wingrunr21/hassio-xcel-itron-mqtt/tree/next" failed, as well. I know i'vee seen a branch-choice dropdown before, but not seeing it under the Addon, the upper-right overflow 3-dot menu, or ... google-search is not being helpful.. |
ok, this is a low-risk change so I'll just push a patch version then |
So it looks like maybe its not fetching it? |
Ya, seems like it. It's gotta be this:
I looked up the Supervisor code and it seems they are using the addon config, not the integration config. So I'll need to add this config to the UI |
I really don't want to do that; I don't have a dev-system to try stuff out on, and i have too many things that talk to/through MQTT and don't want to risk them saying "oh, now I have a broker install locally, let me shift to that"... Lemme ask this - are the bash lines Just saw your edit (good! really didn't want to do that!) -- is there a way to query the Intergration config-setting vs the mqtt broker Service setting? |
Ya, I can have the config lookup fall back to the services call if the UI config isn't set. I just need to add that to the UI and test it. |
any update on this? |
Yep: update is it hasn't been implemented |
Understood - thanks for the response :) |
Hi everyone, I just pushed two updates to
|
Thanks. I've moved over to the edge add-on. Thanks! |
Is it working? I'd like to move this into the stable version but need testers |
Hello.
Any chance you could either make the MQTT Broker part of the Configuration UI, or alternatively, give an example of the 4 entries needed to get it up and running? I was able to locate a 'mqtt_server_address' and 'mqtt_port' in the error message and tried those, but still need to be able to get the MQTT User/Pass in there, as well
I'm running an external broker, and the reference to it in the documentation, "You can use an external broker other than the Mosquitto addon by configuring the MQTT integration with that broker's details" don't have the 4 specific yaml Keys that need to be set for an external broker. (If I understood Python better, I'd go diving into it, but... I don't).
Thank you!
The text was updated successfully, but these errors were encountered: