I’m looking at arming/disarming some Blink cameras when we (well, our phones) leave the house during the day.
Basically , if neither phone is connected to the network, then arm.
If someone is still at home (or comes home), then disarm.
I’m just wondering if there is a neater way than having four automations:
IF Phone1 is not_home, AND Phone 2 is not_home between 0516-2259, ARM.
IF Phone2 is not_home, AND Phone 1 is not_home between 0516-2259, ARM.
IF Phone1 IS home between 0516-2259, DISARM.
IF Phone2 IS home between 0516-2259, DISARM.
alias: Day Blink1
description: “Phone1 Arm”
trigger:
- platform: state
entity_id:
- device_tracker.phone1
from: home
to: not_home
condition:- condition: device
device_id: bd41a30eefab774f064cd58ed5ed6f90
domain: device_tracker
entity_id: device_tracker.phone2
type: is_not_home- condition: time
after: “05:16:00”
before: “22:59:00”
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:- device_id: 0c52bf28a9fbf2a729f1af3930def1ff
domain: alarm_control_panel
entity_id: alarm_control_panel.blink_bean
type: arm_away
mode: single
I’ve already got a timed record schedule between 2300-0515, without other conditions.