I use raspberry 3 and many nodemcu (esp8266)
I reinstalled home assistant with addon mosquitto after formating of the sd (crash landing after update)
Now only the first nodemcu is connected to home assistant
In my configuration.yaml:
mqtt:
broker: 192.168.1.101
port: 1883
discovery: true
username: ‘toto’
password: ‘toto’
In config addon MQTT:
{
“logins”: [
{
“username”: “toto”,
“password”: “toto”
}
],
“anonymous”: false,
“quiet_logs”: true,
“customize”: {
“active”: true,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}
In /share/mosquitto/accesscontrollist:
user toto
topic readwrite #
and in file.ino :
Serial.print(“Connect au serveur MQTT…”);
if (client.connect(“cuisine”, “toto”, “toto”)) {
With this configuration the first nodemcu is connected but not others nodemcu.
What is necessary it to modify in the file ‘accesscontrollist’; and/or in config mosqitto; and/or the other files .ino?
Thanks a lot