changes to automation on lights
This commit is contained in:
39
automations.yaml
Executable file → Normal file
39
automations.yaml
Executable file → Normal 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
|
||||
|
||||
Reference in New Issue
Block a user