Added cover for garaga door
This commit is contained in:
@@ -20,6 +20,7 @@ media_player: !include media_player.yaml
|
||||
input_number: !include input_number.yaml
|
||||
timer: !include timer.yaml
|
||||
switch: !include switch.yaml
|
||||
cover: !include cover.yaml
|
||||
|
||||
frontend:
|
||||
themes: !include_dir_merge_named themes
|
||||
|
||||
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