Update to 0.112 and Garadget Consolidation. Also Temp fix until Garadget is MQTT Fully.
This commit is contained in:
parent
6c0954c713
commit
5e5c560761
|
@ -1 +1 @@
|
|||
0.112.0
|
||||
0.112.1
|
|
@ -1,90 +0,0 @@
|
|||
###################################
|
||||
## Garadget Stuff - [Garadget](https://amzn.to/2jQLpVQ) - Garage Door opener/sensor
|
||||
##
|
||||
###################################
|
||||
|
||||
- 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'
|
||||
|
||||
##############################################################################
|
||||
|
||||
- alias: Is the Garage door Open at night - Checks every 30 minutes or 5 minutes after we drive away.
|
||||
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: '/45'
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
to: not_home
|
||||
for: 00:05:00
|
||||
- platform: state
|
||||
entity_id: input_boolean.tv_time
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
for: 00:05:00
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.large_garage') == 'opened' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.small_garage') == 'opened' }}"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.large_garage') == 'opened' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.small_garage') == 'opened'}}"
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Check Garage Doors:'
|
||||
value1: "Small: {{ states('cover.small_garage')}}"
|
||||
value2: "Large: {{ states('cover.large_garage')}}"
|
||||
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')}}"
|
|
@ -76,7 +76,7 @@ sensor:
|
|||
value_template: '{{ states.cover.large_garage.attributes["sensor_reflection_rate"] }}'
|
||||
|
||||
group:
|
||||
garage_doors:
|
||||
garage_doors: # This group is used to check if doors are open or Closed.
|
||||
name: Garage Doors
|
||||
entities:
|
||||
- cover.large_garage
|
||||
|
@ -102,7 +102,6 @@ automation:
|
|||
payload: "get-status"
|
||||
|
||||
- alias: 'Garage Door State Change'
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
|
@ -188,3 +187,88 @@ 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'
|
||||
|
||||
##############################################################################
|
||||
|
||||
- alias: Is the Garage door Open at night - Checks every 30 minutes or 5 minutes after we drive away.
|
||||
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: '/45'
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
to: not_home
|
||||
for: 00:05:00
|
||||
- platform: state
|
||||
entity_id: input_boolean.tv_time
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
for: 00:05:00
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.large_garage') == 'opened' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.small_garage') == 'opened' }}"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.large_garage') == 'opened' }}"
|
||||
- condition: template
|
||||
value_template: "{{ states('cover.small_garage') == 'opened'}}"
|
||||
|
||||
action:
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Check Garage Doors:'
|
||||
value1: "Small: {{ states('cover.small_garage')}}"
|
||||
value2: "Large: {{ states('cover.large_garage')}}"
|
||||
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')}}"
|
||||
|
|
Loading…
Reference in New Issue