Update sample

This commit is contained in:
Fabian Affolter 2017-02-06 08:59:16 +01:00
parent 1595a715cb
commit e157039ab3
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

@ -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 %}'
``` ```