This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-10-04 21:11:20 +05:00
parent d3fbb28472
commit 1765c3078e
2 changed files with 19 additions and 19 deletions

View File

@@ -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 %}