diff --git a/doorstate b/doorstate index 134861a..02134cc 100755 --- a/doorstate +++ b/doorstate @@ -149,6 +149,7 @@ global mqtt_connected mqtt_connected = False mqttc.loop_start() +publish_doorstate() while True: # Synchronous loop: GPIO