Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with configuration of MQTT
#1
Hi all,

I just recently installed SIP. Everything is working as expected. As I planned to integrate SIP (or at least few states) into my home automation system (ioBroker) I installed paho-mqtt, the base MQTT plugin and MQTT Zones plugin.
After restarting SIP, I entered all details for MQTT. The MQTT broker is running on a separate Pi...But somehow it is not connecting to the Broker.

Can someone describe the configuration? What is wrong with my setup? Where can I find the log?


Thanks in advance.
Reply
#2
I have exactly the same problem. Did you found a solution?
Thanks.
Reply
#3
Make sure to start SIP after the network has started and the broker is running. If SIP is started too soon it will not/never connect.

Some time ago I changed the plugins to retry/reconnect after the connection is/was lost to the broker and although it works fine, I'm not too happy with my code so I will not issue a pull request very soon. So for now the startup order is important.

--Gerard
Reply
#4
Well it was a permission problem in my case. I modified the script to run the service as root and everything works now.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)