Hi,
I want to connect Pimatic to the MQTT-Server of Victronenergy. But I can’t get a connection to the broker.
There is a post on Github, but it doesn’t work for Pimatic. At the terminal, it works (after enable the keep-alive mechanism) with
mosquitto_sub -v -I myclient_ -c -t 'N/xxx/system/0/Ac/Consumption/Total/Power' -h mqtt.victronenergy.com -u <email> -P <passwd> --cafile venus-ca.crt -p 8883
My Config is:
{
"brokers": [
{
"brokerId": "default",
"clientId": "clientpimatic"
},
{
"brokerId": "victron",
"host": "mqtt.victronenergy.com",
"port": 8883,
"keepalive": 55,
"username": "xxx",
"password": "xxx",
"certPath": "/home/xxx/venus-ca.pem",
"clientId": "myclient_"
}
],
"plugin": "mqtt",
"active": true
}
The pem-file was created by these two lines:
openssl x509 -in venus-ca.crt -out venus-ca.der -outform DER
openssl x509 -in venus-ca.der -inform DER -out venus-ca.pem -outform PEM
Does anyone sees the mistake in the config or at my workaround?
Thanks,
Hannes