Home
This commit is contained in:
@@ -1,18 +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 %}
|
||||
#- platform: template
|
||||
# switches:
|
||||
# gas_kocheg_kran:
|
||||
# value_template: "{{ is_state_attr('switch.gas_kocheg_kran', 'on') }}"
|
||||
# turn_on:
|
||||
# service: switch.turn_on
|
||||
# data:
|
||||
# entity_id: switch.gas_kocheg_kran
|
||||
# turn_off:
|
||||
# service: switch.turn_off
|
||||
# data:
|
||||
# entity_id: switch.gas_kocheg_kran
|
||||
# icon_template: >-
|
||||
# {% if is_state('switch.kontroller_kocheg_a8_open_gas','on') %}
|
||||
# mdi:mdi:fire
|
||||
# {% else %}
|
||||
# mdi:mdi:fire-circle
|
||||
# {% endif %}
|
||||
Reference in New Issue
Block a user