Merge branch 'current' into next

This commit is contained in:
Franck Nijhof 2022-07-26 11:15:03 +02:00
commit c422ef8abf
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -39,30 +39,30 @@ ignore_event:
## Multiple Instances
Events from multiple instances can be aggregated to a single master instance by subscribing to a wildcard topic from the master instance.
Events from multiple instances can be aggregated to a single parent instance by subscribing to a wildcard topic from the parent instance.
```yaml
# Example master instance configuration.yaml entry
# Example parent instance configuration.yaml entry
mqtt_eventstream:
publish_topic: master/topic
subscribe_topic: slaves/#
publish_topic: parent/topic
subscribe_topic: child/#
ignore_event:
- call_service
- state_changed
```
For a multiple instance setup, each slave would publish to their own topic.
For a multiple instance setup, each child instance would publish to their own topic.
```yaml
# Example slave instance configuration.yaml entry
# Example child instance configuration.yaml entry
mqtt_eventstream:
publish_topic: slaves/upstairs
subscribe_topic: master/topic
publish_topic: child/upstairs
subscribe_topic: parent/topic
```
```yaml
# Example slave instance configuration.yaml entry
# Example child instance configuration.yaml entry
mqtt_eventstream:
publish_topic: slaves/downstairs
subscribe_topic: master/topic
publish_topic: child/downstairs
subscribe_topic: parent/topic
```