From b65a452e4d60c48d9e6f7512cf4edc2fd6991836 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 22 Mar 2020 09:42:38 +0200 Subject: [PATCH] Fix camera automation --- config/lovelace/06_system.yaml | 2 +- config/packages/modules/security.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config/lovelace/06_system.yaml b/config/lovelace/06_system.yaml index da6c7b0..4d7b5e3 100644 --- a/config/lovelace/06_system.yaml +++ b/config/lovelace/06_system.yaml @@ -92,7 +92,7 @@ cards: open: true entities: - automation.security_door_opened_while_away - - automation.camera_turn_off_on_startup + - automation.camera_startup - type: custom:fold-entity-row head: diff --git a/config/packages/modules/security.yaml b/config/packages/modules/security.yaml index 3fc132d..dc071b9 100644 --- a/config/packages/modules/security.yaml +++ b/config/packages/modules/security.yaml @@ -93,8 +93,7 @@ script: # Hack - the switch.camera initial state is wrong (ON) when the server starts. automation: - - id: camera_turn_off_on_startup - alias: Camera · Startup + - alias: Camera · Startup trigger: - platform: homeassistant event: start @@ -103,8 +102,7 @@ automation: - service: switch.turn_off entity_id: switch.camera - - id: security_door_opened_while_away - alias: Security · Door opened while away + - alias: Security · Door opened while away trigger: - platform: state entity_id: binary_sensor.front_door_on_off