Re-organized presence detection #2
@ -177,38 +177,12 @@
|
|||||||
zone: zone.home
|
zone: zone.home
|
||||||
event: enter
|
event: enter
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_boolean.family_is_home
|
entity_id: group.family
|
||||||
from: 'off'
|
from: not_home
|
||||||
to: 'on'
|
to: home
|
||||||
condition:
|
condition: []
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.family_is_home
|
|
||||||
state: 'off'
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.night
|
|
||||||
state: 'on'
|
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: script.family_is_home
|
||||||
target:
|
|
||||||
entity_id: input_boolean.family_is_home
|
|
||||||
- service: alarm_control_panel.alarm_disarm
|
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
|
||||||
- service: light.turn_on
|
|
||||||
target:
|
|
||||||
area_id:
|
|
||||||
- living_room
|
|
||||||
- mud_room
|
|
||||||
data: {}
|
|
||||||
- service: light.turn_off
|
|
||||||
target:
|
|
||||||
area_id:
|
|
||||||
- furnace_room
|
|
||||||
- kallen_bedroom
|
|
||||||
- nursery
|
|
||||||
- master_bedroom
|
|
||||||
- upstairs_hallway
|
|
||||||
- basement_studio
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1641102018783'
|
- id: '1641102018783'
|
||||||
alias: Family Has Left
|
alias: Family Has Left
|
||||||
@ -218,30 +192,10 @@
|
|||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
from: home
|
from: home
|
||||||
to: not_home
|
to: not_home
|
||||||
- platform: state
|
|
||||||
entity_id: input_boolean.family_is_home
|
|
||||||
from: 'on'
|
|
||||||
to: 'off'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.family_is_home
|
entity_id: input_boolean.guest_mode
|
||||||
state: 'on'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: script.family_is_away
|
||||||
target:
|
|
||||||
entity_id: input_boolean.family_is_home
|
|
||||||
- service: light.turn_off
|
|
||||||
target:
|
|
||||||
area_id:
|
|
||||||
- basement_studio
|
|
||||||
- furnace_room
|
|
||||||
- kallen_bedroom
|
|
||||||
- living_room
|
|
||||||
- master_bedroom
|
|
||||||
- mud_room
|
|
||||||
- nursery
|
|
||||||
- upstairs_hallway
|
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
|
||||||
mode: single
|
mode: single
|
||||||
|
48
scripts.yaml
48
scripts.yaml
@ -156,3 +156,51 @@ alexa_tts_test:
|
|||||||
message: I farted
|
message: I farted
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:test-tube
|
icon: mdi:test-tube
|
||||||
|
family_is_away:
|
||||||
|
alias: Family Is Away
|
||||||
|
sequence:
|
||||||
|
- condition: state
|
||||||
|
entity_id: group.family
|
||||||
|
state: not_home
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- basement_studio
|
||||||
|
- furnace_room
|
||||||
|
- kallen_bedroom
|
||||||
|
- living_room
|
||||||
|
- master_bedroom
|
||||||
|
- mud_room
|
||||||
|
- nursery
|
||||||
|
- upstairs_hallway
|
||||||
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
||||||
|
mode: single
|
||||||
|
icon: mdi:shield-lock
|
||||||
|
family_is_home:
|
||||||
|
alias: Family Is Home
|
||||||
|
sequence:
|
||||||
|
- service: alarm_control_panel.alarm_disarm
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.night
|
||||||
|
state: 'on'
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- living_room
|
||||||
|
- mud_room
|
||||||
|
data: {}
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
area_id:
|
||||||
|
- furnace_room
|
||||||
|
- kallen_bedroom
|
||||||
|
- nursery
|
||||||
|
- master_bedroom
|
||||||
|
- upstairs_hallway
|
||||||
|
- basement_studio
|
||||||
|
mode: single
|
||||||
|
icon: mdi:home-account
|
||||||
|
Reference in New Issue
Block a user