petbos
I don’t understand what you mean, if you’re posting the console of the sonoff device how can you see the mqtt starting with ha?
What should I look for in your log, I’m still learning to interpret the logs
anyway this is the system log after I restarted it:
19-03-28 16:17:22 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/services/homeassistant/restart access from core_configurator
19-03-28 16:17:23 INFO (SyncWorker_2) [hassio.docker] Run command ‘python3 -m homeassistant -c /config --script check_config’ on homeassistant/raspberrypi-homeassistant
19-03-28 16:20:17 INFO (MainThread) [hassio.homeassistant] Home Assistant config is valid
19-03-28 16:20:17 INFO (SyncWorker_4) [hassio.docker.interface] Stop homeassistant/raspberrypi-homeassistant Docker application
19-03-28 16:20:29 INFO (SyncWorker_4) [hassio.docker.interface] Clean homeassistant/raspberrypi-homeassistant Docker application
19-03-28 16:20:52 INFO (SyncWorker_3) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi-homeassistant with version 0.89.2
19-03-28 16:23:50 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-03-28 16:33:25 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-03-28 16:33:32 INFO (SyncWorker_1) [hassio.docker.interface] Update Docker homeassistant/armhf-addon-ssh:5.2 to homeassistant/armhf-addon-ssh:5.3
19-03-28 16:33:32 INFO (SyncWorker_1) [hassio.docker.interface] Pull image homeassistant/armhf-addon-ssh tag 5.3.
19-03-28 16:33:47 INFO (SyncWorker_1) [hassio.docker.interface] Tag image homeassistant/armhf-addon-ssh with version 5.3 as latest
19-03-28 16:33:47 INFO (SyncWorker_1) [hassio.docker.interface] Clean homeassistant/armhf-addon-ssh Docker application
19-03-28 16:33:48 INFO (SyncWorker_1) [hassio.docker.interface] Cleanup Docker images: [‘homeassistant/armhf-addon-ssh:5.2’]
19-03-28 16:34:26 INFO (SyncWorker_1) [hassio.docker.addon] Start Docker add-on homeassistant/armhf-addon-ssh with version 5.3
This is the log from mosquitto:
1553790407: |-- url=http://127.0.0.1:8080/superuser 1553790407: |-- data=username=mqtt_user&password=&topic=&acc=-1&clientid= 1553790407: |-- aclcheck(mqtt_user, tele/Sonoff/SENSOR, 2) SUPERUSER=Y by http 1553790407: |-- Cached [6D594FE7DEB937925F406096B51F378874A51DDB] for (client id not available,mqtt_user,2) 1553790707: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/Sonoff/STATE, MOSQ_ACL_WRITE) 1553790707: |-- aclcheck(mqtt_user, tele/Sonoff/STATE, 2) CACHEDAUTH: 0 1553790707: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/Sonoff/SENSOR, MOSQ_ACL_WRITE) 1553790707: |-- aclcheck(mqtt_user, tele/Sonoff/SENSOR, 2) CACHEDAUTH: 0 1553791007: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/Sonoff/STATE, MOSQ_ACL_WRITE) 1553791007: |-- Expired [85E605B9FBD57B59CAC9062A8409F9905B6E7638] for (client id not available,mqtt_user,2) 1553791007: |-- url=http://127.0.0.1:8080/superuser 1553791007: |-- data=username=mqtt_user&password=&topic=&acc=-1&clientid= 1553791007: |-- aclcheck(mqtt_user, tele/Sonoff/STATE, 2) SUPERUSER=Y by http 1553791007: |-- Cached [85E605B9FBD57B59CAC9062A8409F9905B6E7638] for (client id not available,mqtt_user,2) 1553791007: |-- Cleanup [6D594FE7DEB937925F406096B51F378874A51DDB] 1553791007: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/Sonoff/SENSOR, MOSQ_ACL_WRITE) 1553791007: |-- url=http://127.0.0.1:8080/superuser 1553791007: |-- data=username=mqtt_user&password=&topic=&acc=-1&clientid= 1553791007: |-- aclcheck(mqtt_user, tele/Sonoff/SENSOR, 2) SUPERUSER=Y by http 1553791007: |-- Cached [6D594FE7DEB937925F406096B51F378874A51DDB] for (client id not available,mqtt_user,2) 1553791016: Saving in-memory database to /data/mosquitto.db.
So what you’re saying is that the sonoff i connecting to the broker, but mosquitto isn’t connecting to ha?
I think this is mosquitto connecting, isn’t it?
1553790178: New connection from 192.168.1.71 on port 1883.
1553790178: New client connected from 192.168.1.71 as 7fdf3dbc-193f-4b63-b122-59be9a2b8950 (c1, k60).
1553790407: |-- mosquitto_auth_acl_check(…, client id not available, mqtt_user, tele/Sonoff/STATE, MOSQ_ACL_WRITE)
1553790407: |-- Expired [85E605B9FBD57B59CAC9062A8409F9905B6E7638] for (client id not available,mqtt_user,2)
robg
I’ve changed the topic before reboot.
But still nothing happens
I’ve tried the embedded broker, but I couldn’t get it to connect to HA
But this one is started:
Thank you for the link, I will try to follow the directions tomorrow
But still one thing is strange, it says on the link you sent that the path to find the device is:
And I have:
And not just mqtt config and not the config on mosquitto