Viva! preciso de ajuda com o Mosquitto broker
estou a usar o home assistant assisted e instalei o addon do Mosquitto com o objectivo de integrar facilmente no HA uns sonoff mini (tenho 4, já flashei 2 para tasmota)
já tenho 1 integrado que não flashei mas queria que os sonoff nao fossem à net e funcionasse só localmente
contudo apesar de nao ter erros que encontre, as entidades nao me aparecem, parece-me que nao descobre nada…
no log do addon tenho isto:
[12:07:41] INFO: Setup mosquitto configuration
[12:07:41] WARNING: SSL not enabled - No valid certs found!
[12:07:41] INFO: Found local users inside config
[12:07:42] INFO: Initialize Hass.io Add-on services
[12:07:42] INFO: Initialize Home Assistant discovery
[12:07:42] INFO: Start Mosquitto daemon
1602500862: mosquitto version 1.6.3 starting
1602500862: Config loaded from /etc/mosquitto.conf.
1602500862: Loading plugin: /usr/share/mosquitto/auth-plug.so
1602500862: ├── Username/password checking enabled.
1602500862: ├── TLS-PSK checking enabled.
1602500862: └── Extended authentication not enabled.
1602500862: |-- *** auth-plug: startup
1602500862: Opening ipv4 listen socket on port 1883.
1602500862: Opening ipv6 listen socket on port 1883.
1602500862: Opening websockets listen socket on port 1884.
1602500862: Warning: Mosquitto should not be run as root/administrator.
1602500863: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1602500864: New client connected from 172.30.32.1 as auto-48BCBAAE-89C5-8F73-5F76-69D008CE9FC6 (p2, c1, k60, u’homeassistant’).
1602500869: New connection from 192.168.100.11 on port 1883.
[INFO] found mqtt on local database
1602500870: New client connected from 192.168.100.11 as DVES_4DDF0C (p2, c1, k30, u’mqtt’).
o 192.168.100.11 é o sonoff mini flashado com tasmota, onde configurei na parte de MQTT este broker. o 172.30.32.1 é o home assistant
do lado do HA, no home-assistant.log tenho:
2020-10-12 12:07:44 INFO (Thread-8) [homeassistant.components.mqtt] Connected to MQTT server core-mosquitto:1883 (0)
2020-10-12 12:07:44 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to homeassistant/#, mid: 3
2020-10-12 12:07:46 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on homeassistant/status: ‘online’, mid: 4
2020-10-12 12:07:46 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on homeassistant/status: b’online’
na configuração da integração,
se for a listen for a topic e puser # dá-me isto:
Message 0 received on tele/tasmota_4DDF0C/LWT at 12:24 PM:
Online
QoS: 0 - Retain: true
instalei o tasmota admin como addon e nao tenho problemas em ligar e desligar o sonoff e configura-lo
tb correi o SetOption19 1 na consola do dispositivo
já experimentei criar um user pro MQTT e mete-lo na configuração do addon,
já experimentei meter no configuration.yaml o mqtt: com varias opções diferentes sem sucesso…
já removi os addons todos e instalei o MQTT broker via docker e fiz a integração manualmente
ideias?
obrigado!