hassio-addons / addon-mqtt

MQTT Server & Web client - Home Assistant Community Add-ons
https://addons.community
MIT License
35 stars 15 forks source link

Connecting to CloudMQTT as a MQTT bridge #9

Closed e2m32 closed 5 years ago

e2m32 commented 6 years ago

Problem/Motivation

Looking to move over from Official MQTT server for the WebUI for debugging

-- Is there a way to configure an MQTT bridge to say cloud mqtt? I've accomplished this with the offical MQTT server using this setup: https://community.home-assistant.io/t/solved-mqtt-over-internet-aka-how-to-set-up-cloudmqtt-bridge-with-hassio-mosquitto-broker/49939/8

Does this still exist for this add on as well?

Home Assistant Community
[solved] Mqtt over internet? aka: "How to set up cloudMQTT bridge with Hassio mosquitto broker"
I have not worked with NodeRed at all, but i figured it out without it. Here is how i did it, by compiling info from all around the community forums: Register CloudMQTT free account. Ignore the initial un/pw and create two (in my case) new users with their own passwords. In the users page of cloudMQTT, scroll down after creating the users and click topic, select the user, add # (in case you want them in on everything) in the pattern box, then tick read/write access accordingly and add them tw...
addons-assistant[bot] commented 6 years ago

:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

ludeeus commented 6 years ago

Currently no, but I will check out the possibilities

pjv commented 5 years ago

wait, you mean if i configure a bridge to an external mqtt in the "custom configuration" in the /config/mqtt/mosquitto.conf file (per the add-on's documentation) that it won't work?

pjv commented 5 years ago

ok, assuming from looking at your commits in here that the documentation on the readme is ahead of the functionality of the latest release (that i am running on my HA), is there an easy way for me to upgrade my hass.io install of the add-on to the HEAD of this repo so i can get this functionality now? Or do i need to wait for you to push a new release? And if so, how long do you think that will be?

ludeeus commented 5 years ago

You are correct @pjv this is the documentation for the current release https://github.com/hassio-addons/addon-mqtt/tree/v0.1.1 The edge repo has the HEAD, but I would not recommend that you use that. I have planned to release this later today, or tomorrow it still needs some more testing.

GitHub
hassio-addons/addon-mqtt
MQTT Server & Web client - Community Hass.io Add-on for Home Assistant - hassio-addons/addon-mqtt
pjv commented 5 years ago

@ludeeus thanks for clarifying.

FYI, i installed the add-on this morning and was linked from within the add-on to the documentation on the master branch which obviously includes this new, un-released, custom config capability. based on the documentation i read, i had configured a bridge to an external MQTT instance and spent a couple hours trying to debug why it wasn't working. Maybe in the future it would be better for the released add-on to link to the documentation for the release tag (i.e. the link you just showed me above) rather than the master branch.

Edit: thanks for working on adding the custom config and putting it in the right place (/config rather than /share).

ludeeus commented 5 years ago

I agree with that, will take it into consideration for future releases.

ludeeus commented 5 years ago

This should now be possible in v0.2.0

addons-assistant[bot] commented 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.