Setup
Pi 1
Raspberrymatic 3.65.6.20220723
CCU-Jack 2.4.0 als Addon installiert und in der CCU folgende Portfreigaben eingerichtet: 2121; 2122; 1883; 8883
Pi 2
Homebridge 1.5.0
Homebridge UniFi Protect 5.5.4
____________________________________
Hallo in die Runde,
ich möchte erreichen, dass die von den Unifi Kameras erkannten "Homekit"-Bewegungen via MQTT zur weiteren Verarbeitung an die CCU übermittelt werden. Dazu habe ich zunächst im Homebridge Unifi Protect Plugin gemäß der Anleitung folgende MQTT Einstellungen vorgenommen:
Code: Alles auswählen
"MQTT Broker URL": mqtt://192.168.1.10:1883
Code: Alles auswählen
"MQTT Base Topic": unifi/protect
Code: Alles auswählen
[17/08/2022, 09:28:49] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Connected to MQTT broker: mqtt://192.168.1.10:1883 (topic: unifi/protect).
Das Virtuelle Gerät erschien im Posteingang und wieder gemäß der Anleitung des Homebridge Plugins habe folgende Parameter in dem virtuellen Gerät der CCU angegeben:
Code: Alles auswählen
SWITCH|TOPIC: unifi/protect/MAC-ADRESSE-DER-UNIFI-CAM/motion
SWITCH|RETAIN: OFF
SWITCH|ON_PAYLOAD: unifi/protect/MAC-ADRESSE-DER-UNIFI-CAM/motion/true
SWITCH|OFF_PAYLOAD: unifi/protect/MAC-ADRESSE-DER-UNIFI-CAM/motion/false
In der CCU-Jack Diagnose habe ich mehrere Einträge mit
Code: Alles auswählen
WARNING xmlrpc-server Sending error response to 127.0.0.1:12345: Device not found:
(die Zahl "12345" ist jedoch mit jedem Eintrag eine andere..) und stehe etwas ratlos davor.
Fragen in diesem Zusammenhang:
- Wie/wo kann ich ggf. sehen, ob ein MQTT "Befehl" auch tatsächlich ankommt?
- Liegt es womöglich daran, dass der Virtuelle Schaltaktor etwas anderes als "true" oder "false" als Payload erwartet?
- Wo kann ich sonst noch nach möglichen Fehlern suchen?
Vielen Dank im Voraus für die Unterstützung!
EDIT:
Gerade hat eine Kamera eine Bewegung erkannt, dies führte zu 3 Meldungen in der CCU-Jack Diagnose:
Code: Alles auswählen
2022-08-17 11:57:21 WARNING mqtt (21/mqttjs_5f9e056c) Error peeking next message: bufio: buffer full
2022-08-17 11:56:00 WARNING mqtt (20/mqttjs_5f9e056c) Error peeking next message: bufio: buffer full
2022-08-17 11:55:00 WARNING mqtt (19/mqttjs_5f9e056c) Error peeking next message: bufio: buffer full
Code: Alles auswählen
[17/08/2022, 11:55:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS] MQTT Broker: Connection reset (url: mqtt://192.168.1.10:1883). Will retry again in 1 minute.
[17/08/2022, 11:55:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Disconnected from MQTT broker: mqtt://192.168.1.10:1883.
[17/08/2022, 11:56:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Connected to MQTT broker: mqtt://192.168.1.10:1883 (topic: unifi/protect).
[17/08/2022, 11:56:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS] MQTT Broker: Connection reset (url: mqtt://192.168.1.10:1883). Will retry again in 1 minute.
[17/08/2022, 11:56:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Disconnected from MQTT broker: mqtt://192.168.1.10:1883.
[17/08/2022, 11:57:00] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Connected to MQTT broker: mqtt://192.168.1.10:1883 (topic: unifi/protect).
[17/08/2022, 11:57:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS] MQTT Broker: Connection reset (url: mqtt://192.168.1.10:1883). Will retry again in 1 minute.
[17/08/2022, 11:57:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Disconnected from MQTT broker: mqtt://192.168.1.10:1883.
[17/08/2022, 11:58:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Connected to MQTT broker: mqtt://192.168.1.10:1883 (topic: unifi/protect).
[17/08/2022, 11:58:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS] MQTT Broker: Connection reset (url: mqtt://192.168.1.10:1883). Will retry again in 1 minute.
[17/08/2022, 11:58:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Disconnected from MQTT broker: mqtt://192.168.1.10:1883.
[17/08/2022, 11:59:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Connected to MQTT broker: mqtt://192.168.1.10:1883 (topic: unifi/protect).
[17/08/2022, 11:59:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS] MQTT Broker: Connection reset (url: mqtt://192.168.1.10:1883). Will retry again in 1 minute.
[17/08/2022, 11:59:21] [UniFi Protect] Cloud-Key [UCK-G2-PLUS]: Disconnected from MQTT broker: mqtt://192.168.1.10:1883.