specify a client id for frigate

This commit is contained in:
blakeblackshear 2019-07-13 07:39:12 -05:00 committed by Blake Blackshear
parent 806acaf445
commit a770ab7f69

View File

@ -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: