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!
|
## Time to work - Set it up!
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
- alias: Time to Work
|
- alias: Time to Work
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: state
|
||||||
event_type: work
|
entity_id: input_boolean.work
|
||||||
|
state: 'on'
|
||||||
action:
|
from: 'off'
|
||||||
- service: light.turn_off
|
|
||||||
entity_id:
|
action:
|
||||||
- group.dinette_lights
|
- service: light.turn_off
|
||||||
- group.kitchen_lights
|
entity_id:
|
||||||
- group.living_room_lights
|
- group.dinette_lights
|
||||||
- service: light.turn_on
|
- group.kitchen_lights
|
||||||
entity_id:
|
- group.living_room_lights
|
||||||
- light.office_lamp
|
- 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