Skip to content

Commit 2251ca1

Browse files
authored
Added client_id info
I couldnt see info on this and had to look in the code so adding it to instructions HTH
1 parent 2d74709 commit 2251ca1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,20 @@ mqtt:
306306

307307
the status messages will appear on topic `home/office/status`.
308308

309+
### Multiple Instances
310+
311+
If you have more than one device in your network they will have the same client ID and therefore kick each other off of your MQTT broker. To solve this you can specify `client_id`, like this:
312+
313+
```yaml
314+
mqtt:
315+
host: test.mosquitto.org
316+
port: 1883
317+
user: ""
318+
password: ""
319+
client_id: pimqttpgio_1
320+
topic_prefix: pimqttgpio/mydevice
321+
```
322+
309323
### Logging
310324

311325
Logging may be configured by including a `logging` section in your `config.yml`. The standard Python logging system is used, so configuration questions should be answered by looking at [the Python logging howto](https://docs.python.org/3/howto/logging.html).

0 commit comments

Comments
 (0)