# Mqtt broker stopped working

**URL:** <https://community.homey.app/t/mqtt-broker-stopped-working/73406>\
**Category:** Questions & Help\
**Created:** [December 11, 2022, 12:09am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406 "2022-12-11T00:09:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 12:09am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/1 "2022-12-11T00:09:06Z")

</div>

Hi,

Is someone else also experiencing that mqtt broker is not working anymore or not correctly?

All tasmota sonoff devices where suddenly unavailable  
since a few days and don’t get them back to work.  
Tried to install new broker, deleted all devices but when re-adding them they don’t get connection with broker.

Already installed test version 3 as well to see if that would fix the issue, but without succes.

Services are trying to authenticate to broker, as I can see from logs on both sides, but they don’t connect somehow.  
Gave them new user password combi to check, but without effect.

Who can send me in the right direction?

---

<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:** [December 11, 2022, 6:11am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/2 "2022-12-11T06:11:04Z")

</div>

Have you tried disabling authentication altogether? I assume that the IP address that you’re using is correct.

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 8:29am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/3 "2022-12-11T08:29:49Z")

</div>

Hi Robert,

Thnx for your response.

- IP is as far as I understand correct, hasn’t been changed. I use ip of homey for this

- authentication, are you suggesting I need to remove all authentication, so also on devices in the mqtt settings for this? I had per device a user configured.

I was wondering if a user per device was nessecary? But for now I first want to get it working again. Before optimizing the user management.

Thnx

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 8:36am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/4 "2022-12-11T08:36:35Z")

</div>

When I try to add in Sonoff app generic (tasmota) device, fill in config.I can’t get connection to mqtt broker it says.

 ![Screenshot_20221211-093314](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/dec69eba469588ee3dd53eb1b1f09609fb4b6cd3.png)

It worked yesterday once to get to next step and soft reboot device, which it recognized, but short after device was unavailable again.

I also noticed these messages in homey:

 ![Screenshot_20221211-093914](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/089206b8fe4fbb049c9edbca3179eb248127944f.jpeg)

---

<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:** [December 11, 2022, 8:43am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/5 "2022-12-11T08:43:48Z")

</div>

It could be that the test version uses a different config setup causing the “not valid” messages. Sounds like you may need to uninstall the app and start over.

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 9:08am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/6 "2022-12-11T09:08:06Z")

</div>

Ok will try that again.  
When uninstalling the broker app, will it also remove all existing config data?  
In other words, will config data be reset as well when removing app?

Thnx

---

<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:** [December 11, 2022, 9:17am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/7 "2022-12-11T09:17:26Z")

</div>

I assume so, yes.

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 10:21am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/8 "2022-12-11T10:21:15Z")

</div>

Unfortunately that didn’t do the trick.  
Also tried to connect with mqtt explorer, but also get a connection refused message from this.

Is there any way to test if broker is working correctly?

It is showing weird behavior…

 ![Screenshot_20221211-111428~2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d88a46403d49fecb9856116452182f40bc3e88f3.png)

It showed at random moment status: unknown  
Stopping and restarting again made it work again.

But this doesn’t made me more confident about working broker.  
So any tools/ideas I can use to test broker?

Thnx

---

<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:** [December 11, 2022, 10:22am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/9 "2022-12-11T10:22:22Z")

</div>

> [@PjO](#):
>
> So any tools/ideas I can use to test broker?

Use any MQTT client to see if you can connect to it.

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 4:26pm UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/10 "2022-12-11T16:26:55Z")

</div>

Thnx, but I can’t connect with any client on the broker…

Weird situation. As long as nobody else is experiencing this it would be probably only mine setup.

Don’t hope to do a complete reset of my homey to fix it.  
Keep you posted if I’ve solved it.  
Thnx for ur advice so far.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [December 11, 2022, 9:05pm UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/11 "2022-12-11T21:05:53Z")

</div>

An acquaintance of mine asked yesterday if I remembered how to add a plug with Tasmota. All of his 12 devices were no longer working.  
Adding them didn’t work either.  
After reinstalling the mqtt broker software everything worked again.  
He did have to search for the devices but all devices were found again.  
Without adding again.

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 11, 2022, 9:26pm UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/12 "2022-12-11T21:26:51Z")

</div>

And was he using Sonoff app in combination with that?  
Do you remember what kind of plug he was using?  
Thnx

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [December 12, 2022, 5:03am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/13 "2022-12-12T05:03:46Z")

</div>

He used the Sonoff AP and a couple of Sonoff mini’s.  
All with Tasmota firmware.

---

<div class="post-metadata">

**Author:** ![Khoi\_Ho\_Si](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khoi_ho_si/32/17289_2.png) [@Khoi\_Ho\_Si](https://community.homey.app/u/Khoi_Ho_Si)\
**Post date:** [December 12, 2022, 7:46pm UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/14 "2022-12-12T19:46:16Z")

</div>

I’m dealing with the same problem. @PjO did you managed to get it work?

FWIF, these are te errors i get with the client and the broker.

 ![IMG_3256](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/eaf51321ec1636eb6f3c6a114b8d836808328333.jpeg)  
 ![IMG_3255](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7ee481aae86e7644f9ea646754245b471c7369d7.jpeg)

---

<div class="post-metadata">

**Author:** ![PjO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pjo/32/8517_2.png) [@PjO](https://community.homey.app/u/PjO)\
**Post date:** [December 12, 2022, 10:45pm UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/15 "2022-12-12T22:45:05Z")

</div>

No still no solution.  
Can not connect to broker.  
Have similar error messages.

---

<div class="post-metadata">

**Author:** ![Khoi\_Ho\_Si](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khoi_ho_si/32/17289_2.png) [@Khoi\_Ho\_Si](https://community.homey.app/u/Khoi_Ho_Si)\
**Post date:** [December 13, 2022, 8:23am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/16 "2022-12-13T08:23:02Z")

</div>

It seems like the MQTT Broker is running on Homey, since i can connect to it via MQTT Explorer and see all the topics. However the client within Homey app cannot connect to it. The device i try to control via Homey say ‘Connection with MQTT briker failed’.

---

<div class="post-metadata">

**Author:** ![Khoi\_Ho\_Si](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khoi_ho_si/32/17289_2.png) [@Khoi\_Ho\_Si](https://community.homey.app/u/Khoi_Ho_Si)\
**Post date:** [December 13, 2022, 8:24am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/17 "2022-12-13T08:24:40Z")

</div>

perhaps @robertklep has an idea to solve this? He has helped many others before with MQTT issues.

---

<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:** [December 13, 2022, 8:28am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/18 "2022-12-13T08:28:50Z")

</div>

Have you tried using `127.0.0.1` as IP address for the client to connect to?

---

<div class="post-metadata">

**Author:** ![Khoi\_Ho\_Si](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khoi_ho_si/32/17289_2.png) [@Khoi\_Ho\_Si](https://community.homey.app/u/Khoi_Ho_Si)\
**Post date:** [December 13, 2022, 8:32am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/19 "2022-12-13T08:32:56Z")

</div>

Thank you for your prompt reply. I tried 127.0.0.1 unfortunately without success.  
Weird thing is that it does say that its connected in the client log information.

 ![IMG_3260.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/b/6ba94b07d7e3f45c7fc4405c41eda0a0f84cf25b.jpeg)

---

<div class="post-metadata">

**Author:** ![Khoi\_Ho\_Si](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/khoi_ho_si/32/17289_2.png) [@Khoi\_Ho\_Si](https://community.homey.app/u/Khoi_Ho_Si)\
**Post date:** [December 13, 2022, 8:42am UTC](https://community.homey.app/t/mqtt-broker-stopped-working/73406/20 "2022-12-13T08:42:34Z")

</div>

@PjO there is a work around since you are working with Tasmota. There is another app called Tasmota MQTT, that allows you to add the tamsota devices. This seems to work for me.

[Next page](https://community.homey.app/t/mqtt-broker-stopped-working/73406.md?page=2)
