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
/config/appdaemon/appdaemon.yaml). We will need the add the following highlighted section in that file:
--- secrets: /config/secrets.yaml appdaemon: latitude: X.XXXXXXX longitude: X.XXXXXXX elevation: XXXX time_zone: XXXXXXXX missing_app_warnings: 0 # (1) plugins: HASS: type: hass MQTT: type: mqtt namespace: mqtt # This is important client_host: host # (2) client_user: XXXXX # (3) client_password: XXXXX http: url: http://127.0.0.1:5050 admin: api: hadashboard:
- Extra tip: you can add
missing_app_warningsif you don't want any warning spam from ControllerX when starting AppDaemon.
- This is the host without indicating the port (e.g. 192.168.1.10).
- You should be able to get user and password from MQTT broker.
Then you can just restart the AppDaemon addon/server.