Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: arm_night
- alias: arm_night
- condition:
- condition: and
- conditions:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.easleep
- state: 'on'
- - condition: state
- entity_id: group.erlend
- state: not_home
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.casleep
- state: 'on'
- - condition: state
- entity_id: group.caroline
- state: not_home
- - condition: or
- conditions:
- - condition: state
- entity_id: input_boolean.easleep
- state: 'on'
- - condition: state
- entity_id: input_boolean.casleep
- state: 'on'
- - condition: or
- conditions:
- - condition: state
- entity_id: group.caroline
- state: home
- - condition: state
- entity_id: group.erlend
- state: home
- - condition: state
- entity_id: input_boolean.guestmode
- state: 'off'
- trigger:
- - platform: state
- entity_id: group.erlend
- to: not_home
- - platform: state
- entity_id: group.caroline
- to: not_home
- - platform: state
- entity_id: input_boolean.easleep
- to: 'on'
- - platform: state
- entity_id: input_boolean.casleep
- to: 'on'
- - platform: state
- entity_id: group.erlend
- to: not_home
- for:
- minutes: 5
- - platform: state
- entity_id: group.caroline
- to: not_home
- for:
- minutes: 5
- - platform: state
- entity_id: input_boolean.easleep
- to: 'on'
- for:
- minutes: 5
- - platform: state
- entity_id: input_boolean.casleep
- to: 'on'
- for:
- minutes: 5
- action:
- - service: input_select.select_option
- data:
- entity_id: input_select.alarm
- option: Arm Home
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement