I am attempting to setup IOT Link to view the stats of 3 systems I have on my network. My setup consist of running Home Assistant in a VM on Windows 10. I have install the IOT executable and verified the service is running with no issues. I have the Mosquitto integration configured as well with the following info:
Broker: core-mosquitto
Port: 1883
Username: Mqtt
Password: Password
MQTT Options set as default including Network Discovery being enabled.
In Supervisor, MQTT is configured with the following info:
logins: []
customize:
active: true
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
I am not sure if my issue is with the credentials or not. I created a user in HA:
Username: Mqtt
Password: Password
The configuration.yaml file on the system (IOT Link in Program Data) is configured as well:
credentials:
username: mqtt
password: password
########################################################################
TCP Connection Settings
########################################################################
tcp:
enabled: true
hostname: 192.168.45.131
port: 1883
secure: false
tlsConfig:
allowUntrustedCertificates: false
ignoreCertificateChainErrors: false
ignoreCertificateRevocationErrors: false
caCertificate:
clientCertificate:
clientCertificatePassword:
I may be getting caught up as well on the info for my broker installation. The IP for the system that host the VM is 192.168.45.39. The IP for the VM is 192.168.45.131. I have HA accessible through Nginx Proxy Manager. The hostname of my system is SNORGESERVER. I have entered the IP address of both and the hostname into the location for the hostname under Tcp in the configuration.yaml. I also tried core-mosquitto in that location as well. Even the name of my HA instance (ex. https://HA web address)
The log from the Supervisor is as follows:
[s6-init] making user provided files available at /var/run/s6/etcâŚexited 0.
[s6-init] ensuring user provided files have correct permsâŚexited 0.
[fix-attrs.d] applying ownership & permissions fixesâŚ
[fix-attrs.d] done.
[cont-init.d] executing container initialization scriptsâŚ
[cont-init.d] mosquitto.sh: executingâŚ
[08:47:46] INFO: Certificates found: SSL is available
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executingâŚ
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[08:47:47] INFO: Starting NGINX for authentication handlingâŚ
[services.d] done.
[08:47:47] INFO: Starting mosquitto MQTT brokerâŚ
1622468867: Loading config file /share/mosquitto/acl.conf
1622468867: mosquitto version 1.6.12 starting
1622468868: |-- *** auth-plug: startup
[08:47:48] INFO: Successfully send discovery information to Home Assistant.
[08:47:49] INFO: Successfully send service information to the Supervisor.
1622468867: Config loaded from /etc/mosquitto/mosquitto.conf.
1622468867: Loading plugin: /usr/share/mosquitto/auth-plug.so
1622468868: âââ Username/password checking enabled.
1622468868: âââ TLS-PSK checking enabled.
1622468868: âââ Extended authentication not enabled.
1622468868: Opening ipv4 listen socket on port 1883.
1622468868: Opening ipv6 listen socket on port 1883.
1622468868: Opening websockets listen socket on port 1884.
1622468868: Opening ipv4 listen socket on port 8883.
1622468868: Opening ipv6 listen socket on port 8883.
1622468868: Opening websockets listen socket on port 8884.
1622468868: Warning: Mosquitto should not be run as root/administrator.
1622468868: mosquitto version 1.6.12 running
1622468868: New connection from 127.0.0.1 on port 1883.
1622468868: Socket error on client , disconnecting.
1622470254: New connection from 172.30.32.1 on port 1883.
{âresultâ: âokâ, âdataâ: {}}1622470258: New client connected from 172.30.32.1 as 7eokY3rCZZAMky8ErwyxI6 (p2, c1, k60, uâMqttâ).
1622470668: Saving in-memory database to /data/mosquitto.db.
1622472469: Saving in-memory database to /data/mosquitto.db.
1622474270: Saving in-memory database to /data/mosquitto.db.
1622474410: New connection from 192.168.45.39 on port 1883.
{âresultâ: âokâ, âdataâ: {}}1622474410: New client connected from 192.168.45.39 as SNORGESERVER (p2, c1, k60, uâmqttâ).
1622474459: Socket error on client 7eokY3rCZZAMky8ErwyxI6, disconnecting.
1622474472: New connection from 172.30.32.1 on port 1883.
{âresultâ: âokâ, âdataâ: {}}1622474476: New client connected from 172.30.32.1 as 6CHQbdqaKeOzobv99dg4A6 (p2, c1, k60, uâMqttâ).
1622476071: Saving in-memory database to /data/mosquitto.db.
1622477872: Saving in-memory database to /data/mosquitto.db.
1622479673: Saving in-memory database to /data/mosquitto.db.
1622480966: New connection from 172.30.32.1 on port 1883.
{âresultâ: âokâ, âdataâ: {}}1622480966: New client connected from 172.30.32.1 as 2gcZBmhl46irWD3XsQ7N9O (p1, c1, k60, uâMqttâ).
The log from IOT Link shows:
[GATSON\SNORGESERVER][2021-05-31 10:19:58 -05:00][INFO][IOTLinkService.Service.MQTT.MQTTClient]: MQTTClient::Disconnect(True) - Trying to disconnect from broker: tcp://core-mosquitto:1883.
[GATSON\SNORGESERVER][2021-05-31 10:19:58 -05:00][INFO][IOTLinkService.Service.MQTT.MQTTClient]: MQTTClient::Connect() - Trying to connect to broker: tcp://core-mosquitto:1883.
[GATSON\SNORGESERVER][2021-05-31 10:19:58 -05:00][SYSTEM][IOTLinkService.Service.MQTT.MQTTClient]: ALL YOUR MQTT TOPICS WILL START WITH iotlink/gatson/snorgeserver/
[GATSON\SNORGESERVER][2021-05-31 10:20:00 -05:00][INFO][IOTLinkService.Service.MQTT.MQTTClient]: MQTTClient::OnDisconnectedHandler() - MQTT Disconnected
[GATSON\SNORGESERVER][2021-05-31 10:20:08 -05:00][WARNING][IOTLinkService.Service.MQTT.MQTTClientManager]: MQTTClientManager::VerifyConnection() - MQTT Connection Bro
Regardless of the broker, I continue to get the same message. I have configured ACL as well and placed the acl.conf and accesscontrollist in /usr/share/hassio/share/mosquitto using Samba share. At this point, I feel like Iâm spinning my wheels and going no where. I am looking for any insight, as every entity (IOT Link related) simply shows unavailable. Thank you in advance!