Enable MQTT Plugin
If we want to use the mqtt
integration or the listen_to: mqtt
from z2m
integration as well as the Z2MLightController
, we will need to activate the MQTT Plugin on the AppDaemon configuration (normally located in /addon_configs/a0d7b954_appdaemon/appdaemon.yaml
). We will need the add the following highlighted section in that file:
---
secrets: /homeassistant/secrets.yaml
appdaemon:
latitude: X.XXXXXXX
longitude: X.XXXXXXX
elevation: XXXX
time_zone: XXXXXXXX
missing_app_warnings: 0 #
app_dir: /homeassistant/appdaemon/apps
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt # This is important
client_host: host #
client_user: XXXXX #
client_password: XXXXX
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:
Then you can just restart the AppDaemon addon/server.