I have HASSIO setup on my Raspberry pi and everything works great, I can control things, turn my lights on and off, however there is one issue I have been dealing with for a while and I cannot seem to figure it out.
I am using Bruh automation for the WS2811 LED setup. I have it working, but it will only stay on for a random amount of time then recieves the following message: bruh/mqttstrip/setpowerpub: b’OFF’
As you can see in the logs below, it was at 23:13:33, then 01:02:57 and finally it lasted all the way until 06:46:26 before it received another turn off message.
I have included my setup below, and some of the logs from MQTT I also changed the IP addresses and usernames.
If anyone is able to assist me with this issue, I would much appreciate it. Let me know if I need to provide any other info.
Hassio MQTT:
{
“plain”: true,
“ssl”: false,
“anonymous”: false,
“logins”: [
{
“username”: “my-username”,
“password”: “my-password”
}
],
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
Configuration.yaml
mqtt:
broker: MyIpaddress
port: 1883
username: my-username
password: my-password
discovery: true
Hassio Log:
[homeassistant.components.mqtt] Transmitting message on bruh/mqttstrip/setpower: OFF
2018-11-18 23:13:33 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on bruh/mqttstrip/setpowerpub: b’OFF’
2018-11-19 01:02:57 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on bruh/mqttstrip/setpowerpub: b’OFF’
2018-11-19 06:46:26 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on bruh/mqttstrip/setpowerpub: b’OFF’
MQTT log:
[INFO] Setup mosquitto configuration
[INFO] Found local users inside config
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1542599598: mosquitto version 1.4.15 (build date 2018-03-04 15:35:59+0000) starting
1542599598: Config loaded from /etc/mosquitto.conf.
1542599598: *** auth-plug: startup
1542599598: ** Configured order: http
1542599598: Opening ipv4 listen socket on port 1883.
1542599598: Opening ipv6 listen socket on port 1883.
1542599598: Opening websockets listen socket on port 1884.
1542599599: Opening ipv4 listen socket on port 8883.
1542599599: Opening ipv6 listen socket on port 8883.
1542599599: Opening websockets listen socket on port 8884.
1542599599: Warning: Mosquitto should not be run as root/administrator.
1542599603: New connection from WEMOS-D1Mini_IP on port 1883.
[INFO] found my-username on local database
1542599603: New client connected from WEMOS-D1Mini_IP as Lights (c1, k60, u’my-username’).
1542599890: New connection from MQTTBrokerIP on port 1883.
[INFO] found my-username on local database
1542599890: New client connected from MQTTBrokerIP as MQTT (c1, k60, u’my-username’).
1542601399: Saving in-memory database to /data/mosquitto.db.
1542603200: Saving in-memory database to /data/mosquitto.db.
1542605001: Saving in-memory database to /data/mosquitto.db.
1542606802: Saving in-memory database to /data/mosquitto.db.
1542608603: Saving in-memory database to /data/mosquitto.db.
1542610404: Saving in-memory database to /data/mosquitto.db.
1542610977: New connection from WEMOS-D1Mini_IP on port 1883.
[INFO] found my-username on local database
1542610977: Client Lights already connected, closing old connection.
1542610977: Client Lights disconnected.
1542610977: New client connected from WEMOS-D1Mini_IP as Lights (c1, k60, u’my-username’).
1542612205: Saving in-memory database to /data/mosquitto.db.
1542614006: Saving in-memory database to /data/mosquitto.db.
1542615807: Saving in-memory database to /data/mosquitto.db.
1542617608: Saving in-memory database to /data/mosquitto.db.
1542619409: Saving in-memory database to /data/mosquitto.db.
1542621210: Saving in-memory database to /data/mosquitto.db.
1542623011: Saving in-memory database to /data/mosquitto.db.
1542624812: Saving in-memory database to /data/mosquitto.db.
1542626613: Saving in-memory database to /data/mosquitto.db.
1542628414: Saving in-memory database to /data/mosquitto.db.
1542630215: Saving in-memory database to /data/mosquitto.db.
1542631585: Socket error on client Lights, disconnecting.
1542631586: New connection from WEMOS-D1Mini_IP on port 1883.
[INFO] found my-username on local database
1542631586: New client connected from WEMOS-D1Mini_IP as Lights (c1, k60, u’my-username’).
1542632016: Saving in-memory database to /data/mosquitto.db.
1542633817: Saving in-memory database to /data/mosquitto.db.
1542635618: Saving in-memory database to /data/mosquitto.db.
1542637419: Saving in-memory database to /data/mosquitto.db.
1542639220: Saving in-memory database to /data/mosquitto.db.
1542641021: Saving in-memory database to /data/mosquitto.db.
1542642822: Saving in-memory database to /data/mosquitto.db.
1542644623: Saving in-memory database to /data/mosquitto.db.