Browse Source

specify a client id for frigate

blakeblackshear 5 years ago
parent
commit
a770ab7f69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      detect_objects.py

+ 1 - 1
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: