Fix up the new names for the Garaddget Doors. #642

This commit is contained in:
ccostan 2020-07-05 14:09:10 -04:00
parent 385c07e211
commit b8d726f9b9
4 changed files with 29 additions and 70 deletions

View File

@ -6,22 +6,6 @@
# 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:
- platform: mqtt
name: "Small Garage Door"
@ -65,7 +49,7 @@ group:
######################################################################
automation:
- alias: 'Update Garage Brightness'
- alias: 'Update Garage Get-Status'
trigger:
- platform: time_pattern
minutes: '/1'
@ -83,16 +67,16 @@ automation:
trigger:
- platform: state
entity_id:
- cover.large_garage
- cover.small_garage
- cover.large_garage_door
- cover.small_garage_door
from: 'open'
to: 'closed'
for: '00:02:00'
- platform: state
entity_id:
- cover.large_garage
- cover.small_garage
- cover.large_garage_door
- cover.small_garage_door
from: 'closed'
to: 'open'
for: '00:02:30'
@ -125,10 +109,12 @@ automation:
condition:
- condition: or
conditions:
- condition: template
value_template: "{{ states('cover.large_garage') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.small_garage') == 'opened'}}"
- condition: state
entity_id: cover.large_garage_door
state: 'opened'
- condition: state
entity_id: cover.small_garage_door
state: 'opened'
action:
- service: input_boolean.turn_on
@ -137,8 +123,8 @@ automation:
- service: script.notify_engine
data_template:
title: 'Check/Close Garage Doors - High Speed Wind Alert:'
value1: "Small: {{ states('cover.small_garage')}}"
value2: "Large: {{ states('cover.large_garage')}}"
value1: "Small: {{ states('cover.small_garage_door')}}"
value2: "Large: {{ states('cover.large_garage_door')}}"
apns_id: 'information'
who: 'parents'
@ -146,11 +132,11 @@ automation:
data_template:
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.
{% if is_state('cover.large_garage', 'open') -%}
{% if is_state('cover.large_garage_door', 'open') -%}
The Large Garage Door is open
{% endif -%}
{% if is_state('cover.small_garage', 'open') -%}
{% if is_state('cover.large_garage', 'open') -%}and
{% if is_state('cover.small_garage_door', 'open') -%}
{% if is_state('cover.large_garage_door', 'open') -%}and
{%- endif %} The small Garage Door is open.
{% endif %}"
@ -166,33 +152,6 @@ automation:
"/config/www/custom_ui/floorplan/images/branding/windy.png"
] | 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
conditions:
- condition: template
value_template: "{{ states('cover.large_garage') == 'opened' }}"
value_template: "{{ states('cover.large_garage_door') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.small_garage') == 'opened' }}"
value_template: "{{ states('cover.small_garage_door') == 'opened' }}"
- condition: and
conditions:
- condition: state
@ -233,20 +192,20 @@ automation:
- condition: or
conditions:
- condition: template
value_template: "{{ states('cover.large_garage') == 'opened' }}"
value_template: "{{ states('cover.large_garage_door') == 'opened' }}"
- condition: template
value_template: "{{ states('cover.small_garage') == 'opened'}}"
value_template: "{{ states('cover.small_garage_door') == 'opened'}}"
action:
- service: script.notify_engine
data_template:
title: 'Check Garage Doors:'
value1: "Small: {{ states('cover.small_garage')}}"
value2: "Large: {{ states('cover.large_garage')}}"
value1: "Small: {{ states('cover.small_garage_door')}}"
value2: "Large: {{ states('cover.large_garage_door')}}"
who: "family"
camera_entity: "camera.camera2"
apns_id: 'information'
- service: script.speech_engine
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')}}"

View File

@ -747,9 +747,9 @@
l-1,2L552.6,310.4z"/>
<path id="lighting_bolt-2" inkscape:connector-curvature="0" style="fill:#FFFFA6;" d="M639.8,312.3v-2.8H639v-2.3l-1.8,3.1h1l-1,2
L639.8,312.3z"/>
<path id="cover.large_garage" inkscape:connector-curvature="0" style="fill:#BDF271;" d="M757.1,51.3h-97c-1.6,0-2.8-1.3-2.8-2.8
<path id="cover.large_garage_door" inkscape:connector-curvature="0" style="fill:#BDF271;" d="M757.1,51.3h-97c-1.6,0-2.8-1.3-2.8-2.8
v-6.4c0-1.6,1.3-2.8,2.8-2.8h97c1.6,0,2.8,1.3,2.8,2.8v6.4C759.9,50.1,758.6,51.3,757.1,51.3z"/>
<path id="cover.small_garage" inkscape:connector-curvature="0" style="fill:#E7376B;" d="M629.2,71.4h-42.7
<path id="cover.small_garage_door" inkscape:connector-curvature="0" style="fill:#E7376B;" d="M629.2,71.4h-42.7
c-1.6,0-2.8-1.3-2.8-2.8v-6.4c0-1.6,1.3-2.8,2.8-2.8h42.7c1.6,0,2.8,1.3,2.8,2.8v6.4C632,70.2,630.8,71.4,629.2,71.4z"/>
<g id="sensor.dark_sky_temperature" transform="translate(-153.53886,352.18359)">
<text id="text957" transform="matrix(1 0 0 1 188.344 62.0462)" style="font-family:'ArialMT'; font-size:12px;">XX</text>

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -219,8 +219,8 @@ rules:
- name: Garage Doors
entities:
- cover.large_garage
- cover.small_garage
- cover.large_garage_door
- cover.small_garage_door
states:
- state: 'closed'
class: 'window-closed'

View File

@ -5948,7 +5948,7 @@
inkscape:label="#path1245" />
<rect
style="fill:#00ffff;fill-opacity:1;stroke-width:0.35783061"
id="cover.large_garage"
id="cover.large_garage_door"
width="126.53351"
height="22.748257"
x="-112.88961"
@ -5957,7 +5957,7 @@
inkscape:label="#rect1247" />
<rect
style="fill:#00ffff;fill-opacity:1;stroke-width:0.35783061"
id="cover.small_garage"
id="cover.small_garage_door"
width="64.360489"
height="19.130405"
x="39.85442"

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB