# Can't get MQTT Broker app to run

**URL:** <https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985>\
**Category:** Questions & Help\
**Tags:** app\
**Created:** [March 2, 2019, 11:07pm UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985 "2019-03-02T23:07:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 2, 2019, 11:07pm UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/1 "2019-03-02T23:07:44Z")

</div>

Feel stupid!  
Trying to setup MQTT Broker to Connect Sonoff Tasmota to Homey but I can’t get The broker to start, probably because my setup is wrong.  
Can somebody help me please?!  
Thanks!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 8:09am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/2 "2019-03-03T08:09:30Z")

</div>

Can you elaborate?

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 8:35am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/3 "2019-03-03T08:35:57Z")

</div>

Yes absolutely.  
My goal is to Connect a sonoff RF r2 v 1.0, flashed with tasmota, the latest firmware, with homey.  
I red that you have to use MQTT so I dowloaded the MQTT Broker-app for Homey, no problem so far.  
Then I try to configure the MQTT Broker-app, generated a certificate. But Im not shure what to use for The CommonName and it doesn’t seem to save certificate.  
The box where you can start the broker is also greyed out so I defently doing something wrong.  
Ofcourse, when I try to Connect the Sonoff device to Homey I just get the answer that The connection was unsuccessfull.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 8:45am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/4 "2019-03-03T08:45:11Z")

</div>

Sonoff Tasmota, out of the box, doesn’t support SSL/TLS connections, so generating certificates for the broker isn’t necessary to get things up and running.

Also, it looks like you first have to save the settings (button at the bottom of the settings screen) before “Start Broker” actually works.

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 9:15am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/5 "2019-03-03T09:15:47Z")

</div>

Ok, Thanks so much for your quick responses!!

So, then my problem still remains, I cant get the broker to start. Is it possible to read somewhere how to configure the MQTT Broker? It looks simple but nothing works.  
What to use for CommonName for example?

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 9:17am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/6 "2019-03-03T09:17:46Z")

</div>

Its kind of frustrating when I managed to Flash The sonoff board with tasmota and now I cant get the flashed tasmota board to talk to Homey.

Thanks for you patience!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 9:39am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/7 "2019-03-03T09:39:20Z")

</div>

If you don’t enable secure connections, you don’t have to deal with certificates. Start simple.

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 9:52am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/8 "2019-03-03T09:52:50Z")

</div>

Ok I skipped that for now and just tried to get the broker running but that’s the prolem, I cant get it running, it won’t start!  
I tried to save settings but I guess my settings are wrong or what do you think?  
Do I have to do something else to get the broker to run?  
No matter what I do it says “Broker is not running”

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 9:53am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/9 "2019-03-03T09:53:41Z")

</div>

Can you make a screenshot of the settings that you have now?

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 9:58am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/10 "2019-03-03T09:58:11Z")

</div>

![Screenshot_20190303-105457](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a3f18fac46e77a6fe615eabb0c223e57735dc935.jpeg)

There is not much too look at but the weirdest part is that suddenly the logs says that it’s up and running, so weird!  
Ok I’ll try to connect with the sonoff now and see if it works!  
Thank you so much for you help! I feel so stupid!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 10:00am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/11 "2019-03-03T10:00:20Z")

</div>

Perhaps using the same port for secure and unsecure is causing problems (although secure connections are disabled, but who knows). The port to use for unsecure connections is 1883, for secure connections it should be 8883.

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 10:01am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/12 "2019-03-03T10:01:44Z")

</div>

Yes maybe, ok great I’ll have that in mind in the future. But if I want to use a secure connection with tasmota I have to do some other configurations with the sonoff device or?!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 10:06am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/13 "2019-03-03T10:06:47Z")

</div>

To enable encrypted connections (TLS/SSL) with Sonoff Tasmota, you need to compile your own firmware. The only thing that’s relatively easy to do is to enable authentication by adding a user/password combo to the MQTT Broker settings and configure Sonoff Tasmota to use it (however, that is not considered to be a “secure connection”).

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 10:06am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/14 "2019-03-03T10:06:48Z")

</div>

![Screenshot_20190303-110507](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b03d2613d1cd2801c1f7b1862fa5a138968d55a0.jpeg)

Still I don’t get a connection, is it honeys ip adress I write in the upper field?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 10:07am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/15 "2019-03-03T10:07:52Z")

</div>

Yes, that should be Homey’s IP address. You can also use `127.0.0.1`, because both the Sonoff app and the MQTT Broker are running on the same hardware.

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 10:09am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/16 "2019-03-03T10:09:12Z")

</div>

Ok sweet, I’ll try that. Haven’t got the Homet IP adress yet

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 10:11am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/17 "2019-03-03T10:11:15Z")

</div>

Couldn’t get it to work with the address you gave me so I’ll try the adress to Homey I found under settings and about in Homey

---

<div class="post-metadata">

**Author:** ![Climberman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/climberman/32/6883_2.png) [@Climberman](https://community.homey.app/u/Climberman)\
**Post date:** [March 3, 2019, 10:20am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/18 "2019-03-03T10:20:14Z")

</div>

Hm,  
Thanks to you at least I get Homey to look for the sonoff device. But when it tells me to reboot the device I like to pair it just won’t find it, it says network failure.  
Do you if I should do something else or different?!

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 3, 2019, 10:21am UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/19 "2019-03-03T10:21:56Z")

</div>

Did you configure the MQTT settings in the Sonoff Tasmota firmware? Otherwise the device has no idea where to send its data to.

---

<div class="post-metadata">

**Author:** ![Abduljalil\_Abbasi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/abduljalil_abbasi/32/9657_2.png) [@Abduljalil\_Abbasi](https://community.homey.app/u/Abduljalil_Abbasi)\
**Post date:** [May 28, 2019, 1:49pm UTC](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985/20 "2019-05-28T13:49:22Z")

</div>

Hi  
I am having a stable installation of tasmota basic, which is running fine for almost two years. i am trying to add a new tasmota basic (Program Version 6.5.0).I receive the timed out error. Tried restarting homey, sonoff and mqtt. no luck so far. The sonoff unit is new one with cable for power instead of soldered route.  
Any ideas?

 ![Screenshot_20190527-182658_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9f2fbd79025eff2df472353c36ffa5b91bde967b.jpeg)

[Next page](https://community.homey.app/t/cant-get-mqtt-broker-app-to-run/9985.md?page=2)
