mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Update sample
This commit is contained in:
parent
1595a715cb
commit
e157039ab3
@ -46,13 +46,13 @@ An extended configuration for the same sensor could look like this if you want/n
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yml entry
|
# Example configuration.yml entry
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
platform: mqtt
|
- platform: mqtt
|
||||||
state_topic: "home-assistant/window/contact"
|
state_topic: "home-assistant/window/contact"
|
||||||
name: "Windows contact"
|
name: "Windows contact"
|
||||||
qos: 0
|
qos: 0
|
||||||
payload_on: "1"
|
payload_on: "1"
|
||||||
payload_off: "0"
|
payload_off: "0"
|
||||||
sensor_class: opening
|
sensor_class: opening
|
||||||
value_template: '{% raw %}{{ value.x }}{% endraw %}'
|
value_template: '{% raw %}{{ value.x }}{% endraw %}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user