A while ago I installed mosquitto with the hassbian script
The installation went fine and the integration with HASS and owntracks works like a charm. So far so good.
Because I want to play with the android tasker app and the mqtt plugin I tried to start mosquitto. I then get the following error:
[email protected]:~ $ mosquitto 1529048526: mosquitto version 1.4.15 (build date Sat, 07 Apr 2018 11:13:41 +0100) starting 1529048526: Using default config. 1529048526: Opening ipv4 listen socket on port 1883. 1529048526: Error: Address already in use
I figured out that I should edit etc/systemd/system/ [email protected] However when I change it and reboot the pi, I can start mosquitto but Hass give me an mqqt installation error. When I restart Hass the mqtt errors are gone but I then the “adress already in use” error is back again
Does anyone know how to solve this problem?
My configs look like:
mqtt: broker: 192.168.1.120 port: 1883 client_id: home-assistant username: mosquitto password: !secret mosquito_password
[Unit] Description=Home Assistant for %i After=network.target mosquitto.service influxdb.service [Service] Type=simple User=%i ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant" [Install] WantedBy=multi-user.target
# Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /var/run/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d
# Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /var/run/mosquitto.pid persistence true persistence_file mosquitto.db persistence_location /var/lib/mosquitto/ user mosquitto password_file /etc/mosquitto/pwfile allow_anonymous false connection_messages true log_dest topic log_dest syslog log_dest stdout log_dest topic log_type error log_type warning log_type notice log_type information log_timestamp true