diff --git a/configuration.yaml b/configuration.yaml index 36785df..26ef0cb 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -16,7 +16,7 @@ script: !include scripts.yaml scene: !include scenes.yaml mqtt: !include mqtt.yaml climate: !include climate.yaml -switch: !include switches.yaml +#switch: !include switches.yaml #template: !include template.yaml diff --git a/switches.yaml b/switches.yaml index 922ed2f..5bd39fa 100644 --- a/switches.yaml +++ b/switches.yaml @@ -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 %} \ No newline at end of file +#- 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 %} \ No newline at end of file