Skip to content

Commit 3d33748

Browse files
mw-whitefabaff
authored andcommitted
Added documentation for mqtt_statestream component (home-assistant#3302)
* Added documentation for mqtt_statestream component * Update 'ha_release' * Update date * Add period
1 parent 06d57a0 commit 3d33748

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: page
3+
title: "MQTT Statestream"
4+
description: "Instructions how to setup MQTT Statestream within Home Assistant."
5+
date: 2017-09-11 08:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: mqtt.png
11+
ha_category: Other
12+
ha_release: 0.54
13+
ha_iot_class: depends
14+
---
15+
16+
The `mqtt_statestream` component publishes state changes in Home Assistant to individual MQTT topics.
17+
18+
To enable MQTT Statestream in Home Assistant, add the following section to your `configuration.yaml` file:
19+
20+
```yaml
21+
# Example configuration.yaml entry
22+
mqtt_statestream:
23+
base_topic: homeassistant/states
24+
```
25+
26+
Configuration variables:
27+
28+
- **base_topic** (*Required*): Base topic used to generate the actual topic used to publish.
29+
30+
## Operation
31+
32+
When any Home Assistant entity changes, this component will publish that change to MQTT.
33+
34+
The topic for each entity is different, so you can easily subscribe other systems to just the entities you are interested in.
35+
The topic will be in the form `base_topic/domain/entity`.
36+
37+
For example, with the example configuration above, if an entity called 'light.master_bedroom_dimmer' is turned on, this component will publish `on` to `homeassistant/states/light/master_bedroom_dimmer`.

0 commit comments

Comments
 (0)