mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Changed the automation example
Changed the automation example to match the examples on the website.
This commit is contained in:
parent
fa71d5fac9
commit
5f98705100
@ -103,24 +103,37 @@ browser:
|
|||||||
keyboard:
|
keyboard:
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
- alias: 'Rule 1 Light on in the evening'
|
||||||
- alias: 'Sun starts shining'
|
trigger:
|
||||||
platform: state
|
- platform: sun
|
||||||
state_entity_id: sun.sun
|
event: sunset
|
||||||
state: 'above_horizon'
|
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
|
||||||
|
|
||||||
service: light.turn_off
|
- alias: 'Rule 2 - Away Mode'
|
||||||
entity_id: group.living_room
|
|
||||||
|
|
||||||
- alias: 'Beer o Clock'
|
trigger:
|
||||||
platform: time
|
- platform: state
|
||||||
hours: 16
|
entity_id: group.all_devices
|
||||||
minutes: 0
|
state: 'not_home'
|
||||||
seconds: 0
|
|
||||||
|
|
||||||
service: notify.notify
|
condition: use_trigger_values
|
||||||
data:
|
condition:
|
||||||
message: It's 4, time for beer!
|
action:
|
||||||
|
service: light.turn_off
|
||||||
|
entity_id: group.all_lights
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
platform: systemmonitor
|
platform: systemmonitor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user