Closes #72 - Move IFTTT triggers locally to Input_booleans
parent
3eb7f488b8
commit
0f1102fd68
@ -0,0 +1,19 @@
|
||||
######################################################################
|
||||
## Turn off my Office light whenever I leave the house.
|
||||
######################################################################
|
||||
- alias: 'Carlo has left the building'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.flash
|
||||
state: 'on'
|
||||
from: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- group.all_lights
|
||||
data:
|
||||
flash: long
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.flash
|
||||
@ -1,18 +1,22 @@
|
||||
######################################################################
|
||||
## Time to work - Set it up!
|
||||
######################################################################
|
||||
|
||||
- alias: Time to Work
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: work
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- group.dinette_lights
|
||||
- group.kitchen_lights
|
||||
- group.living_room_lights
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.office_lamp
|
||||
######################################################################
|
||||
## Time to work - Set it up!
|
||||
######################################################################
|
||||
|
||||
- alias: Time to Work
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.work
|
||||
state: 'on'
|
||||
from: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- group.dinette_lights
|
||||
- group.kitchen_lights
|
||||
- group.living_room_lights
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.office_lamp
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.work
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
#triggers
|
||||
good_night:
|
||||
name: Good Night
|
||||
initial: off
|
||||
|
||||
good_morning:
|
||||
name: Good Morning
|
||||
initial: off
|
||||
|
||||
meal_time:
|
||||
name: Meal Time
|
||||
initial: off
|
||||
|
||||
tv_time:
|
||||
name: TV Time
|
||||
initial: off
|
||||
|
||||
work:
|
||||
name: Work
|
||||
initial: off
|
||||
|
||||
flash:
|
||||
name: Flash
|
||||
initial: off
|
||||
Loading…
Reference in new issue