While trying to make the addon communicate with the MQTT broker via SSL I found out that I actually need to provide the full chain of CA certs to the python mqtt client.
Maybe this is a specific case for the Letsencrypt certs that I'm using, not sure how to verify that.
Anyway, this can be done by:
mapping /ssl in config.json
adding the option+schema for the file name (config.json and options.json)
adding a call to tls_set(cacerts) right before the call to connect in ip150_mqtt.py
I can open a PR and share my changes if that would be OK.
While trying to make the addon communicate with the MQTT broker via SSL I found out that I actually need to provide the full chain of CA certs to the python mqtt client. Maybe this is a specific case for the Letsencrypt certs that I'm using, not sure how to verify that. Anyway, this can be done by:
I can open a PR and share my changes if that would be OK.