diff options
Diffstat (limited to 'automations.yaml')
-rw-r--r-- | automations.yaml | 406 |
1 files changed, 71 insertions, 335 deletions
diff --git a/automations.yaml b/automations.yaml index 68d248d..621c215 100644 --- a/automations.yaml +++ b/automations.yaml @@ -119,13 +119,13 @@ default: [] mode: single - id: '1654901560778' - alias: 'Living: Office Light' + alias: 'Living: LED' description: '' use_blueprint: path: lights/light_switch.yaml input: switch: switch.living_lights_right - light: light.lights_office + light: light.living_led dblclick: - parallel: - service: script.sleep_and_wake @@ -136,14 +136,11 @@ data: {} target: entity_id: switch.lights_living -- id: '1654986053564' - alias: 'Hall: Kitchen LED' - description: '' - use_blueprint: - path: lights/light_switch.yaml - input: - switch: switch.kitchen_lights_center - light: switch.kitchen_ledlights + - service: light.turn_off + metadata: {} + data: {} + target: + entity_id: light.lights_office - id: '1654986378177' alias: 'Bedroom: Bulb' description: '' @@ -494,7 +491,7 @@ sequence: - type: toggle device_id: 95931a9049849e575f2de543adf111eb - entity_id: light.yeelight_color_0x7caaf86 + entity_id: light.office_bulb_office_bulb domain: light - conditions: - condition: template @@ -642,14 +639,6 @@ message: 'Unsupported command: {{ trigger.event.data.command }} with params: {{ trigger.event.data.args }}' mode: single -- id: '1672608894803' - alias: 'Hall: Hall Camera Switch' - description: '' - use_blueprint: - path: lights/light_switch.yaml - input: - switch: switch.hall_lights_center - light: switch.hall_camera - id: '1672624569107' alias: 'Hall: Entrance Combo' description: '' @@ -791,7 +780,7 @@ use_blueprint: path: lights/knob-bulb-control.yaml input: - light: light.yeelight_color_0x7caaf86 + light: light.office_bulb_office_bulb knob: sensor.office_knob_action toggle: - if: @@ -819,7 +808,7 @@ input: knob: sensor.office_knob_action lights: - - light.yeelight_color_0x7caaf86 + - light.office_bulb_office_bulb - light.smart_light - id: '1672987670623' alias: 'Office: Dimming Button' @@ -828,7 +817,7 @@ path: lights/light_button.yaml input: button: sensor.office_button_action - light: light.yeelight_color_0x7caaf86 + light: light.office_bulb_office_bulb on_click: - service: homeassistant.turn_off data: {} @@ -852,7 +841,7 @@ hold: - device_id: 95931a9049849e575f2de543adf111eb domain: light - entity_id: light.yeelight_color_0x7caaf86 + entity_id: light.office_bulb_office_bulb type: brightness_decrease - id: '1672989606410' alias: 'Office: Button' @@ -861,66 +850,57 @@ path: lights/light_button.yaml input: button: sensor.office_button_action - light: light.yeelight_color_0x7caaf86 + light: light.office_led_office_led on_click: - - if: + if: - condition: state - entity_id: switch.living_tablelampsocket + entity_id: light.office_chair_led_office_chair_led state: 'on' then: - - service: switch.turn_off - data: {} + - service: light.turn_off target: - entity_id: switch.living_tablelampsocket + entity_id: light.office_chair_led_office_chair_led else: - - if: - - condition: state - entity_id: light.office_led_office_led - state: 'on' + 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: homeassistant.turn_off - target: - entity_id: - - light.office_led_office_led - - service: switch.turn_on - target: - 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 - 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 + - service: script.sleep_and_wake data: - temperature: 4000 + 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: homeassistant.turn_on - target: - entity_id: - - light.office_led_office_led - data: {} + - parallel: + - service: homeassistant.turn_on + target: + entity_id: + - light.office_chair_led_office_chair_led + data: {} + - service: homeassistant.turn_off + target: + entity_id: + - light.office_bulb_office_bulb + data: {} dblclick: - if: - condition: state @@ -1027,9 +1007,6 @@ entity_id: input_boolean.mode_away state: 'off' - condition: state - entity_id: input_boolean.mode_alone - state: 'on' - - condition: state entity_id: input_boolean.mode_bright state: 'on' then: @@ -1060,168 +1037,6 @@ domain: light door_entity: - binary_sensor.entrance_door_contact -- id: '1673153262822' - alias: 'Motions: Global v1' - description: '' - trigger: - - platform: state - id: home - entity_id: - - group.master_phones - from: not_home - to: home - for: - hours: 0 - minutes: 1 - seconds: 0 - - platform: state - id: away - entity_id: - - group.master_phones - from: home - to: not_home - for: - hours: 1 - minutes: 0 - seconds: 0 - - type: no_motion - platform: device - device_id: 6deb0a6fb7a4a849ba22afc166cf9919 - entity_id: binary_sensor.hall_motions_occupancy - domain: binary_sensor - for: - hours: 24 - minutes: 0 - seconds: 0 - id: empty_day - - type: no_motion - platform: device - device_id: 6deb0a6fb7a4a849ba22afc166cf9919 - entity_id: binary_sensor.hall_motions_occupancy - domain: binary_sensor - for: - hours: 120 - minutes: 0 - seconds: 0 - id: empty_week - - type: motion - platform: device - device_id: 6deb0a6fb7a4a849ba22afc166cf9919 - entity_id: binary_sensor.hall_motions_occupancy - domain: binary_sensor - for: - hours: 0 - minutes: 1 - seconds: 0 - id: motions - - platform: state - entity_id: - - input_boolean.mode_away - from: 'on' - to: 'off' - id: away_gone - condition: [] - action: - - choose: - - conditions: - - condition: state - entity_id: input_boolean.mode_house_sleep - state: 'off' - - condition: or - conditions: - - condition: trigger - id: empty_day - - condition: and - conditions: - - condition: trigger - id: away - - condition: state - entity_id: input_boolean.mode_alone - state: 'on' - - condition: state - entity_id: binary_sensor.hall_motions_occupancy - state: 'off' - for: - hours: 2 - minutes: 0 - seconds: 0 - sequence: - - service: script.sleep_and_wake - data: - mode: sleep - target: house - - service: input_boolean.turn_on - data: {} - target: - entity_id: input_boolean.mode_house_sleep - - conditions: - - condition: trigger - id: empty_week - - condition: state - entity_id: input_boolean.mode_house_hibernate - state: 'off' - sequence: - - service: script.sleep_and_wake - data: - mode: hibernate - target: house - - service: input_boolean.turn_on - data: {} - target: - entity_id: input_boolean.mode_house_hibernate - - conditions: - - condition: trigger - id: home - sequence: - - service: switch.turn_off - data: {} - target: - entity_id: switch.hall_lights_right - - conditions: - - condition: or - conditions: - - condition: state - entity_id: input_boolean.mode_house_sleep - state: 'on' - - condition: state - entity_id: input_boolean.mode_house_hibernate - state: 'on' - - condition: or - conditions: - - condition: and - conditions: - - condition: trigger - id: motions - - condition: state - entity_id: input_boolean.mode_away - state: 'off' - - condition: and - conditions: - - condition: trigger - id: away_gone - - type: is_motion - condition: device - device_id: 6deb0a6fb7a4a849ba22afc166cf9919 - entity_id: binary_sensor.hall_motions_occupancy - domain: binary_sensor - sequence: - - if: - - condition: state - entity_id: input_boolean.mode_house_hibernate - state: 'on' - then: - - service: script.sleep_and_wake - data: - mode: wake - target: house - - service: input_boolean.turn_off - data: {} - target: - entity_id: - - input_boolean.mode_house_sleep - - input_boolean.mode_house_hibernate - default: [] - mode: single - id: '1673156009695' alias: 'Motions: Office' description: '' @@ -1324,23 +1139,6 @@ domain: switch reentry_wait: 10 reentry_timeout: 45 -- id: '1673331563280' - alias: 'Motions: Bathroom' - description: '' - use_blueprint: - path: motion/occupancy_tracking.yaml - input: - entrance: binary_sensor.bathroom_motions_occupancy - inside: binary_sensor.bathroom_motions_occupancy - light: switch.bathroom_lights_left - occupancy: input_boolean.occupancy_bathroom - on_action: - - type: turn_on - device_id: ad2aac96e3377b6e1f336d194b7ba792 - entity_id: switch.bathroom_lights_left - domain: switch - reentry_wait: 5 - reentry_timeout: 45 - id: '1674140368136' alias: 'Office: Sven Scene Switch' description: '' @@ -1364,7 +1162,7 @@ input: knob: sensor.office_knob_action lights: - - light.yeelight_color_0x7caaf86 + - light.office_bulb_office_bulb media_player: media_player.smartpi toggle_actions: - choose: @@ -1402,31 +1200,6 @@ data: message: CRD net failure mode: single -- id: '1680824553612' - alias: 'Motions: Bedroom' - description: '' - use_blueprint: - path: motion/motion_switch.yaml - input: - light_target: - - switch.bedroom_lights_left - - switch.bedroom_lights_center - motion_entity: binary_sensor.bedroom_motions_occupancy - illumination_test: sun - illuminance_entity: sensor.kitchen_motions_illuminance_lux - lux_threshold: 60 - no_motion_wait: 60 - on_cond_should_be_off: - - switch.lights_bedroom - on_cond_should_be_on: - - binary_sensor.hall_motions_occupancy - off_cond_should_be_off: - - switch.lights_bedroom - on_click: - - service: automation.turn_on - data: {} - target: - entity_id: automation.motions_bedroom_from_hall - id: '1680827972411' alias: 'Motions: Guestroom' description: '' @@ -1569,49 +1342,6 @@ target: entity_id: - automation.motions_bedroom_v2 -- id: '1680923844207' - alias: 'Motions: Bedroom from Hall' - description: '' - trigger: - - type: no_motion - platform: device - device_id: 6deb0a6fb7a4a849ba22afc166cf9919 - entity_id: binary_sensor.hall_motions_occupancy - domain: binary_sensor - for: - hours: 0 - minutes: 0 - seconds: 30 - condition: - - condition: state - entity_id: input_boolean.mode_alone - state: 'on' - - condition: state - entity_id: - - binary_sensor.bedroom_bedsidelamp - - switch.bedroom_tablelamp - - switch.bedroom_lights_right - state: 'off' - - condition: state - entity_id: - - binary_sensor.bedroom_motions_occupancy - - binary_sensor.bedroom_presence_presence - state: 'off' - for: - hours: 0 - minutes: 0 - seconds: 20 - action: - - service: homeassistant.turn_off - data: {} - target: - entity_id: switch.lights_bedroom - - service: automation.turn_off - data: - stop_actions: false - target: - entity_id: automation.motions_bedroom_from_hall - mode: single - id: '1681005500468' alias: 'Bedroom: Switch3' description: '' @@ -1961,7 +1691,7 @@ metadata: {} mode: single - id: '1687227285061' - alias: 'Hall: Hall Camera ' + alias: 'Hall: Security Cameras' description: '' trigger: - platform: state @@ -1976,20 +1706,18 @@ state: 'on' sequence: - parallel: - - type: turn_on - device_id: 26d4f61d01f392350cd4375fcc3dbf50 - entity_id: switch.hall_camera - domain: switch + - service: switch.turn_on + target: + entity_id: switch.security_cameras - conditions: - condition: state entity_id: input_boolean.mode_away state: 'off' sequence: - parallel: - - type: turn_off - device_id: 26d4f61d01f392350cd4375fcc3dbf50 - entity_id: switch.hall_camera - domain: switch + - service: switch.turn_off + target: + entity_id: switch.security_cameras mode: single - id: '1687256985181' alias: Power Outtage @@ -2006,7 +1734,7 @@ seconds: 0 - platform: state entity_id: - - light.yeelight_color_0x7caaf86 + - light.office_bulb_office_bulb from: unavailable id: office_bulb for: @@ -2030,7 +1758,7 @@ entity_id: switch.plugs_infrastructure - type: turn_off device_id: 95931a9049849e575f2de543adf111eb - entity_id: light.yeelight_color_0x7caaf86 + entity_id: light.office_bulb_office_bulb domain: light - type: turn_off device_id: bf45f1d630db6e2aa1307866603f548a @@ -2132,3 +1860,11 @@ data: message: SmartPI out of power mode: single +- id: '1757282812187' + alias: 'Guestroom: Lights sync' + description: '' + use_blueprint: + path: lights/light_sync.yaml + input: + master: switch.guestroom_lights_left + slave: switch.guestroom_lights_center |