home-assistant.io/source/_integrations/mqtt_eventstream.markdown
2020-04-13 05:59:51 +02:00

1.6 KiB

title, description, ha_category, ha_release, ha_iot_class, ha_domain
title description ha_category ha_release ha_iot_class ha_domain
MQTT Eventstream Instructions on how to setup MQTT eventstream within Home Assistant.
Other
0.11 Configurable mqtt_eventstream

The mqtt_eventstream integration connects two Home Assistant instances via MQTT.

Configuration

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 %} publish_topic: description: Topic for publishing local events. required: false type: string subscribe_topic: description: Topic to receive events from the remote server. required: false type: string ignore_event: description: Ignore sending these events over mqtt. required: false type: list {% endconfiguration %}

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