Changed the automation example

Changed the automation example to match the examples on the website.
This commit is contained in:
Carlo Costanzo 2015-09-25 11:03:16 -04:00
parent fa71d5fac9
commit 5f98705100

View File

@ -103,24 +103,37 @@ browser:
keyboard: keyboard:
automation: automation:
- alias: 'Rule 1 Light on in the evening'
trigger:
- platform: sun
event: sunset
offset: "-01:00:00"
- platform: state
entity_id: group.all_devices
state: home
condition:
- platform: state
entity_id: group.all_devices
state: home
- platform: time
after: "16:00:00"
before: "23:00:00"
action:
service: homeassistant.turn_on
entity_id: group.living_room
- alias: 'Sun starts shining' - alias: 'Rule 2 - Away Mode'
platform: state
state_entity_id: sun.sun
state: 'above_horizon'
service: light.turn_off trigger:
entity_id: group.living_room - platform: state
entity_id: group.all_devices
state: 'not_home'
- alias: 'Beer o Clock' condition: use_trigger_values
platform: time condition:
hours: 16 action:
minutes: 0 service: light.turn_off
seconds: 0 entity_id: group.all_lights
service: notify.notify
data:
message: It's 4, time for beer!
sensor: sensor:
platform: systemmonitor platform: systemmonitor