Lots of typo corrections, added some useful examples. In automation / numeric state, I removed the config lines that used value_template for battery when the condition was for a temp sensor.

This commit is contained in:
Lindsay Ward 2016-03-28 12:46:47 +10:00
parent f228f7000e
commit 69ca7107b7
13 changed files with 108 additions and 68 deletions

View file

@ -17,7 +17,7 @@ The `input_boolean` component allows the user to define boolean values that can
# Example configuration.yaml entry
input_boolean:
notify_home:
name: Notify when someome arrives home
name: Notify when someone arrives home
initial: off
icon: mdi:car
```
@ -31,3 +31,22 @@ Configuration variables:
Pick an icon that you can find on [materialdesignicons.com](https://materialdesignicons.com/) to use for your input and prefix the name with `mdi:`. For example `mdi:car`, `mdi:ambulance`, or `mdi:motorbike`.
Here's an example of an automation using the above input_boolean. This action will only occur if the switch is on.
```yaml
automation:
alias: Arriving home
trigger:
platform: state
entity_id: binary_sensor.motion_garage
to: 'on'
condition:
platform: state
entity_id: input_boolean.notify_home
state: 'on'
action:
service: notify.pushbullet
data:
title: ""
message: "Honey, I'm home!"
```