Update sample
This commit is contained in:
parent
1595a715cb
commit
e157039ab3
1 changed files with 8 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue