Time to yank this from the Cloud. #642

This commit is contained in:
ccostan 2020-07-05 13:12:31 -04:00
parent 5e5c560761
commit e919938f40
2 changed files with 90 additions and 58 deletions

View File

@ -1 +1 @@
0.112.1
0.112.2

View File

@ -6,74 +6,103 @@
# 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: 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
sensor:
- platform: template
sensors:
small_garage_status:
friendly_name: 'State of the door'
entity_id: []
value_template: '{{ states.cover.small_garage.state }}'
small_garage_time_in_state:
friendly_name: 'Time Since Change'
entity_id: []
value_template: '{{ states.cover.small_garage.attributes["time_in_state"] }}'
small_garage_wifi_signal_strength:
entity_id: []
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.small_garage.attributes["wifi_signal_strength"] }}'
unit_of_measurement: 'dB'
small_garage_reflection_rate:
entity_id: []
friendly_name: 'Reflection Rate'
value_template: '{{ states.cover.small_garage.attributes["sensor_reflection_rate"] }}'
cover:
- platform: mqtt
name: "Small Garage Door"
command_topic: "garadget/Garadget Small/command"
state_topic: "garadget/Garadget Small/status"
value_template: >-
{% if value_json.status == 'closed' %}
closed
{% else %}
open
{% endif %}
device_class: 'garage'
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
- platform: mqtt
name: "Large Garage Door"
command_topic: "garadget/Garadget Large/command"
state_topic: "garadget/Garadget Large/status"
value_template: >-
{% if value_json.status == 'closed' %}
closed
{% else %}
open
{% endif %}
device_class: 'garage'
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
# sensor:
# - platform: template
# sensors:
# small_garage_status:
# friendly_name: 'State of the door'
# entity_id: []
# value_template: '{{ states.cover.small_garage.state }}'
# small_garage_time_in_state:
# friendly_name: 'Time Since Change'
# entity_id: []
# value_template: '{{ states.cover.small_garage.attributes["time_in_state"] }}'
# small_garage_wifi_signal_strength:
# entity_id: []
# friendly_name: 'WiFi strength'
# value_template: '{{ states.cover.small_garage.attributes["wifi_signal_strength"] }}'
# unit_of_measurement: 'dB'
# small_garage_reflection_rate:
# entity_id: []
# friendly_name: 'Reflection Rate'
# value_template: '{{ states.cover.small_garage.attributes["sensor_reflection_rate"] }}'
- platform: mqtt
name: 'Small Garage Brightness'
state_topic: 'garadget/Garadget Small/status'
unit_of_measurement: '%'
value_template: '{{ value_json.bright }}'
- platform: mqtt
name: 'Large Garage Brightness'
state_topic: 'garadget/Garadget Large/status'
unit_of_measurement: '%'
value_template: '{{ value_json.bright }}'
- platform: template
sensors:
large_garage_status:
friendly_name: 'State of the door'
entity_id: []
value_template: '{{ states.cover.large_garage.state }}'
large_garage_time_in_state:
friendly_name: 'Time Since Change'
entity_id: []
value_template: '{{ states.cover.large_garage.attributes["time_in_state"] }}'
large_garage_wifi_signal_strength:
entity_id: []
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.large_garage.attributes["wifi_signal_strength"] }}'
unit_of_measurement: 'dB'
large_garage_reflection_rate:
entity_id: []
friendly_name: 'Reflection Rate'
value_template: '{{ states.cover.large_garage.attributes["sensor_reflection_rate"] }}'
# - platform: template
# sensors:
# large_garage_status:
# friendly_name: 'State of the door'
# entity_id: []
# value_template: '{{ states.cover.large_garage.state }}'
# large_garage_time_in_state:
# friendly_name: 'Time Since Change'
# entity_id: []
# value_template: '{{ states.cover.large_garage.attributes["time_in_state"] }}'
# large_garage_wifi_signal_strength:
# entity_id: []
# friendly_name: 'WiFi strength'
# value_template: '{{ states.cover.large_garage.attributes["wifi_signal_strength"] }}'
# unit_of_measurement: 'dB'
# large_garage_reflection_rate:
# entity_id: []
# friendly_name: 'Reflection Rate'
# value_template: '{{ states.cover.large_garage.attributes["sensor_reflection_rate"] }}'
group:
garage_doors: # This group is used to check if doors are open or Closed.
@ -90,7 +119,7 @@ automation:
- alias: 'Update Garage Brightness'
trigger:
- platform: time_pattern
minutes: '/5'
minutes: '/1'
action:
- service: mqtt.publish
data:
@ -101,6 +130,9 @@ automation:
topic: "garadget/Garadget Large/command"
payload: "get-status"
- alias: 'Garage Door State Change'
trigger:
- platform: state