My Tasmota switches will not stay on with HASSIO and MQTT Mosquitto.
I cleared cache, I followed multiple YouTube videos, I upgraded Hass,io (like anyone can keep up with all this buggy releases) and updated MQTT Mosquitto Broker, but EVERYTIME my switch fails to respond within the 10 seconds MQTT requires, Hassio or MQTT or SOMEONE turns it off!
WTF WHY?!? WHY DOES MQTT or HASSIO INSIST ON TURNING OFF THE SWITCH WHEN IT CONNECTS? WTF can’t it just keep whatever state its in???
Its easy to test:
Turn the switch on.
Unplug it
Plug it back in.
The switch comes back on for a few seconds then it gets turned OFF!
And the new MQTT Mosquiito broker log in basically impossible to decipher:
1554262634: |-- url=http://127.0.0.1:8080/superuser 1554262634: |-- data=username=MQTT_USER&password=&topic=&acc=-1&clientid= 1554262634: |-- aclcheck(MQTT_USER, stat/sonoff-3/RESULT, 2) SUPERUSER=Y by http 1554262634: |-- Cached [4753ED566B65D2870871DE40AC80891A57A60F8B] for (client id not available,MQTT_USER,2) 1554262634: |-- mosquitto_auth_acl_check(..., client id not available, MQTT_USER, stat/sonoff-3/POWER, MOSQ_ACL_WRITE) 1554262634: |-- url=http://127.0.0.1:8080/superuser 1554262634: |-- data=username=MQTT_USER&password=&topic=&acc=-1&clientid= 1554262634: |-- aclcheck(MQTT_USER, stat/sonoff-3/POWER, 2) SUPERUSER=Y by http 1554262634: |-- Cached [B96E6A8A40ECABD4103759EE7C59C85058C10E3B] for (client id not available,MQTT_USER,2) 1554262634: |-- mosquitto_auth_acl_check(..., client id not available, homeassistant, stat/sonoff-3/POWER, MOSQ_ACL_READ) 1554262634: |-- url=http://127.0.0.1:8080/superuser 1554262634: |-- data=username=homeassistant&password=&topic=&acc=-1&clientid= 1554262634: |-- aclcheck(homeassistant, stat/sonoff-3/POWER, 1) SUPERUSER=Y by http 1554262634: |-- Cached [6DC5916D9B87DF7D313128D21C8E2037BAD251EF] for (client id not available,homeassistant,1) 1554262634: |-- mosquitto_auth_acl_check(..., client id not available, MQTT_USER, stat/sonoff-3/RESULT, MOSQ_ACL_WRITE) 1554262634: |-- aclcheck(MQTT_USER, stat/sonoff-3/RESULT, 2) CACHEDAUTH: 0 1554262634: |-- mosquitto_auth_acl_check(..., client id not available, MQTT_USER, stat/sonoff-3/POWER, MOSQ_ACL_WRITE) 1554262634: |-- aclcheck(MQTT_USER, stat/sonoff-3/POWER, 2) CACHEDAUTH: 0 1554262634: |-- mosquitto_auth_acl_check(..., client id not available, homeassistant, stat/sonoff-3/POWER, MOSQ_ACL_READ) 1554262634: |-- aclcheck(homeassistant, stat/sonoff-3/POWER, 1) CACHEDAUTH: 0 1554262642: |-- mosquitto_auth_acl_check(..., client id not available, MQTT_USER, tele/sonoff-3/STATE, MOSQ_ACL_WRITE) 1554262642: |-- url=http://127.0.0.1:8080/superuser 1554262642: |-- data=username=MQTT_USER&password=&topic=&acc=-1&clientid= 1554262642: |-- aclcheck(MQTT_USER, tele/sonoff-3/STATE, 2) SUPERUSER=Y by http 1554262642: |-- Cached [4071DD21EC330D52E0BDA2CB8AC33BA9E421EE5C] for (client id not available,MQTT_USER,2)
This is basically IMPOSSIBLE to work with. I want to set up a switch that my OctoPi controls so that it can shut down the printer after its finished or if there is a fault (but after the Pi has shut down), but being the switch keeps getting RANDOMLY turned OFF by HASS,IO and/or MQTT, its impossible and I’ve had dozens of failed prints because this software basically sucks.