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