mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Update variables description
This commit is contained in:
parent
ba138f2df8
commit
a9f17a2cc3
@ -19,13 +19,15 @@ last known value. Otherwise, the initial state will be undefined.
|
|||||||
# Example configuration.yml entry
|
# Example configuration.yml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: mqtt
|
platform: mqtt
|
||||||
name: "MQTT Sensor"
|
|
||||||
state_topic: "home/bedroom/temperature"
|
state_topic: "home/bedroom/temperature"
|
||||||
|
name: "MQTT Sensor"
|
||||||
qos: 0
|
qos: 0
|
||||||
unit_of_measurement: "°C"
|
unit_of_measurement: "°C"
|
||||||
```
|
```
|
||||||
|
|
||||||
- **name**: The name of the sensor. Default is 'MQTT Sensor'. *Optional*
|
Configuration variables:
|
||||||
- **state_topic**: The MQTT topic subscribed to receive sensor values. *Required*
|
|
||||||
- **qos**: The maximum QoS level of the state topic. Default is 0. *Optional*
|
- **state_topic** (*Required*): The MQTT topic subscribed to receive sensor values.
|
||||||
- **unit_of_measurement**: Defines the units of measurement of the sensor, if any. *Optional*
|
- **name** (*Optional*): The name of the sensor. Default is 'MQTT Sensor'.
|
||||||
|
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0.
|
||||||
|
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user