From c933cb78aa1d235e8edffbe2a9d964acad20cfe3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 24 Jan 2023 06:27:43 +0400 Subject: Monitor primary/backup connectivity and inform when we are on LTE --- blueprints/automation/motion/halabyan24.yaml | 43 ++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 6 deletions(-) (limited to 'blueprints') diff --git a/blueprints/automation/motion/halabyan24.yaml b/blueprints/automation/motion/halabyan24.yaml index e06c26d..03f4ff3 100644 --- a/blueprints/automation/motion/halabyan24.yaml +++ b/blueprints/automation/motion/halabyan24.yaml @@ -37,10 +37,21 @@ trigger: to: HomeHalabyanExtended for: hours: 0 - minutes: 5 + minutes: 4 seconds: 0 -# We get away from home area + - platform: state + id: around_home2 + entity_id: + - device_tracker.lm_g810 + from: not_home + to: home + for: + hours: 0 + minutes: 2 + seconds: 0 + +# We get away from home area (or directly from home) - platform: state id: away_from_home entity_id: @@ -52,6 +63,18 @@ trigger: minutes: 0 seconds: 0 + - platform: state + id: away_from_home2 + entity_id: + - device_tracker.lm_g810 + from: home + to: not_home + for: + hours: 1 + minutes: 0 + seconds: 0 + + # No motions in the hall for a day - platform: state entity_id: binary_sensor.hall_motions_occupancy @@ -109,8 +132,12 @@ action: id: empty_day - condition: and conditions: - - condition: trigger - id: away_from_home + - condition: or + conditions: + - condition: trigger + id: away_from_home + - condition: trigger + id: away_from_home2 - condition: state entity_id: input_boolean.mode_house_sleep state: 'on' @@ -167,8 +194,12 @@ action: # Disable 'away' security mode if our phone is in vicinity - conditions: - - condition: trigger - id: around_home + - condition: or + conditions: + - condition: trigger + id: around_home + - condition: trigger + id: around_home2 sequence: - service: switch.turn_off data: {} -- cgit v1.2.3