Reinstalei o hassio do zero,
As mensagens do broker após a instalação e antes de eu ligar os SonOff são as seguintes:
[INFO] Setup mosquitto configuration
[WARN] SSL not enabled - No valid certs found!
[INFO] No local user available
[INFO] Initialize system configuration.
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1554462103: mosquitto version 1.5.6 starting
1554462103: Config loaded from /etc/mosquitto.conf.
1554462103: |-- *** auth-plug: startup
1554462103: |-- ** Configured order: http
1554462103: |-- with_tls=false
1554462103: Opening ipv4 listen socket on port 1883.
1554462103: |-- getuser_uri=/login
1554462103: Opening ipv6 listen socket on port 1883.
1554462103: |-- superuser_uri=/superuser
1554462103: |-- aclcheck_uri=/acl
1554462103: |-- getuser_params=(null)
1554462103: |-- superuser_params=(null)
1554462103: |-- aclcheck_params=(null)
1554462103: |-- retry_count=3
1554462103: Opening websockets listen socket on port 1884.
1554462103: Warning: Mosquitto should not be run as root/administrator.
Conectei um módulo SonOff e monitorei a porta serial. Obtive isto:
INFO: Connecting to wifi-iead
...................
INFO: WiFi connected
INFO: IP address: 192.168.15.4
INFO: Attempting MQTT connection...
ERROR: failed, rc=-2DEBUG: try again in 5 seconds
INFO: Attempting MQTT connection...
aparentemente o módulo não consegue se comunicar com o broker.
No mosquito instalado no HA monitorando a saída, obtive isto:
1554463312: |-- getuser(wilson) AUTHENTICATED=0 by none
1554463312: Socket error on client <unknown>, disconnecting.
1554463317: New connection from 192.168.15.4 on port 1883.
1554463317: |-- mosquitto_auth_unpwd_check(wilson)
1554463317: |-- ** checking backend http 1554463317: |-- url=http://127.0.0.1:8080/login 1554463317: |-- data=username=wilson&password=senha_mqtt_gigante&topic=&acc=-1&clientid= [ERROR] Auth error with wilson
enfim, antes funcionava, agora depois do sistema ficar parado por um tempo, não funciona mais e ninguém mexeu aqui.
???
aparentemente o broker não esta conectando nada.