diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2023-01-24 06:27:43 +0400 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2023-01-24 06:27:43 +0400 |
commit | c933cb78aa1d235e8edffbe2a9d964acad20cfe3 (patch) | |
tree | 8ced5a7f36a0df84c29dc51e37f1043b06b3ac73 /automations.yaml | |
parent | 614c8a5f4e3bf26d3af0a91685e00eecb171339b (diff) | |
download | hass-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 'automations.yaml')
-rw-r--r-- | automations.yaml | 65 |
1 files changed, 47 insertions, 18 deletions
diff --git a/automations.yaml b/automations.yaml index efe9950..4446daf 100644 --- a/automations.yaml +++ b/automations.yaml @@ -702,25 +702,40 @@ on_click: - if: - condition: state - entity_id: switch.smart_power_strip_pro_socket_1 - state: 'off' + entity_id: switch.living_tablelamp + state: 'on' then: - - parallel: - - service: script.sleep_and_wake - data: - mode: wake - target: office - - if: - - condition: numeric_state - entity_id: sun.sun - attribute: elevation - below: '5' - then: - - service: script.turn_on_office_lights - data: {} + - type: turn_off + device_id: 32787706a8ff87380633b7c817057935 + entity_id: switch.living_tablelamp + domain: switch else: - - service: script.turn_on_office_lights - data: {} + - if: + - condition: state + entity_id: switch.smart_power_strip_pro_socket_1 + state: 'off' + then: + - parallel: + - service: script.sleep_and_wake + data: + mode: wake + target: office + - if: + - condition: numeric_state + entity_id: sun.sun + attribute: elevation + below: '5' + then: + - service: script.turn_on_office_lights + data: {} + else: + - service: script.turn_on_office_lights + data: {} + off_click: + - type: turn_on + device_id: 32787706a8ff87380633b7c817057935 + entity_id: switch.living_tablelamp + domain: switch dblclick: - if: - condition: state @@ -1109,7 +1124,7 @@ entity_id: switch.bathroom_lights_left domain: switch reentry_wait: 5 - reentry_timeout: 30 + reentry_timeout: 45 - id: '1674140368136' alias: 'Office: Sven Scene Switch' description: '' @@ -1158,3 +1173,17 @@ entity_id: switch.living_tablelamp domain: switch default: [] +- id: '1674510035217' + alias: 'Network: Backup' + description: '' + trigger: + - platform: state + entity_id: + - binary_sensor.network_route_vivacell + to: 'on' + condition: [] + action: + - service: notify.notify + data: + message: Connected via Vivacell + mode: single |