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

@@ -16,7 +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 #switch: !include switches.yaml
#template: !include template.yaml #template: !include template.yaml

View File

@@ -1,18 +1,18 @@
- platform: template #- platform: template
switches: # switches:
garage: # gas_kocheg_kran:
value_template: "{{ is_state('cover.garage_door', 'on') }}" # value_template: "{{ is_state_attr('switch.gas_kocheg_kran', 'on') }}"
turn_on: # turn_on:
service: cover.open_cover # service: switch.turn_on
data: # data:
entity_id: cover.garage_door # entity_id: switch.gas_kocheg_kran
turn_off: # turn_off:
service: cover.close_cover # service: switch.turn_off
data: # data:
entity_id: cover.garage_door # entity_id: switch.gas_kocheg_kran
icon_template: >- # icon_template: >-
{% if is_state('cover.garage_door', 'open') %} # {% if is_state('switch.kontroller_kocheg_a8_open_gas','on') %}
mdi:garage-open # mdi:mdi:fire
{% else %} # {% else %}
mdi:garage # mdi:mdi:fire-circle
{% endif %} # {% endif %}