Page 1 of 1

MQTT in Domoitcz 4.9700.

Posted: Monday 29 October 2018 22:35
by johan9610
Hello,

I've tried everything tot get Mosquitto to be active at after reboot Domoticz.
The basic installatie from domoticz doesn't work, i've to activate "mosquitto" manual true puuty, of mosquitto -d, so i can logout from putty.
I read about de config file from mosquitto.conf (in 2 different dir's) but in the initial installatiion there is no mention about this.
I changed some options in this file from all info i could get. (f.i: pid_file /var/run/mosquitto.pid)
But initial there isn't a pid file? So why isn't this in de domoticz manual?
What can i do, is it so difficult to have mosquitto service active after a reboot of my rpi?

I've on Sonoff switch configured and flashed, i can put it on/off via the website. Ip and ports works fine.
When ik manual start "mosquitto" the switch works fine.

Who can help me?

Re: MQTT in Domoitcz 4.9700.

Posted: Thursday 22 November 2018 22:13
by bjacobse
I think you need to set service, enable service and start service

Enable the service

Code: Select all

sudo systemctl enable mosquitto.service
taken from here:
https://xperimentia.com/2015/08/20/inst ... ebsockets/