# \[TUTORIAL\] Setting up MQTT on Homey for configuring Home Assistant for dashboard purposes

**URL:** <https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880>\
**Category:** Questions & Help\
**Created:** [March 21, 2019, 11:46am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880 "2019-03-21T11:46:12Z")\
**Posts on this page:** 18\
**Page:** 12

<div class="post-metadata">

**Author:** ![NiklasLovefall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niklaslovefall/32/36149_2.png) [@NiklasLovefall](https://community.homey.app/u/NiklasLovefall)\
**Post date:** [March 3, 2023, 3:33pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/223 "2023-03-03T15:33:49Z")

</div>

Strange, my MQTT in HA says the hub is offline but the MQTT in Homey says status=online  
192.168.0.129 is HA, 192.168.0.113 is Homey.

 ![Skärmavbild 2023-03-03 kl. 16.32.20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82227ccd1c014e09256ec0f7df8dbe526be836f1.png)  
I6JBToGEfQ5hfEaqwQ7NaZhF6.png)

---

<div class="post-metadata">

**Author:** ![NiklasLovefall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niklaslovefall/32/36149_2.png) [@NiklasLovefall](https://community.homey.app/u/NiklasLovefall)\
**Post date:** [March 3, 2023, 3:35pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/224 "2023-03-03T15:35:17Z")

</div>

![Skärmavbild 2023-03-03 kl. 16.31.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/7/27313c5fc0570ef7cf67fcb06820f64d770b1890.png)

---

<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, 2023, 3:42pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/225 "2023-03-03T15:42:30Z")

</div>

> [@NiklasLovefall](#):
>
> 192.168.0.129 is HA, 192.168.0.113 is Homey.

So you’re using _two_ MQTT brokers?

---

<div class="post-metadata">

**Author:** ![NiklasLovefall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niklaslovefall/32/36149_2.png) [@NiklasLovefall](https://community.homey.app/u/NiklasLovefall)\
**Post date:** [March 3, 2023, 5:56pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/226 "2023-03-03T17:56:01Z")

</div>

I have followed instructions and according to them I should have one broker, one hub and one client on Homey.  
On HA I have Mosquito broker that connects to Homey’s broker. If I stop the broker on Homey I can’t connect with HA at all.  
Right now I can connect with HA to the Homey broker and I have found devices before. I have 20 devices and 33 entities in HA from Homey.  
But when I added more devices on Homey the other day, HA don’t find them, it doesn’t update somehow.  
So basically, my question is how I can update MQTT in HA to pick up the new devices?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d3a75e06510309012b4cf8f3379c8b252fae1bf4.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:** [March 3, 2023, 6:23pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/227 "2023-03-03T18:23:01Z")

</div>

> [@NiklasLovefall](#):
>
> So basically, my question is how I can update MQTT in HA to pick up the new devices?

Did you try reloading the integration? Press the three dots icon in the bottom right corner and choose “Reload”.

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [June 1, 2023, 7:13pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/228 "2023-06-01T19:13:58Z")

</div>

I’m having some issues here, and hope someone’s able to help me out 🙂

1. I’ve edited the config file for HA, but when I restart it I get the following:  

2. If I try to add an integration, I get the following:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a5e11c91fde25ef7f8edf69468df9093fa91b27.png)

As far as I can see, everything should be set. I initially followed this tutorial (before I found this topic): [Homey MQTT Guide til HomeAssistant | Patrick Leisegang](https://leisegang.no/homey-mqtt-guide-til-homeassistant/)

Also, I’m unable to find the three dots to show unused entities, but I guess that could be because everything else is going wrong 😉

I’m running everything as a docker image ([Docker](https://hub.docker.com/r/homeassistant/home-assistant)) with HA 2023.5.4.

---

<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:** [June 1, 2023, 7:19pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/229 "2023-06-01T19:19:31Z")

</div>

You don’t need to edit the HA configuration file, you should enter the MQTT details when adding an integration.

What details did you enter when adding it?

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [June 1, 2023, 7:29pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/230 "2023-06-01T19:29:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/2115327f498f36a3e9e2550439fae95a4370415b.png)

If I telnet to this IP and port the MQTT broker displays it in the logs.

MQTT broker setup:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/0778d32911f5481fd8cc03720f6390a383657cab.png)

MQTT client:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/4/c4f4ff58c6f856f20d7e8f21d9243f6546d62bf9.png)

MQTT hub:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/497949919a66f53fdfc6687882c6bf7ceecdb068.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1dbe121c4b7a8e6cdd5281d2108291db7e4d53ab.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6a4b77014be14f0081d4de9f30490855cc79a447.png)

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [June 1, 2023, 7:55pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/231 "2023-06-01T19:55:35Z")

</div>

@robertklep Now, this is strange - I installed MQTT explorer and was able to connect. THEN HA would receive devices. No other changes were done 🤔

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 1, 2023, 8:07pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/232 "2023-06-01T20:07:21Z")

</div>

Might be related:  
I often had non responsive Homey devices in HA; these custom settings fixed that:

 ![Screenshot_20230526-025712_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7ec38ec6b8518c72394aaa2ea492d9ecb2ab2cde.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:** [June 2, 2023, 5:24am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/233 "2023-06-02T05:24:53Z")

</div>

Try enabling _“Disable User Authentication”_ in the broker. See [this post](https://community.homey.app/t/sprinkler-system-rainbird-what-to-connect/63437/33) and the one following it.

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [June 8, 2023, 10:30am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/234 "2023-06-08T10:30:30Z")

</div>

I’ve tried both the suggestions here, but HA still stops updating. Pressing the broadcast button in the app solves it. Could there be something in the HA MQTT setup that needs changing? I’d guess no, as it starts working as soon as I press broadcast, but…you never know.

MQTT Explorer picks up a lot of messages, so I guess the Homey side is correctly set ut.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/4/b4c0f81fcab8dbc7315c3ac3b023b9fab35c3aa6.png)

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [March 15, 2024, 7:49am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/235 "2024-03-15T07:49:10Z")

</div>

Hello, i am having issues installing a new sensor. I did this in the past but i cant seem to get it working now. I think my mistake is in the topic i use? if i am correct i need to add device “homie discovery” and then use the topic; homie/ ;

The device is an ESP easy unit with Home assustant MQTT ; (Controller IP = Homey IP)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c557f54d362bd42f312b27e6969058b524b5240f.png)  
in MQTT Explorer i find the Unit under the IP of the homey;  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/5/35e133aed3c0a60de575a0ffdf64b9756181395c.png)

The unit ESP/Regenput\_2 is currently running for months like this but now i am not finding any topics whe ni search in the mqtt hub app?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 16, 2024, 2:41am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/236 "2024-03-16T02:41:37Z")

</div>

You don’t have `'homie'` in your topics…

So the topic just reads `ESP_regenput_2`.  
It’s a direct topic under the controller (broker) IP, which you run on Homey.  
When you click in the triangle in front of it, you’ll find the next parts of that topic.  
Like for example `ESP_regenput_2/switch/watermeter`

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [March 19, 2024, 2:57pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/237 "2024-03-19T14:57:51Z")

</div>

Peter,  
I can not find the device. I need to add the ESP\_DieselRood so if correct i just need to search for the Topic ESP\_DieselRood ? Or do i need to specify the exact Switch or sensor?

---

<div class="post-metadata">

**Author:** ![Cuprani](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cuprani/32/3575_2.png) [@Cuprani](https://community.homey.app/u/Cuprani)\
**Post date:** [July 11, 2025, 10:55am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/238 "2025-07-11T10:55:58Z")

</div>

I am trying to post the status of multiple variables to Home Assistant (numbers, strings and boleans). So not from a specific device (that works perfectly through MQTT Hub), but from a Homey Variable.

Setup:  
Homey Pro with MQTT Client and MQTT Hub  
Home Assistant with MQTT server.

Tried a simple flow to post the bolean information for example to a certain topic, but then the entity is not recognized by HA (while visible in my MQTT Explorer).

What is the mandatory requirement for the payload such that HA can recognize it as a device or sensor value?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 11, 2025, 11:32am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/239 "2025-07-11T11:32:41Z")

</div>

In you case, the HA autodiscovery Mqtt topic is not create.  
You only export a single topic.  
So you have to import this topic as a Mqtt entity into HA.  
I don’t know if that possible now via GUI. In the past I created such entities in the yaml config file.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 11, 2025, 12:36pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/240 "2025-07-11T12:36:38Z")

</div>

Yeah I only know you can export it to HA by adding an mqtt.yaml

- At HA, add the line `mqtt: !include mqtt.yaml` to configuration.yaml
- Create a file called mqtt.yaml in the same ‘config’ folder
- to add a Homey variable called “Seizoen”, add this to the mqtt.yaml:

```auto
sensor:
  - name: varhmy_seizoen
    unique_id: 'varhmy_seizoen_mqtt'
    state_topic: 'homey1/variabelen/seizoen'
    icon: 'mdi:eye'
    force_update: true
    ### additional stuff: ###
    #value_template: >
    # {{ value.split(',')[0] }}
    #device_class: 'energy'
    #unit_of_measurement: "kWh"
    

```

- 
  - The ‘name’ and ‘unique\_id’ are just made up by me, you can use your own.  
By adding `_mqtt` suffix at the ‘unique\_id’, I’m sure I always create real unique ID’s from my variable names.

- 
  - The `state_topic` used, should be the same as you use in the Homey MQTT Client flow card

Flow:

 ![Screenshot_20250711_142357_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/13afafc88bcad6544102ab8ff4791826095c7217.jpeg)

HA entity:

 ![Screenshot_20250711_143424_Home Assistant](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5e74636ec5d308160e7b61b7845b3f65f549f4e5.jpeg)

[Previous page](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880.md?page=11)
