changes to automation on lights

This commit is contained in:
2021-12-21 19:38:34 +00:00
parent 2f7bcaeff3
commit 357bb4f985
5 changed files with 160 additions and 112 deletions

39
automations.yaml Executable file → Normal file
View File

@@ -36,7 +36,7 @@
service: light.turn_off
mode: single
- id: '1578994958446'
alias: Warn garage gate Open
alias: Garagem - Warn gate Open
description: ''
trigger:
- entity_id: cover.portao_garagem
@@ -50,7 +50,7 @@
title: '*Portao da garagem*'
service: notify.buttler
- id: '1579542436595'
alias: warn portao garagem closed
alias: Garagem - warn gate closed
description: ''
trigger:
- entity_id: cover.portao_garagem
@@ -396,3 +396,38 @@
data:
message: Luz WC Castanho acesa
mode: single
- id: '1640114920854'
alias: Garagem - Turn light on at night
description: ''
trigger:
- entity_id: cover.portao_garagem
from: closed
platform: state
to: open
condition:
- condition: or
conditions:
- condition: sun
before: sunrise
- condition: sun
after: sunset
action:
- data:
message: ligar luz
title: ligar luz temp
service: notify.buttler
- service: light.turn_on
target:
entity_id: light.luz_garagem_1
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: light.turn_off
target:
entity_id: light.luz_garagem_1
- service: notify.buttler
data:
message: luz desligada
mode: single