From 5cf22ba793b2b06116983921253be1cd3b2cc4ec Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 30 Apr 2022 18:05:15 +0200 Subject: [PATCH] Fix changed alarm entity_id --- configuration/automations/alarm.yaml | 14 +++++++------- configuration/automations/bedroom-motion.yaml | 2 +- configuration/automations/camera.yaml | 4 ++-- configuration/automations/vacuum.yaml | 4 ++-- scripts/10.modes.yaml | 8 ++++---- scripts/70.vacuum.yaml | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/configuration/automations/alarm.yaml b/configuration/automations/alarm.yaml index 5039f3d..b481963 100644 --- a/configuration/automations/alarm.yaml +++ b/configuration/automations/alarm.yaml @@ -51,11 +51,11 @@ to: 'unlocked' condition: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: armed_away action: - service: alarm_control_panel.alarm_trigger - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - id: alarm-night alias: '[Alarm] Trigger alarm at night' @@ -80,11 +80,11 @@ to: 'on' condition: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: armed_away action: - service: alarm_control_panel.alarm_trigger - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - id: alarm-arm-away alias: '[Alarm] Arm away' @@ -95,13 +95,13 @@ event: leave action: - service: alarm_control_panel.alarm_arm_away - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - id: alarm-pending alias: '[Alarm] Send notification when alarm triggered' trigger: - platform: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm to: 'pending' action: - service: notify.notify @@ -122,7 +122,7 @@ alias: '[Alarm] Turn on alarm' trigger: - platform: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm to: 'triggered' action: - service: notify.notify diff --git a/configuration/automations/bedroom-motion.yaml b/configuration/automations/bedroom-motion.yaml index 6aade30..45a2a9a 100644 --- a/configuration/automations/bedroom-motion.yaml +++ b/configuration/automations/bedroom-motion.yaml @@ -46,7 +46,7 @@ to: 'off' condition: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: disarmed action: - service: script.bedroom_lights_off diff --git a/configuration/automations/camera.yaml b/configuration/automations/camera.yaml index 38e735f..bfdbe59 100644 --- a/configuration/automations/camera.yaml +++ b/configuration/automations/camera.yaml @@ -2,7 +2,7 @@ alias: '[Camera] Kitchen notification' condition: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: armed_away trigger: - platform: state @@ -23,7 +23,7 @@ alias: '[Camera] Hallway notification' condition: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: armed_away trigger: - platform: state diff --git a/configuration/automations/vacuum.yaml b/configuration/automations/vacuum.yaml index 83b23ad..f385b0d 100644 --- a/configuration/automations/vacuum.yaml +++ b/configuration/automations/vacuum.yaml @@ -38,11 +38,11 @@ - choose: - conditions: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: 'armed_home' sequence: - service: alarm_control_panel.alarm_arm_away - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - id: vacuum-daily-reset alias: '[Vacuum] Reset daily cleaning' diff --git a/scripts/10.modes.yaml b/scripts/10.modes.yaml index 7f15db4..93f582a 100644 --- a/scripts/10.modes.yaml +++ b/scripts/10.modes.yaml @@ -2,7 +2,7 @@ good_night: alias: Good Night sequence: - service: alarm_control_panel.alarm_arm_home - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - service: input_select.select_option data: option: Night @@ -70,7 +70,7 @@ good_morning: - cover.dining_blinds - cover.office_blind - service: alarm_control_panel.alarm_disarm - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - service: input_select.select_option data: option: Day @@ -86,7 +86,7 @@ leave_home: alias: Leave Home sequence: - service: alarm_control_panel.alarm_arm_away - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - service: input_select.select_option data: option: Away @@ -142,7 +142,7 @@ arrive_home: alias: Arrive Home sequence: - service: alarm_control_panel.alarm_disarm - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - service: input_select.select_option data: option: Day diff --git a/scripts/70.vacuum.yaml b/scripts/70.vacuum.yaml index 96da89c..cdda95a 100644 --- a/scripts/70.vacuum.yaml +++ b/scripts/70.vacuum.yaml @@ -12,14 +12,14 @@ vacuum_today: - condition: or conditions: - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: 'armed_away' - condition: state - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm state: 'arming' sequence: - service: alarm_control_panel.alarm_arm_home - entity_id: alarm_control_panel.ha_alarm + entity_id: alarm_control_panel.home_alarm - service: vacuum.start entity_id: vacuum.valetudo_valetudos5