mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
add qos
This commit is contained in:
parent
2290d32ccd
commit
8cbb66a8bc
@ -21,9 +21,11 @@ sensor:
|
||||
platform: mqtt
|
||||
name: "MQTT Sensor"
|
||||
state_topic: "home/bedroom/temperature"
|
||||
qos: 0
|
||||
unit_of_measurement: "°C"
|
||||
```
|
||||
|
||||
- **name**: The name of the sensor. Default is 'MQTT Sensor'. *Optional*
|
||||
- **state_topic**: The MQTT topic subscribed to receive sensor values. *Required*
|
||||
- **qos**: The maximum QoS level of the state topic. Default is 0. *Optional*
|
||||
- **unit_of_measurement**: Defines the units of measurement of the sensor, if any. *Optional*
|
||||
|
Loading…
x
Reference in New Issue
Block a user