yamllint
This commit is contained in:
@@ -9523,13 +9523,15 @@ action:
|
||||
- '{{ nspanel_event.command == "short_click" and entity_domain not in ["climate", "media_player"] }}'
|
||||
sequence:
|
||||
- condition: '{{ last_click_button.entity | length > 0 }}'
|
||||
- condition: '{{ nspanel_event.component != "hw_bt_left" or hardware.buttons.left.entity != relay01_entity }}' ### Prevents blueprint control when locally controlled
|
||||
- condition: '{{ nspanel_event.component != "hw_bt_right" or hardware.buttons.right.entity != relay02_entity }}' ### Prevents blueprint control when locally controlled
|
||||
- condition: '{{ nspanel_event.component != "hw_bt_left" or hardware.buttons.left.entity != relay01_entity }}'
|
||||
- condition: '{{ nspanel_event.component != "hw_bt_right" or hardware.buttons.right.entity != relay02_entity }}'
|
||||
- &short_press-service_call
|
||||
if: '{{ true }}'
|
||||
then:
|
||||
- service: >
|
||||
{% if entity_domain in ["cover"] and states(last_click_button.entity) in ["opening", "closing"] and state_attr(last_click_button.entity, "supported_features") | int(0) | bitwise_and(4) == 0 %}
|
||||
{% if entity_domain in ["cover"]
|
||||
and states(last_click_button.entity) in ["opening", "closing"]
|
||||
and state_attr(last_click_button.entity, "supported_features") | int(0) | bitwise_and(4) == 0 %}
|
||||
{{ entity_domain }}.stop_cover
|
||||
{% elif entity_domain in ["light", "switch", "cover", "input_boolean", "fan", "remote"] %}
|
||||
{{ entity_domain }}.toggle
|
||||
|
||||
Reference in New Issue
Block a user