Home
This commit is contained in:
@@ -16,6 +16,7 @@ script: !include scripts.yaml
|
|||||||
scene: !include scenes.yaml
|
scene: !include scenes.yaml
|
||||||
mqtt: !include mqtt.yaml
|
mqtt: !include mqtt.yaml
|
||||||
climate: !include climate.yaml
|
climate: !include climate.yaml
|
||||||
|
switch: !include switches.yaml
|
||||||
#template: !include template.yaml
|
#template: !include template.yaml
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
18
switches.yaml
Normal file
18
switches.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
- platform: template
|
||||||
|
switches:
|
||||||
|
garage:
|
||||||
|
value_template: "{{ is_state('cover.garage_door', 'on') }}"
|
||||||
|
turn_on:
|
||||||
|
service: cover.open_cover
|
||||||
|
data:
|
||||||
|
entity_id: cover.garage_door
|
||||||
|
turn_off:
|
||||||
|
service: cover.close_cover
|
||||||
|
data:
|
||||||
|
entity_id: cover.garage_door
|
||||||
|
icon_template: >-
|
||||||
|
{% if is_state('cover.garage_door', 'open') %}
|
||||||
|
mdi:garage-open
|
||||||
|
{% else %}
|
||||||
|
mdi:garage
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user