Zrobiłem tak że w pliku konfiguracyjnym zostawiłem tak:
logins: []
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
A w konfiguracji Mqtt w integracjach wykonałem tak:
Niestety nadal mam takie logi:
[16:18:34] INFO: Setup mosquitto configuration
[16:18:34] WARNING: SSL not enabled - No valid certs found!
[16:18:34] INFO: No local user available
[16:18:34] INFO: Initialize system configuration.
[16:18:34] INFO: Initialize Hass.io Add-on services
[16:18:34] INFO: Initialize Home Assistant discovery
[16:18:34] INFO: Start Mosquitto daemon
1612970314: mosquitto version 1.6.3 starting
1612970314: Config loaded from /etc/mosquitto.conf.
1612970314: Loading plugin: /usr/share/mosquitto/auth-plug.so
1612970314: |-- *** auth-plug: startup
1612970314: ├── Username/password checking enabled.
1612970314: ├── TLS-PSK checking enabled.
1612970314: └── Extended authentication not enabled.
1612970314: Opening ipv4 listen socket on port 1883.
1612970314: Opening ipv6 listen socket on port 1883.
1612970314: Opening websockets listen socket on port 1884.
1612970314: Warning: Mosquitto should not be run as root/administrator.
1612970324: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1612970324: New client connected from 172.30.32.1 as auto-F2E215C8-F501-42F0-F0DB-B3BBA0A8FADA (p2, c1, k60, u’homeassistant’).
1612970324: Client auto-F2E215C8-F501-42F0-F0DB-B3BBA0A8FADA disconnected.
1612970324: New connection from 172.30.32.1 on port 1883.
1612970324: New client connected from 172.30.32.1 as 2N85eXA3HZGwbg3WzsBWLF (p2, c1, k60, u’homeassistant’).
1612970443: New connection from 172.30.32.1 on port 1883.
[INFO] found mqtt on Home Assistant
1612970443: New client connected from 172.30.32.1 as 2O8b71HYTPXOy2YRqSxgk7 (p1, c1, k60, u’mqtt’).
1612970443: Client 2O8b71HYTPXOy2YRqSxgk7 disconnected.
1612970462: Socket error on client 2N85eXA3HZGwbg3WzsBWLF, disconnecting.
1612970462: New connection from 172.30.32.1 on port 1883.
1612970462: New client connected from 172.30.32.1 as 7lBJQShGsPdfqQISdKIhCs (p2, c1, k60, u’mqtt’).