mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Update doc
This commit is contained in:
parent
e693decd7a
commit
f14dc0989f
@ -10,10 +10,9 @@ footer: true
|
|||||||
---
|
---
|
||||||
|
|
||||||
<img src='/images/supported_brands/mqtt.png' class='brand pull-right' />
|
<img src='/images/supported_brands/mqtt.png' class='brand pull-right' />
|
||||||
This generic sensor implementation uses the MQTT message payload
|
This MQTT sensor implementation uses the MQTT message payload as the sensor value. If messages in this state_topic are published with *RETAIN* flag, the sensor will receive an instant update with last known value. Otherwise, the initial state will be undefined.
|
||||||
as the sensor value. If messages in this state_topic are published
|
|
||||||
with RETAIN flag, the sensor will receive an instant update with
|
To use your MQTT sensor in your installation, add the following to your `configuration.yaml` file:
|
||||||
last known value. Otherwise, the initial state will be undefined.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yml entry
|
# Example configuration.yml entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user