# \[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:** 6

<div class="post-metadata">

**Author:** ![Mender](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mender/32/19648_2.png) [@Mender](https://community.homey.app/u/Mender)\
**Post date:** [December 31, 2019, 10:58am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/101 "2019-12-31T10:58:54Z")

</div>

Unfortunately my DS218 does not support Docker - some other way how to set MQTT and Home Assistant on Synology???

Thanks in advance for support and Happy New year 🙂

---

<div class="post-metadata">

**Author:** ![Cyanopsis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cyanopsis/32/17840_2.png) [@Cyanopsis](https://community.homey.app/u/Cyanopsis)\
**Post date:** [January 10, 2020, 8:49am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/102 "2020-01-10T08:49:14Z")

</div>

@HarriedeGroot I have everything set up and working as intended, but I do have two questions which maybe has more to do with HA rather than Homey, but I need to make sure nothing in this integration is conflicting with HA. Hope you have some input.

1. I am trying to get a sensor card in HA to react to a subscribed mqtt topic that is not a part of the homey integration. For testing purposes, I have created a virtual button in Homey that publishes a value to a topic. It works well behind the scenes. According to documentation, I should enter some lines on config.yaml with the topic subscribed.

sensor:

- platform: mqtt  
state\_topic: “homey/test”

How do I turn this to an entity so that I can make a sensor card in HA that reports the value from my virtual device. The reason I’m asking here is that when I look in HA/configurations/integrations/Mqtt (in the UI) I see the homey mqtt devices as icons and the heading “MQTT: configuration.yaml”. However, I don’t see any mention of the mqtt devices from homey in the actual config.yaml file. This is probably completely normal but I’m wondering if there could be some sort of conflict. Getting a sensor card to react to a published topic should be straight forward but I don’t know where to go next.

1. I have a Rituals perfume genie which is working in HA for the on/off topic. The “fill” value sensor is however publishing STRING values (“50-60%”). If I get the above working in question 1, do you know if I can get a HA card to show string values from a mqtt topic?

Hope I make some sort of sense. These questions are probably best asked in a HA forum but it’s worth a shot!

EDIT: scratch question #1. By the power of Sleep the device entity magically showed up this morning after HA/MQTT Broker chewed on in during the night. Very strange but oh well. I’m happy now! Question #2 still stands. Thanks!

EDIT 2: So it seems a sensor entity have no problem in displaying string values! I have no more questions but I leave my post here anyway since there could be others who are interested in the potential of Homey/HA/MQTT

---

<div class="post-metadata">

**Author:** ![Dennis\_Brouwer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_brouwer/32/9661_2.png) [@Dennis\_Brouwer](https://community.homey.app/u/Dennis_Brouwer)\
**Post date:** [February 20, 2020, 10:59am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/103 "2020-02-20T10:59:12Z")

</div>

Can this also be two way? That from HA i can enable certain switches in Homey?

---

<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:** [February 22, 2020, 12:23pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/104 "2020-02-22T12:23:00Z")

</div>

Yes, that is exactly what you can do with this

---

<div class="post-metadata">

**Author:** ![Dennis\_Brouwer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_brouwer/32/9661_2.png) [@Dennis\_Brouwer](https://community.homey.app/u/Dennis_Brouwer)\
**Post date:** [February 22, 2020, 1:16pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/105 "2020-02-22T13:16:12Z")

</div>

Tried that but if I enable a device in HA it doesn’t switch in Homey?

---

<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:** [February 22, 2020, 1:19pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/106 "2020-02-22T13:19:24Z")

</div>

What kind of device are you trying to control? Did you try to restart the MQTT client and MQTT hub app on Homey? Do you have autodiscovery and birth/last will messages enabled both Homey and HA?

---

<div class="post-metadata">

**Author:** ![Erik\_M\_Madsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik_m_madsen/32/18191_2.png) [@Erik\_M\_Madsen](https://community.homey.app/u/Erik_M_Madsen)\
**Post date:** [February 24, 2020, 2:57pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/107 "2020-02-24T14:57:48Z")

</div>

> [@PascalB](#):
>
> birth/last will messages enabled in HA

Where do you do that, been looking for that to enable?  
Thanks in advance

---

<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:** [February 24, 2020, 7:01pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/108 "2020-02-24T19:01:03Z")

</div>

> **[MQTT Birth and Last will](https://www.home-assistant.io/docs/mqtt/birth_will/)**
>
> Instructions on how to setup MQTT birth and last will messages within Home Assistant.

This actually makes MQTT hub on your Homey to resend device states on reboot of HA, so always up to date 👍🏻

---

<div class="post-metadata">

**Author:** ![Erik\_M\_Madsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik_m_madsen/32/18191_2.png) [@Erik\_M\_Madsen](https://community.homey.app/u/Erik_M_Madsen)\
**Post date:** [February 24, 2020, 7:57pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/109 "2020-02-24T19:57:22Z")

</div>

Hmmmmm…need new glasses, have been looking and looking and missed it.  
Thanks 😊

---

<div class="post-metadata">

**Author:** ![Danny\_Mertens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/danny_mertens/32/4247_2.png) [@Danny\_Mertens](https://community.homey.app/u/Danny_Mertens)\
**Post date:** [March 12, 2020, 11:59am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/110 "2020-03-12T11:59:01Z")

</div>

OK, I tried everything but don’t get it to work, probably something stupid from my side 🤪  
But I created a small video, so maybe someone can help me here?

[https://dmertens.stackstorage.com/s/IWeaZQlHDgQxud4](https://dmertens.stackstorage.com/s/IWeaZQlHDgQxud4)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [March 30, 2020, 8:00pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/111 "2020-03-30T20:00:10Z")

</div>

Do you follow the same installation steps in this guide to get devices from HA into Homey?

And are there different settings that has to be made to get it the other way around?

---

<div class="post-metadata">

**Author:** ![RoelG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roelg/32/23347_2.png) [@RoelG](https://community.homey.app/u/RoelG)\
**Post date:** [April 1, 2020, 10:26am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/112 "2020-04-01T10:26:36Z")

</div>

What solved it for me is:  
1.Go to MQTT Hub  
2. Set COMMUNICATION PROTOCOL to Custom  
3. Enable Include class  
4. Disable Include zone  
5. Normalize

I think the last part is the giving the problem. I’ve noticed that the device.id gets screwed-up and is like switch.on whilst it only should be switch. Or simplified, the status of the device must not be in the device ID.

Perhaps this helps someone, I’ve just started setting it up.

---

<div class="post-metadata">

**Author:** ![Ale\_Terpstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ale_terpstra/32/7996_2.png) [@Ale\_Terpstra](https://community.homey.app/u/Ale_Terpstra)\
**Post date:** [April 15, 2020, 12:25pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/113 "2020-04-15T12:25:32Z")

</div>

I’m relative new MQTT so I have a basis question

I would like to see my Homey device in Node-Red using MQTT

In MQTT in node I can only see Homey status information but no devices  
How can I make my Homey device visible in Node -Red

**Setup**

Homey running MQTT Cient, and MQTT cient/

On synolgy NAS I have installed Mosquitto.

On Raspberry Pi : Node-Red

---

<div class="post-metadata">

**Author:** ![SVEN\_STOFFELS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sven_stoffels/32/14438_2.png) [@SVEN\_STOFFELS](https://community.homey.app/u/SVEN_STOFFELS)\
**Post date:** [April 15, 2020, 8:09pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/114 "2020-04-15T20:09:14Z")

</div>

Did you install the hub app on homey?

---

<div class="post-metadata">

**Author:** ![Ale\_Terpstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ale_terpstra/32/7996_2.png) [@Ale\_Terpstra](https://community.homey.app/u/Ale_Terpstra)\
**Post date:** [April 17, 2020, 12:46pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/115 "2020-04-17T12:46:46Z")

</div>

Hi Sven, It seems to work now

---

<div class="post-metadata">

**Author:** ![Zoezoe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zoezoe/32/8386_2.png) [@Zoezoe](https://community.homey.app/u/Zoezoe)\
**Post date:** [April 22, 2020, 12:28pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/116 "2020-04-22T12:28:31Z")

</div>

Hi Community,  
I’m sorry if my question seems redundant but I can’t seem to find (I searched the different MQTT topics) a solution that works for me. My problem is that I can not control my Homey devices from HA. Their status updates in HA when triggered from Homey, but not the other way around. I read that others had the same problem and it seems the problem disappeared magically when rebooting Homey or restarting MQTT Hub/Client. But I had no luck with that.  
My setup:  
Homey v4.1.0  
MQTT Hub v2.1.9  
MQTT Client 2.2.3  
MQTT Broker (Docker on Synology): mosquitto v 1.6.9  
HA (Docker on Synology) v 0.108.5

When I trigger a device from HA, I can see in MQTT explorer a set topic changing to true, but onoff state stays to False.

Anyone can point me to a possible solution?

Thanks!

---

<div class="post-metadata">

**Author:** ![Zoezoe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zoezoe/32/8386_2.png) [@Zoezoe](https://community.homey.app/u/Zoezoe)\
**Post date:** [April 22, 2020, 6:05pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/117 "2020-04-22T18:05:08Z")

</div>

Well… the magic happened here too. After going crazy for a week, reconfiguring, reinstalling, restarting etc. in all kinds of orders, suddenly now it works. The only thing that worries me, is that I absolutely don’t know why.

I should have posted my previous message earlier 😉 The magical Community-genie made my wish come true. 🧞‍♀️

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [May 9, 2020, 8:34am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/118 "2020-05-09T08:34:22Z")

</div>

Great tutorial!

I managed to get it working and in HA I see all my Homey devices. Unfortunately they show no values…

This is what appears in HA:

 ![IMG_20200509_102923](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/885d85fa89633f9b61bf550427b62b27e7497888.jpeg)

I bet it is something small that needs to be done, but I am stuck.

Can any kind soul please help?

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:** [May 9, 2020, 9:05am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/119 "2020-05-09T09:05:12Z")

</div>

You’re looking at the entity editor, which isn’t the place where entity values are shown. For that, you need to open the Overview page.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [May 9, 2020, 9:09am UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/120 "2020-05-09T09:09:32Z")

</div>

Thanks @robertklep

I added some devices to the main screen, but still no data is shown:

 ![Screenshot_2020-05-09-11-09-05-572_com.android.chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/c/0c75886b3f35acdf4bd68ce464fbdeee185650f9.jpeg)

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

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