Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
83 lines (79 sloc) 2.01 KB
- alias: 'Turn on ghost mode when away at night'
trigger:
- platform: time
at: '22:30:00'
condition:
- condition: time
after: '22:30:00'
- condition: state
entity_id: group.all_persons
state: 'not_home'
- condition: state
entity_id: input_boolean.night_mode
state: 'off'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.ghost_mode
- alias: 'Turn off ghost mode when coming home or at 1:00'
trigger:
- platform: time
at: '01:00:00'
- platform: state
entity_id: group.all_persons
to: 'home'
condition:
- condition: state
entity_id: input_boolean.ghost_mode
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.ghost_mode
- alias: 'Turn on kitchen lights when ghost mode enabled'
trigger:
- platform: time_pattern
minutes: '/30'
seconds: 0
condition:
- condition: state
entity_id: input_boolean.ghost_mode
state: 'on'
action:
- service: light.turn_on
data:
entity_id: light.keuken_spots_7
brightness: 30
- delay: 0:15:00
- service: light.turn_off
entity_id: light.keuken_spots_7
- alias: 'Turn on Gang1ste when ghost mode enabled'
trigger:
- platform: time_pattern
minutes: '/45'
seconds: 0
condition:
- condition: state
entity_id: input_boolean.ghost_mode
state: 'on'
action:
- service: light.turn_on
data:
entity_id: light.overloop_licht_1ste_44
brightness: 40
- delay: 0:20:00
- service: light.turn_off
entity_id: light.overloop_licht_1ste_44
- alias: 'Turn on GangBG when ghost mode enabled'
trigger:
- platform: time_pattern
minutes: '/20'
seconds: 0
condition:
- condition: state
entity_id: input_boolean.ghost_mode
state: 'on'
action:
- service: light.turn_on
entity_id: light.gang_licht_30
- delay: 0:05:00
- service: light.turn_off
entity_id: light.gang_licht_30
You can’t perform that action at this time.