mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
mqtt_statestream: Update docs to append state at end of topic (#3379)
This commit is contained in:
parent
e2cb9f558d
commit
c313a8e0f3
@ -20,7 +20,7 @@ To enable MQTT Statestream in Home Assistant, add the following section to your
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
mqtt_statestream:
|
mqtt_statestream:
|
||||||
base_topic: homeassistant/states
|
base_topic: homeassistant
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -32,6 +32,6 @@ Configuration variables:
|
|||||||
When any Home Assistant entity changes, this component will publish that change to MQTT.
|
When any Home Assistant entity changes, this component will publish that change to MQTT.
|
||||||
|
|
||||||
The topic for each entity is different, so you can easily subscribe other systems to just the entities you are interested in.
|
The topic for each entity is different, so you can easily subscribe other systems to just the entities you are interested in.
|
||||||
The topic will be in the form `base_topic/domain/entity`.
|
The topic will be in the form `base_topic/domain/entity/state`.
|
||||||
|
|
||||||
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`.
|
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/light/master_bedroom_dimmer/state`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user