pgershon wrote:Minor oints I think:
1) When Indigo starts up after rebooting my system, my device MQTT Broker Connector comes up red. I find that be reloading the MQTT Connector plugin, this fixes itself. Not sure why I need to do this but its been repeated 5 or 6 times now.
2) At random other time, it seems like the MQTT connections to the broker are not going through, even though the MQTT broker plugin says its running. Reloading the MQTT broker plugin fixes this issue. There is nothing in the logs to indicate there was a problem, but my lights simply did not turn on or off when the system command was issued and log says relay went on or off. Looking at MQTT explorer I see broker not functioning properly, and as I said, reloading broker plugin is a fix. I am not sure what initiates this issue when it occurs.
1) I have also seen some cases where the broker device does not correctly reconnect to my broker. Mine is independent from Indigo and runs on a separate system. I think this affects you much more because your Broker is being supplied by the IndigoMqttBroker plugin. Upon startup, your Broker device is attempting to connect to the Broker, which most likely hasn't fully started up. I took a glance at the MQTTConnector code and I didn't see any automatic reconnect system (this might be in the Python MQTT client library).
You might need to take this to FlyingDiver for a closer look (these are his awesome plugins):
viewforum.php?f=316A temporary solution would be to create a trigger on Server Startup with a delayed (60 seconds?) Server Action of Restart Plugin. You could automate the restart required for the Connector plugin a minute or so after the server starts to give the MQTT plugin time to start.
2) Again, I use an external broker and this appears to be an issue with the broker itself since you say "Looking at MQTT explorer I see broker not functioning properly". I am pretty sure FlyingDiver is exposing an existing Python implementation of the broker protocol, so I'm guessing the issue could lie there somewhere. Are you ever seeing any "ServerCommunicationError" messages in the indigo logs? Unfortunately it sounds like this isn't something you can easily reproduce.