summaryrefslogtreecommitdiffstats
path: root/automations.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'automations.yaml')
-rw-r--r--automations.yaml77
1 files changed, 46 insertions, 31 deletions
diff --git a/automations.yaml b/automations.yaml
index 97244a2..68d248d 100644
--- a/automations.yaml
+++ b/automations.yaml
@@ -125,7 +125,7 @@
path: lights/light_switch.yaml
input:
switch: switch.living_lights_right
- light: light.yeelight_color_0x7caaf86
+ light: light.lights_office
dblclick:
- parallel:
- service: script.sleep_and_wake
@@ -874,38 +874,53 @@
entity_id: switch.living_tablelampsocket
else:
- if:
- - condition: or
- conditions:
- - condition: state
- entity_id: switch.smart_power_strip_pro_socket_2
- state: 'off'
- - condition: state
- entity_id: switch.office_table
- state: unavailable
+ - condition: state
+ entity_id: light.office_led_office_led
+ 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:
- temperature: 4000
+ - service: homeassistant.turn_off
+ target:
+ entity_id:
+ - light.office_led_office_led
+ - service: switch.turn_on
+ target:
+ entity_id: switch.living_tablelampsocket
else:
- - service: script.turn_on_office_lights
- data:
- temperature: 4000
+ - if:
+ - condition: or
+ conditions:
+ - condition: state
+ entity_id: switch.smart_power_strip_pro_socket_2
+ state: 'off'
+ - condition: state
+ entity_id: switch.office_table
+ state: unavailable
+ 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:
+ temperature: 4000
+ else:
+ - service: script.turn_on_office_lights
+ data:
+ temperature: 4000
off_click:
- - service: switch.turn_on
- data: {}
+ - service: homeassistant.turn_on
target:
- entity_id: switch.living_tablelampsocket
+ entity_id:
+ - light.office_led_office_led
+ data: {}
dblclick:
- if:
- condition: state
@@ -1379,13 +1394,13 @@
trigger:
- platform: state
entity_id:
- - binary_sensor.network_route_vivacell
- to: 'on'
+ - binary_sensor.network_route_crd
+ to: 'off'
condition: []
action:
- service: notify.notify
data:
- message: Connected via Vivacell
+ message: CRD net failure
mode: single
- id: '1680824553612'
alias: 'Motions: Bedroom'