From a770ab7f69786867e258130bc8a27441370287ef Mon Sep 17 00:00:00 2001 From: blakeblackshear Date: Sat, 13 Jul 2019 07:39:12 -0500 Subject: [PATCH] specify a client id for frigate --- detect_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect_objects.py b/detect_objects.py index 2c7a4c420..a3dfb2215 100644 --- a/detect_objects.py +++ b/detect_objects.py @@ -36,7 +36,7 @@ def main(): print ("Unable to connect to MQTT: Connection refused. Error code: " + str(rc)) # publish a message to signal that the service is running client.publish(MQTT_TOPIC_PREFIX+'/available', 'online', retain=True) - client = mqtt.Client() + client = mqtt.Client(client_id="frigate") client.on_connect = on_connect client.will_set(MQTT_TOPIC_PREFIX+'/available', payload='offline', qos=1, retain=True) if not MQTT_USER is None: