# \[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:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 6:03pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/181 "2021-05-19T18:03:45Z")

</div>

No one?  
@HarriedeGroot Is this something you can clearify for me?  
So I know how it should be addressed…. By Duux or in another way…

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 6:18pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/182 "2021-05-19T18:18:47Z")

</div>

Whats the capability definition as displayed in the developers dashboard?  
[https://tools.developer.homey.app/tools/devices](https://tools.developer.homey.app/tools/devices)

It needs to be **setable** to be able to control it. This needs to be implemented by the Duux smartfan app.

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 6:40pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/183 "2021-05-19T18:40:55Z")

</div>

Wow, you are as quick as always! Thanks once again for your reply!  
I believe Duux has to implement it then?  
See below.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/d/ade538c22aa9b22dd01cc13188066ee8372ceda2.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/98358fde5ce4ccffd5cdee2039c3edd8a8ca2d67.jpeg)

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 6:49pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/184 "2021-05-19T18:49:41Z")

</div>

Hmm, looks like the fan speed is editable from there…  
Are you able to control the fan from de developer tools?

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 6:51pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/185 "2021-05-19T18:51:11Z")

</div>

Can you show me the homeassistant /config for the fan (mqtt HA discovery topic)?  
And is there an HA ` input_number` available for the fan?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 7:16pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/186 "2021-05-19T19:16:40Z")

</div>

Yes, I have now discovered that the fan speed is settable from the developer site.

> [@HarriedeGroot](#):
>
> Can you show me the homeassistant /config for the fan (mqtt HA discovery topic)?

I hope this is what mean (sorry if not…)?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e9cc7a3a9c9811d9353420282398639e6bceec66.jpeg)

> [@HarriedeGroot](#):
>
> And is there an HA ` input_number` available for the fan?

Eeeehhh….? 😉 Should it be in the screenshot above? If so; then there isn’t…

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 8:39pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/187 "2021-05-19T20:39:07Z")

</div>

There is only a state\_topic.  
Shouldn’t there also be a command\_topic?

Did you check topic: homeassistant/input\_number/…

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 8:57pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/188 "2021-05-19T20:57:34Z")

</div>

Should I find that on the same page at the HA entity?  
I see no “command” there.  
Can you direct me where I should be able to find it?

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 9:03pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/189 "2021-05-19T21:03:54Z")

</div>

Try mqtt explorer?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 9:16pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/190 "2021-05-19T21:16:33Z")

</div>

Found that one too, I hope… 😉 Hope this helps?

 ![MQTT_Explorer_q4xJ0p8oeT](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/572e4c5d489189c1835281aabd4726fbd9f35a36.png)  
(cannot scroll to the right, but if it helps, I would be more than happy so send more screenshots)

I see command\_topics for onoff and horizontal- & vertical mode, but not for fan-speed.  
But that one is registered as a sensor, the other ones are switches, so that’s the problem perhaps?

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 19, 2021, 10:44pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/191 "2021-05-19T22:44:09Z")

</div>

Dug a little deeper. It’s probably a shortcoming of the MQTT Hub. The homey device is clearly labeled as a ‘fan’ (device class; first screenshot).

The hub should translate this into a [HA MQTT fan config](https://www.home-assistant.io/integrations/fan.mqtt/). But it’s provided as a [sensor](https://www.home-assistant.io/integrations/sensor.mqtt/), which is ready only.

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 19, 2021, 10:56pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/192 "2021-05-19T22:56:18Z")

</div>

Ah, I see.  
Thanks for the effort!

Is it something you can easily fix?

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 20, 2021, 11:21am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/193 "2021-05-20T11:21:05Z")

</div>

Snelle oplossing is om zelf een mqtt fan toe te voegen aan de HA yaml config. En daarbij even naar de juiste topics wijzen.

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 20, 2021, 11:35am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/194 "2021-05-20T11:35:06Z")

</div>

If I knew how, that probably would be the fastest way… 🙂  
But (un)fortunately the hot weather hasn’t arrived yet; so is this something that will/can be corrected in a future update of the MQTT Hub? No hurry of course.

---

<div class="post-metadata">

**Author:** ![marcel\_ridder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ridder/32/3771_2.png) [@marcel\_ridder](https://community.homey.app/u/marcel_ridder)\
**Post date:** [June 8, 2021, 8:22pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/195 "2021-06-08T20:22:40Z")

</div>

i’m really new to home assistant and try to understand everything, and read a lot of information.  
Is it possible to do a step by step for me where i put information in the apps?

I have Homey, and installed the hub, with HAD set to ON, the rest is by default good i thought.  
Then installed on Homey MQTT client, IP adres from homey or HA? Port 1883. All other things are greyed. Username/Wachtwoord ? from which ? home or ha, or can i make it my self?  
Then installed MQTT broker port 1883, rest default greyed, and press start broker

And then the part from HA on a raspberry pi, installed the MQTT (purple color icon), everything automatic, but when i modify its nog the same as home. What must i fill in : ip adres from homey/HA ? Same username/wachtwoord i used with homey apps?  
Or install another app in HA

Sorry i read to much information. Who can put me on the right way with the info i need?

---

<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:** [June 8, 2021, 8:43pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/196 "2021-06-08T20:43:27Z")

</div>

- The MQTT broker is the central instance for MQTT message exchange. HA and Homey-MQTT-Client must connect to the broker
- Install MQTT broker (e.g. on Homey with Homey App MQTT-broker).
- In HA, install the MQTT integration (HA-MQTT client), connect to the broker (Homey-IP, port 1883).
- In MQTT client app (Homey), connect to the broker (Homey-IP, port 1883)
- Install MQTT Hub on Homey, go to app settings, activate the hub, start broadcast.
- You should see the Homey devices as sensors/switch/light… in HA under settings/entities.

To check the broker data you could install a MQTT client like [http://mqtt-explorer.com/](http://mqtt-explorer.com/)

---

<div class="post-metadata">

**Author:** ![marcel\_ridder](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ridder/32/3771_2.png) [@marcel\_ridder](https://community.homey.app/u/marcel_ridder)\
**Post date:** [June 8, 2021, 9:11pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/197 "2021-06-08T21:11:50Z")

</div>

thanx, for the info. it is working now. great!!!

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [June 11, 2021, 2:07pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/198 "2021-06-11T14:07:28Z")

</div>

How did you get all the nice items? like the plex thingy, and the groups for the lights?

---

<div class="post-metadata">

**Author:** ![PascalB](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@PascalB](https://community.homey.app/u/PascalB)\
**Post date:** [June 11, 2021, 5:58pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/199 "2021-06-11T17:58:50Z")

</div>

> **[System Monitoring - How does your look?](https://community.home-assistant.io/t/system-monitoring-how-does-your-look/109713)**
>
> Hey Guys, I was wondering how you guys have created your card with the System Monitoring. I’ve been trying to put some stuff together, but I just don’t get satisfied with the look. So I was hoping, if you could share your Lovelace cards, to...

Check here for some inspiration!

---

<div class="post-metadata">

**Author:** ![9ixxerlee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/9ixxerlee/32/34726_2.png) [@9ixxerlee](https://community.homey.app/u/9ixxerlee)\
**Post date:** [November 30, 2021, 3:53am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/200 "2021-11-30T03:53:51Z")

</div>

Hi guys,  
Need some guidance.  
Due to some issue I just cannot get broadlink rmpro to learn the rf code from homey.

Hence I tried to home assistant to learn the code and it is successful.

So I am trying now to use a virtual Button from homey and create an automation via home assistant to send the rf command.

I tested the button it responsed both ways via homey and HA with a simple send push notifications flow from homey.

So create an automation in HA  
Like  
Device - virtual Button turn on  
Send broadlink rf command…device

It works when testing action but when trying actual trigger from virtual Button, the entire automation does not work.

So what did I do wrong? I am very new to HA.

Or is that a way I can trigger the HA send command via homey mqtt app?

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

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