summaryrefslogtreecommitdiffstats
path: root/automations.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'automations.yaml')
-rw-r--r--automations.yaml65
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