2016-12-31 19:02:20 +00:00
###################################
2017-01-16 17:14:29 +00:00
## Garadget Stuff - [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
2017-02-24 01:19:57 +00:00
##
2016-12-31 19:02:20 +00:00
###################################
- alias : Garadget Reflection Rates
hide_entity : True
trigger :
- platform : numeric_state
2017-02-22 22:37:15 +00:00
entity_id : sensor.large_garage_reflection_rate
2016-12-31 19:02:20 +00:00
below : 85
# for: '00:05:00'
- platform : numeric_state
2017-02-22 22:37:15 +00:00
entity_id : sensor.small_garage_reflection_rate
2016-12-31 19:02:20 +00:00
below : 85
# for: '00:05:00'
2017-02-24 01:19:57 +00:00
2016-12-31 19:02:20 +00:00
condition :
- condition : template
2017-02-22 22:37:15 +00:00
value_template : "{{ states('cover.large_garage') == 'closed' }}"
2016-12-31 19:02:20 +00:00
- condition : template
2017-02-22 22:37:15 +00:00
value_template : "{{ states('cover.small_garage') == 'closed' }}"
2017-02-24 01:19:57 +00:00
2016-12-31 19:02:20 +00:00
action :
- service : script.ifttt_notify
data_template :
value1 : 'Check Garage Doors Reflection:'
2017-02-22 22:37:15 +00:00
value2 : "Small: {{ states('sensor.small_garage_reflection_rate')}}"
value3 : "Large: {{ states('sensor.large_garage_reflection_rate')}}"
2017-02-24 01:19:57 +00:00
2016-12-31 19:02:20 +00:00
##############################################################################
- alias : Is the Garage door Open at night - Checks every 60 minutes or 5 minutes after we drive away.
hide_entity : True
trigger :
- platform : time
minutes : '/60'
2017-02-24 01:38:20 +00:00
seconds : 00
2016-12-31 19:02:20 +00:00
- platform : state
entity_id : group.family
2017-02-24 01:19:57 +00:00
state : not_home
2016-12-31 19:02:20 +00:00
for : 00 : 05 : 00
condition :
condition : or
conditions :
- condition : and
conditions :
- condition : state
entity_id : group.family
2017-02-24 01:19:57 +00:00
state : not_home
2016-12-31 19:02:20 +00:00
for : 00 : 05 : 00
- condition : or
conditions :
- condition : template
2017-02-22 22:37:15 +00:00
value_template : "{{ states('cover.large_garage') == 'opened' }}"
2016-12-31 19:02:20 +00:00
- condition : template
2017-02-22 22:37:15 +00:00
value_template : "{{ states('cover.small_garage') == 'opened' }}"
2016-12-31 19:02:20 +00:00
- condition : and
conditions :
- condition : sun
after : 'sunset'
- condition : or
conditions :
- condition : template
2017-02-22 22:37:15 +00:00
value_template : "{{ states('cover.large_garage') == 'opened' }}"
2016-12-31 19:02:20 +00:00
- condition : template
2017-02-24 01:19:57 +00:00
value_template : "{{ states('cover.small_garage') == 'opened'}}"
2016-12-31 19:02:20 +00:00
action :
2017-02-03 21:34:35 +00:00
- service : script.ifttt_notify
data_template :
value1 : 'Check Garage Doors:'
2017-02-22 22:37:15 +00:00
value2 : "Small: {{ states('cover.small_garage')}}"
value3 : "Large: {{ states('cover.large_garage')}}"
2017-02-24 01:19:57 +00:00
2017-02-03 21:34:35 +00:00
- service : script.Voice_notify
data_template :
2017-02-22 22:37:15 +00:00
value1 : "Please check the garage doors. The Small garage is {{ states('cover.small_garage')}} and the large garage is {{ states('cover.large_garage')}}"