Yeah, it actually appears like two devices connect from my iGrill Pi and then one disconnects and the other stays connected. I think you’re on to something though. It’s gotta be something related to the mqtt configuration somehow. Here’s what the Mosquitto log looks like when one stays connected and the other disconnects:
1563130438: New connection from 192.168.1.146 on port 1883.
[INFO] found pi on local database
1563130438: New client connected from 192.168.1.146 as auto-7B360604-285F-AFC2-B0AE-AF62D452B333 (p2, c1, k60, u'pi').
1563130442: New connection from 192.168.1.146 on port 1883.
1563130442: New client connected from 192.168.1.146 as auto-2B208C06-B85A-517B-8209-57A42A983F4F (p2, c1, k60, u'pi').
1563130528: Client auto-7B360604-285F-AFC2-B0AE-AF62D452B333 has exceeded timeout, disconnecting.
The second one that connects stays connected.
I’m running Mosquitto Broker as a Hass.io add on and here’s my configuration:
{
"logins": [
{
"username": "pi",
"password": "xxxxxxxx"
}
],
"anonymous": true,
"customize": {
"active": true,
"folder": "mosquitto"
},
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
}
My mqtt.yaml within the iGrill configuration looks like this:
#MQTT All values default to paho.mqtt.client defaults
mqtt:
host: '192.168.1.40' # Optional default 'localhost'
port: 1883 # Optional default '1883'
keepalive: 60 # Optional default '60'
auth: # Optional If included, username_pw_set() is called with user/password
username: 'pi' # Required (when auth is present)
password: 'xxxxxxx' # Optional
# tls: # Optional If included, tls_set() is called with the following: (default is paho.mqtt.client.tls_set() defaults)
# ca_certs: # Optional
# certfile: # Optional
# keyfile: # Optional
# cert_reqs: # Optional
# tls_version: # Optional
# ciphers: # Optional
I used to run a smartthings-mqtt-broker so I know how finicky MQTT can be, but I feel like I have everything configured correctly. Do you know if I should see the devices communicating within the mosquitto logs? I can’t remember if they flowed through the logs or not. In otherwords, should I see Probe 1 Temp, Probe 2 Temp, etc values if its working correctly?