I am trying to use MQTT in AppDaemon, but as soon as I add the plugin in appdaemon.yaml as follows:
secrets: /config/secrets.yaml
appdaemon:
latitude: 56.79189
longitude: 14.899431
elevation: 2
time_zone: Europe/Amsterdam
plugins:
MQTT:
type: mqtt
namespace: mqtt
client_host: 192.168.1.111
verbose: True
HASS:
type: hass
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:
I get the following error in appdaemons error main log:
2023-05-13 23:59:04.420512 ERROR MQTT: Unable to decode MQTT message, with Traceback: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/appdaemon/plugins/mqtt/mqttplugin.py", line 271, in mqtt_on_message payload = payload.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
I tried with and without some test code in a python app file, but no difference… as soon as I insert the MQTT section in appdaemon.yaml, the error appears.
Any idea what is going on here?