Added some additional examples.

- Added an eample of Groups within Groups.
- Took away the Automation 2 and used the new -Alias format.
- Added a second sensor to demonstrate sensor:, sensor 2: format.
This commit is contained in:
Carlo Costanzo 2015-09-24 15:56:26 -04:00
parent d660d2b3dc
commit 21fd53b05d

View File

@ -70,11 +70,18 @@ device_sun_light_trigger:
# A comma separated list of states that have to be tracked as a single group # A comma separated list of states that have to be tracked as a single group
# Grouped states should share the same type of states (ON/OFF or HOME/NOT_HOME) # Grouped states should share the same type of states (ON/OFF or HOME/NOT_HOME)
# You can also have groups within groups.
group: group:
Home:
- group.living_room
- group.kitchen
living_room: living_room:
- light.Bowl - light.Bowl
- light.Ceiling - light.Ceiling
- light.TV_back_light - light.TV_back_light
kitchen:
- light.fan_bulb_1
- light.fan_bulb_2
children: children:
- device_tracker.child_1 - device_tracker.child_1
- device_tracker.child_2 - device_tracker.child_2
@ -96,27 +103,23 @@ browser:
keyboard: keyboard:
automation: automation:
- alias: Sun starts shining
platform: state platform: state
alias: Sun starts shining
state_entity_id: sun.sun state_entity_id: sun.sun
# Next two are optional, omit to match all state: 'above_horizon'
state_from: below_horizon
state_to: above_horizon
execute_service: light.turn_off service: light.turn_off
service_entity_id: group.living_room entity_id: group.living_room
automation 2: - alias: 'Beer o Clock'
platform: time platform: time
alias: Beer o Clock hours: 16
minutes: 0
seconds: 0
time_hours: 16 service: notify.notify
time_minutes: 0 data:
time_seconds: 0
execute_service: notify.notify
service_data:
message: It's 4, time for beer! message: It's 4, time for beer!
sensor: sensor:
@ -137,6 +140,23 @@ sensor:
- type: 'process' - type: 'process'
arg: 'octave-cli' arg: 'octave-cli'
sensor 2:
platform: forecast
api_key: <register on Forecast.io for your PRIVATE API>
monitored_conditions:
- summary
- precip_type
- precip_intensity
- temperature
- dew_point
- wind_speed
- wind_bearing
- cloud_cover
- humidity
- pressure
- visibility
- ozone
script: script:
# Turns on the bedroom lights and then the living room lights 1 minute later # Turns on the bedroom lights and then the living room lights 1 minute later
wakeup: wakeup: