@ -6,22 +6,6 @@
# Switch to Access_Tokens - https://www.vcloudinfo.com/2020/05/fixing-garadget-in-home-assistant.html
# Switch to Access_Tokens - https://www.vcloudinfo.com/2020/05/fixing-garadget-in-home-assistant.html
#-------------------------------------------
#-------------------------------------------
# cover:
# - platform: garadget
# covers:
# large_garage:
# device: !secret large_garage_id
# #username: !secret garadget_username
# #password: !secret garadget_password
# access_token: !secret garadget_access_token
# name: large_garage
# small_garage:
# device: !secret small_garage_id
# #username: !secret garadget_username
# #password: !secret garadget_password
# access_token: !secret garadget_access_token
# name: small_garage
cover:
cover:
- platform : mqtt
- platform : mqtt
name : "Small Garage Door"
name : "Small Garage Door"
@ -65,7 +49,7 @@ group:
######################################################################
######################################################################
automation:
automation:
- alias : 'Update Garage Brightnes s'
- alias : 'Update Garage Get-Statu s'
trigger:
trigger:
- platform : time_pattern
- platform : time_pattern
minutes : '/1'
minutes : '/1'
@ -83,16 +67,16 @@ automation:
trigger:
trigger:
- platform : state
- platform : state
entity_id:
entity_id:
- cover.large_garage
- cover.large_garage _door
- cover.small_garage
- cover.small_garage _door
from : 'open'
from : 'open'
to : 'closed'
to : 'closed'
for : '00:02:00'
for : '00:02:00'
- platform : state
- platform : state
entity_id:
entity_id:
- cover.large_garage
- cover.large_garage _door
- cover.small_garage
- cover.small_garage _door
from : 'closed'
from : 'closed'
to : 'open'
to : 'open'
for : '00:02:30'
for : '00:02:30'
@ -125,10 +109,12 @@ automation:
condition:
condition:
- condition : or
- condition : or
conditions:
conditions:
- condition : template
- condition : state
value_template : "{{ states('cover.large_garage') == 'opened' }}"
entity_id : cover.large_garage_door
- condition : template
state : 'opened'
value_template : "{{ states('cover.small_garage') == 'opened'}}"
- condition : state
entity_id : cover.small_garage_door
state : 'opened'
action:
action:
- service : input_boolean.turn_on
- service : input_boolean.turn_on
@ -137,8 +123,8 @@ automation:
- service : script.notify_engine
- service : script.notify_engine
data_template:
data_template:
title : 'Check/Close Garage Doors - High Speed Wind Alert:'
title : 'Check/Close Garage Doors - High Speed Wind Alert:'
value1 : "Small: {{ states('cover.small_garage ')}}"
value1 : "Small: {{ states('cover.small_garage _door ')}}"
value2 : "Large: {{ states('cover.large_garage ')}}"
value2 : "Large: {{ states('cover.large_garage _door ')}}"
apns_id : 'information'
apns_id : 'information'
who : 'parents'
who : 'parents'
@ -146,11 +132,11 @@ automation:
data_template:
data_template:
value1 : >
value1 : >
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
"The winds are picking up outside. The wind speed is {{ states('sensor.dark_sky_wind_speed')|round}} miles per hour. For safety, please close the garage doors.
{% if is_state('cover.large_garage ', 'open') -%}
{% if is_state('cover.large_garage _door ', 'open') -%}
The Large Garage Door is open
The Large Garage Door is open
{% endif -%}
{% endif -%}
{% if is_state('cover.small_garage ', 'open') -%}
{% if is_state('cover.small_garage _door ', 'open') -%}
{% if is_state('cover.large_garage ', 'open') -%}and
{% if is_state('cover.large_garage _door ', 'open') -%}and
{%- endif %} The small Garage Door is open.
{%- endif %} The small Garage Door is open.
{% endif %}"
{% endif %}"
@ -166,33 +152,6 @@ automation:
"/config/www/custom_ui/floorplan/images/branding/windy.png"
"/config/www/custom_ui/floorplan/images/branding/windy.png"
] | random }}
] | random }}
- alias : Garadget Reflection Rates
trigger:
- platform : numeric_state
entity_id : sensor.large_garage_reflection_rate
below : 85
# for: '00:05:00'
- platform : numeric_state
entity_id : sensor.small_garage_reflection_rate
below : 85
# for: '00:05:00'
condition:
- condition : template
value_template : "{{ states('cover.large_garage') == 'closed' }}"
- condition : template
value_template : "{{ states('cover.small_garage') == 'closed' }}"
action:
- service : script.notify_engine
data_template:
title : 'Garage door Status Change:'
value1 : "Small: {{ states('sensor.small_garage_reflection_rate')}}"
value2 : "Large: {{ states('sensor.large_garage_reflection_rate')}}"
who : "parents"
content_type : 'jpeg'
url : !secret camera2_snapshot
apns_id : 'information'
##############################################################################
##############################################################################
@ -222,9 +181,9 @@ automation:
- condition : or
- condition : or
conditions:
conditions:
- condition : template
- condition : template
value_template : "{{ states('cover.large_garage ') == 'opened' }}"
value_template : "{{ states('cover.large_garage _door ') == 'opened' }}"
- condition : template
- condition : template
value_template : "{{ states('cover.small_garage ') == 'opened' }}"
value_template : "{{ states('cover.small_garage _door ') == 'opened' }}"
- condition : and
- condition : and
conditions:
conditions:
- condition : state
- condition : state
@ -233,20 +192,20 @@ automation:
- condition : or
- condition : or
conditions:
conditions:
- condition : template
- condition : template
value_template : "{{ states('cover.large_garage ') == 'opened' }}"
value_template : "{{ states('cover.large_garage _door ') == 'opened' }}"
- condition : template
- condition : template
value_template : "{{ states('cover.small_garage ') == 'opened'}}"
value_template : "{{ states('cover.small_garage _door ') == 'opened'}}"
action:
action:
- service : script.notify_engine
- service : script.notify_engine
data_template:
data_template:
title : 'Check Garage Doors:'
title : 'Check Garage Doors:'
value1 : "Small: {{ states('cover.small_garage ')}}"
value1 : "Small: {{ states('cover.small_garage _door ')}}"
value2 : "Large: {{ states('cover.large_garage ')}}"
value2 : "Large: {{ states('cover.large_garage _door ')}}"
who : "family"
who : "family"
camera_entity : "camera.camera2"
camera_entity : "camera.camera2"
apns_id : 'information'
apns_id : 'information'
- service : script.speech_engine
- service : script.speech_engine
data_template:
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')}}"
value1 : "Please check the garage doors. The Small garage is {{ states('cover.small_garage _door ')}} and the large garage is {{ states('cover.large_garage_door ')}}"