Fix camera automation

This commit is contained in:
2020-03-22 09:42:38 +02:00
parent 9aa32279d9
commit b65a452e4d
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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:
+2 -4
View File
@@ -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