upd: additional domains for hw-buttons

This commit is contained in:
Chris
2022-12-22 14:59:24 +01:00
parent a1e420e2cf
commit 805317e865

View File

@@ -182,6 +182,11 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
- switch
- input_boolean
- cover
- automation
- button
- input_button
- scene
- script
left_button_name:
name: Name "Left Button" (Optional)
description: '* *Left Button label - 10 characters are supported*'
@@ -199,6 +204,11 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
- switch
- input_boolean
- cover
- automation
- button
- input_button
- scene
- script
right_button_name:
name: Name "Right Button" (Optional)
description: '* *Right Button label - 10 characters are supported*'
@@ -3245,13 +3255,23 @@ action:
sequence:
- service: >-
{% if left_button_entity is match 'light.' %}
light.toggle
light.toggle
{% elif left_button_entity is match 'switch.' %}
switch.toggle
switch.toggle
{% elif left_button_entity is match 'cover.' %}
cover.toggle
cover.toggle
{% elif left_button_entity is match 'input_boolean.' %}
input_boolean.toggle
input_boolean.toggle
{% elif left_button_entity is match 'automation.' %}
automation.toggle
{% elif left_button_entity is match 'button.' %}
button.press
{% elif left_button_entity is match 'input_button.' %}
input_button.press
{% elif left_button_entity is match 'scene.' %}
scene.turn_on
{% elif left_button_entity is match 'script.' %}
script.turn_on
{% endif %}
data:
entity_id: "{{ left_button_entity }}"
@@ -3286,13 +3306,23 @@ action:
sequence:
- service: >-
{% if right_button_entity is match 'light.' %}
light.toggle
light.toggle
{% elif right_button_entity is match 'switch.' %}
switch.toggle
switch.toggle
{% elif right_button_entity is match 'cover.' %}
cover.toggle
cover.toggle
{% elif right_button_entity is match 'input_boolean.' %}
input_boolean.toggle
input_boolean.toggle
{% elif right_button_entity is match 'automation.' %}
automation.toggle
{% elif right_button_entity is match 'button.' %}
button.press
{% elif right_button_entity is match 'input_button.' %}
input_button.press
{% elif right_button_entity is match 'scene.' %}
scene.turn_on
{% elif right_button_entity is match 'script.' %}
script.turn_on
{% endif %}
data:
entity_id: "{{ right_button_entity }}"