upd: remove unnecessary choose

This commit is contained in:
Chris
2022-10-29 22:17:10 +02:00
parent 0e0167619e
commit 05d42d4467

View File

@@ -1578,7 +1578,38 @@ action:
data:
component: "{{ component_to_update }}bri"
message: "{{ btn_bri_txt }}"
- conditions:
- condition: trigger
id: left_button_press
sequence:
- service: >-
{% if left_button_entity is match 'light.' %}
light.toggle
{% elif left_button_entity is match 'switch.' %}
switch.toggle
{% elif left_button_entity is match 'cover.' %}
cover.toggle
{% elif left_button_entity is match 'input_boolean.' %}
input_boolean.toggle
{% endif %}
data:
entity_id: "{{ left_button_entity }}"
- conditions:
- condition: trigger
id: right_button_press
sequence:
- service: >-
{% if right_button_entity is match 'light.' %}
light.toggle
{% elif right_button_entity is match 'switch.' %}
switch.toggle
{% elif right_button_entity is match 'cover.' %}
cover.toggle
{% elif right_button_entity is match 'input_boolean.' %}
input_boolean.toggle
{% endif %}
data:
entity_id: "{{ right_button_entity }}"
##### NSPanel Loading#####
- choose:
@@ -2493,50 +2524,6 @@ action:
component: thermostat.a07
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
##### Left Button - Toggle #####
- choose:
- conditions:
- condition: trigger
id: left_button_press
sequence:
- service: >-
{% if left_button_entity is match 'light.' %}
light.toggle
{% elif left_button_entity is match 'switch.' %}
switch.toggle
{% elif left_button_entity is match 'cover.' %}
cover.toggle
{% elif left_button_entity is match 'input_boolean.' %}
input_boolean.toggle
{% endif %}
data:
entity_id: "{{ left_button_entity }}"
##### Right Button - Toggle #####
- choose:
- conditions:
- condition: trigger
id: right_button_press
sequence:
- service: >-
{% if right_button_entity is match 'light.' %}
light.toggle
{% elif right_button_entity is match 'switch.' %}
switch.toggle
{% elif right_button_entity is match 'cover.' %}
cover.toggle
{% elif right_button_entity is match 'input_boolean.' %}
input_boolean.toggle
{% endif %}
data:
entity_id: "{{ right_button_entity }}"
#########################################
#