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*'
@@ -3252,6 +3262,16 @@ action:
cover.toggle
{% elif left_button_entity is match 'input_boolean.' %}
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 }}"
@@ -3293,6 +3313,16 @@ action:
cover.toggle
{% elif right_button_entity is match 'input_boolean.' %}
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 }}"