MQTT Eventstream
The mqtt_eventstream
component connects two Home Assistant instances via MQTT.
To integrate MQTT Eventstream into Home Assistant, add the following section to your configuration.yaml
file:
# Example configuration.yaml entry
mqtt_eventstream:
publish_topic: MyServerName
subscribe_topic: OtherHaServerName
Configuration Variables
- publish_topic
-
(string)(Optional)Topic for publishing local events.
- subscribe_topic
-
(string)(Optional)Topic to receive events from the remote server.
- ignore_event
-
(list)(Optional)Ignore sending these events over mqtt.
Multiple Instances
Events from multiple instances can be aggregated to a single master instance by subscribing to a wildcard topic from the master instance.
# Example master instance configuration.yaml entry
mqtt_eventstream:
publish_topic: master/topic
subscribe_topic: slaves/#
ignore_event:
- call_service
- state_changed
For a multiple instance setup, each slave would publish to their own topic.
# Example slave instance configuration.yaml entry
mqtt_eventstream:
publish_topic: slaves/upstairs
subscribe_topic: master/topic
# Example slave instance configuration.yaml entry
mqtt_eventstream:
publish_topic: slaves/downstairs
subscribe_topic: master/topic