Closed paulcombuse closed 1 year ago
Please try following configuration for the MQTT bridge:
"Incoming": [
{
"Pattern": "#",
"LocalPrefix": "",
"RemotePrefix": "homematic/send/",
"QoS": 2
}
],
"Outgoing": [
{
"Pattern": "#",
"LocalPrefix": "",
"RemotePrefix": "homematic/recv/",
"QoS": 2
}
]
The last three log messages are OK. They refer to the network server ports of the CCU-Jack. They have nothing to do with the MQTT bridge.
@mdzio Thanks - seems to work now.
Thanks for a great tool first of all! Though, it currently doesn't work for me having it installed as addon on a RPi3B+ with current raspmatic_rpi3 (3.67.10.20230114). My MQTT server runs on a RPi4 with Home Assistant 2023.1.7 on HASSIO 9.4 (192.168.178.35) and is successfully used by a couple of other clients in my network. I use MQTT Explorer to keep track of the topics and messages. To configure the MQTT client of your addon I stopped CCU-JACK in the described way (
/usr/local/etc/config/rc.d/ccu-jack stop
), edited the config file as follows and started/initialized the addon afterwards.As CCU-JACK and RaspberryMatic are running on the same device I defined 127.0.0.1 for both of them in the config file. Ports 1883, 8883, 21221, 2122, 2123 are opened in the Raspberrymatic Firewall as well as the MQTT broker IP 192.168.178.35 and the 127.0.0.1 (maybe for the latter it is not necessary?). Now looking in MQTT Explorer I do not see any new topic called "homematic" - what I would have expected. Additionally I see in the logs of CCU-JACK the following:
Now, that's where I assume that there is some kind of bug or wrong setup somewhere, as I would have expected something like tcp://192.168.178.35:1883 which is combined in your code from 'tcp://' + MQTT address + ":" + MQTT port.
Could you take a look at my config file and give me a hint what I am doing wrong or if there really is some kind of bug in the addon code, please? I really appreciate your efforts. Many thanks!