mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 16:57:14 +00:00
This is the current config. Moved old to the v1-config branch
This commit is contained in:
83
automation/events.yaml
Normal file
83
automation/events.yaml
Normal file
@@ -0,0 +1,83 @@
|
||||
#
|
||||
#
|
||||
# Events
|
||||
#
|
||||
############
|
||||
|
||||
- alias: Trash Morning Notification
|
||||
trigger:
|
||||
- platform: time
|
||||
hours: 6
|
||||
minutes: 0
|
||||
seconds: 0
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- tue
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.trash_notification
|
||||
state: 'on'
|
||||
action:
|
||||
- service: notify.all_ios
|
||||
data:
|
||||
message: Don't forget to it is Trash Day
|
||||
|
||||
- alias: Washer Running
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.washer_power
|
||||
above: 100
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.washer_running
|
||||
|
||||
- alias: Washer Complete
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.washer_status
|
||||
from: 'running'
|
||||
to: 'idle'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.washer_running
|
||||
state: 'on'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.washer_running
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.washer_notification
|
||||
|
||||
- alias: Washer Notification
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.washer_notification
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sensor.family_status
|
||||
state: home
|
||||
action:
|
||||
- service: script.washer_finished_notification
|
||||
|
||||
- alias: Get Dressed Skylar
|
||||
trigger:
|
||||
- platform: time
|
||||
hours: 8
|
||||
minutes: 0
|
||||
seconds: 0
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: script.skylar_dressed_notification
|
||||
|
Reference in New Issue
Block a user