# \[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:** 1\
**Showing post:** 152

<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 26, 2020, 1:59pm UTC](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880/152 "2020-06-26T13:59:11Z")

</div>

I installed MQTT client in HA using the integrations section. But there you can’t set special options.  
I uninstalled the Mqtt integration and included the settings in configuration.yaml:

> [@Home Assistant App - Unendliche Möglichkeiten grinning](https://community.homey.app/t/home-assistant-app-unendliche-moglichkeiten/30074/78):
>
> Gerne. blush Du musst die MQTT Konfiguration um " Birth and Last will" erweitern. # MQTT Broker mqtt: broker: 192.168.178.237 port: 1883 client\_id: home-assistant username: !secret mqttbroker\_user password: !secret mqttbroker\_password discovery: true discovery\_prefix: homeassistant birth\_message: topic: 'hass/status' payload: 'online' will\_message: topic: 'hass/status' payload: 'offline' Dann sind auch alle Werte von Homey nach Neustart von hassio verfügb…

```auto
# MQTT Broker
mqtt:
  broker: 192.168.178.237
  port: 1883
  client_id: home-assistant
  username: !secret mqttbroker_user
  password: !secret mqttbroker_password
  discovery: true
  discovery_prefix: homeassistant
  birth_message:
    topic: 'hass/status'
    payload: 'online'
  will_message:
    topic: 'hass/status'
    payload: 'offline'

```

Without the online/offline messages HA won’t get messages after a restarz of HA service.  
With this way of integration I no such problems again.

---

_[View the full topic](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880)._
