mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Created #74 and added more Alert Mode logic.
This commit is contained in:
32
automation/Speech/garadget_Wind_Speed_Check.yaml
Executable file
32
automation/Speech/garadget_Wind_Speed_Check.yaml
Executable file
@@ -0,0 +1,32 @@
|
||||
###################################
|
||||
## Garadget Stuff - [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
|
||||
###################################
|
||||
|
||||
- alias: 'Wind Speed Garage Door Check'
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.dark_sky_wind_speed
|
||||
above: 25
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.large_garage') == 'opened' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.small_garage') == 'opened'}}"
|
||||
|
||||
action:
|
||||
- service: script.ifttt_notify
|
||||
data_template:
|
||||
value1: 'Check Garage Doors:'
|
||||
value2: "Small: {{ states('cover.small_garage')}}"
|
||||
value3: "Large: {{ states('cover.large_garage')}}"
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.alert_mode
|
||||
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
value1: "Please check the garage doors. The Small garage is {{ states('cover.small_garage')}} and the large garage is {{ states('cover.large_garage')}}"
|
@@ -2,7 +2,7 @@
|
||||
## Garage Status Announcements
|
||||
######################################################################
|
||||
- alias: 'Garage Status'
|
||||
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
@@ -11,7 +11,7 @@
|
||||
from: 'closed'
|
||||
to: 'open'
|
||||
for: '00:02:00'
|
||||
|
||||
|
||||
- platform: state
|
||||
entity_id:
|
||||
- cover.large_garage
|
||||
@@ -19,8 +19,11 @@
|
||||
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('_', ' ') }}."
|
||||
|
Reference in New Issue
Block a user