diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2024-08-27 15:37:27 +0400 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2024-08-27 15:37:27 +0400 |
commit | be904eee31224112ef58628e90156617f64ea740 (patch) | |
tree | 73dbe8ccd5ee18d19468f3e0dd4563ab37ef399e /automations.yaml | |
parent | 6ff83b7acca705bbeca565783eb9c14129118f81 (diff) | |
download | hass-master.tar.gz hass-master.tar.bz2 hass-master.tar.xz hass-master.zip |
Diffstat (limited to 'automations.yaml')
-rw-r--r-- | automations.yaml | 77 |
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' |