So, I managed to modify it and get it running properly, big thanks to @vkorn!
If anyone is interested, here is the repository.
This is an example Options configuration:
{
"plain": true,
"ssl": false,
"anonymous": false,
"logins": [
{
"username": "Testuser",
"password": "testpw"
}
],
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"bridges": [
{
"connection": "cloudmqtt",
"address": "cloudmqtt.com_address:port",
"remote_username": "bridge_testuser",
"remote_password": "bridge_testpw",
"clientid": "HomeAssistant",
"try_private": "false",
"start_type": "automatic",
"topic": "# in"
}
]
}
It is possible to create more than one bridge.
Maybe someone can test it and merge it with the official addon (I’m not a programer)?