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*'
|
||||||
@@ -3245,13 +3255,23 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: >-
|
- service: >-
|
||||||
{% if left_button_entity is match 'light.' %}
|
{% if left_button_entity is match 'light.' %}
|
||||||
light.toggle
|
light.toggle
|
||||||
{% elif left_button_entity is match 'switch.' %}
|
{% elif left_button_entity is match 'switch.' %}
|
||||||
switch.toggle
|
switch.toggle
|
||||||
{% elif left_button_entity is match 'cover.' %}
|
{% elif left_button_entity is match 'cover.' %}
|
||||||
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 }}"
|
||||||
@@ -3286,13 +3306,23 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: >-
|
- service: >-
|
||||||
{% if right_button_entity is match 'light.' %}
|
{% if right_button_entity is match 'light.' %}
|
||||||
light.toggle
|
light.toggle
|
||||||
{% elif right_button_entity is match 'switch.' %}
|
{% elif right_button_entity is match 'switch.' %}
|
||||||
switch.toggle
|
switch.toggle
|
||||||
{% elif right_button_entity is match 'cover.' %}
|
{% elif right_button_entity is match 'cover.' %}
|
||||||
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