upd: remove unnecessary choose
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#########################################
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user