Added cover for garaga door
This commit is contained in:
20
cover.yaml
Normal file
20
cover.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
- platform: template
|
||||
covers:
|
||||
garage_door:
|
||||
friendly_name: "Garage Door"
|
||||
#This is what defines your garage door as being open (your sensor reports 7)
|
||||
value_template: "{{ is_state('binary_sensor.garage_door_sensor', 'on') }}"
|
||||
open_cover:
|
||||
service: switch.toggle
|
||||
data:
|
||||
entity_id: switch.garage_door
|
||||
close_cover:
|
||||
service: switch.toggle
|
||||
data:
|
||||
entity_id: switch.garage_door
|
||||
icon_template: >-
|
||||
{% if is_state('binary_sensor.garage_door_sensor', 'on') %}
|
||||
mdi:garage-open
|
||||
{% else %}
|
||||
mdi:garage
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user