summaryrefslogtreecommitdiffstats
path: root/blueprints
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-01-24 06:27:43 +0400
committerSuren A. Chilingaryan <csa@suren.me>2023-01-24 06:27:43 +0400
commitc933cb78aa1d235e8edffbe2a9d964acad20cfe3 (patch)
tree8ced5a7f36a0df84c29dc51e37f1043b06b3ac73 /blueprints
parent614c8a5f4e3bf26d3af0a91685e00eecb171339b (diff)
downloadhass-c933cb78aa1d235e8edffbe2a9d964acad20cfe3.tar.gz
hass-c933cb78aa1d235e8edffbe2a9d964acad20cfe3.tar.bz2
hass-c933cb78aa1d235e8edffbe2a9d964acad20cfe3.tar.xz
hass-c933cb78aa1d235e8edffbe2a9d964acad20cfe3.zip
Monitor primary/backup connectivity and inform when we are on LTE
Diffstat (limited to 'blueprints')
-rw-r--r--blueprints/automation/motion/halabyan24.yaml43
1 files changed, 37 insertions, 6 deletions
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: {}