Closes #99 - Don't want close alerts when I am sleeping. Period.

This commit is contained in:
CCOSTAN
2017-03-06 19:33:11 +00:00
parent 6bfcf59de6
commit 905f73bfc5
3 changed files with 22 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
######################################################################
## Garage Status Announcements - Only during normal hours.
######################################################################
- alias: 'Garage closed'
trigger:
- platform: state
entity_id:
- cover.large_garage
- cover.small_garage
from: 'open'
to: 'closed'
for: '00:02:00'
action:
- service: script.Voice_notify
data_template:
value1: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'large garage ')|replace('garadget small', 'small garage ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."

View File

@@ -1,7 +1,7 @@
######################################################################
## Garage Status Announcements
######################################################################
- alias: 'Garage Status'
- alias: 'Garage Opened'
trigger:
- platform: state
@@ -12,18 +12,10 @@
to: 'open'
for: '00:02:00'
- platform: state
entity_id:
- cover.large_garage
- cover.small_garage
from: 'open'
to: 'closed'
for: '00:02:00'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.alert_mode
- service: script.Voice_notify
data_template:
value1: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'large garage ')|replace('garadget small', 'small garage ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."

View File

@@ -87,7 +87,8 @@ history:
entities:
- sensor.last_boot
- sensor.date
#logger: !include logger.yaml
logger: !include logger.yaml
recorder: