upd: additional domains for hw-buttons
This commit is contained in:
@@ -182,6 +182,11 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
|
|||||||
- switch
|
- switch
|
||||||
- input_boolean
|
- input_boolean
|
||||||
- cover
|
- cover
|
||||||
|
- automation
|
||||||
|
- button
|
||||||
|
- input_button
|
||||||
|
- scene
|
||||||
|
- script
|
||||||
left_button_name:
|
left_button_name:
|
||||||
name: Name "Left Button" (Optional)
|
name: Name "Left Button" (Optional)
|
||||||
description: '* *Left Button label - 10 characters are supported*'
|
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
|
- switch
|
||||||
- input_boolean
|
- input_boolean
|
||||||
- cover
|
- cover
|
||||||
|
- automation
|
||||||
|
- button
|
||||||
|
- input_button
|
||||||
|
- scene
|
||||||
|
- script
|
||||||
right_button_name:
|
right_button_name:
|
||||||
name: Name "Right Button" (Optional)
|
name: Name "Right Button" (Optional)
|
||||||
description: '* *Right Button label - 10 characters are supported*'
|
description: '* *Right Button label - 10 characters are supported*'
|
||||||
@@ -3252,6 +3262,16 @@ action:
|
|||||||
cover.toggle
|
cover.toggle
|
||||||
{% elif left_button_entity is match 'input_boolean.' %}
|
{% 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 %}
|
{% endif %}
|
||||||
data:
|
data:
|
||||||
entity_id: "{{ left_button_entity }}"
|
entity_id: "{{ left_button_entity }}"
|
||||||
@@ -3293,6 +3313,16 @@ action:
|
|||||||
cover.toggle
|
cover.toggle
|
||||||
{% elif right_button_entity is match 'input_boolean.' %}
|
{% 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 %}
|
{% endif %}
|
||||||
data:
|
data:
|
||||||
entity_id: "{{ right_button_entity }}"
|
entity_id: "{{ right_button_entity }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user