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
|
||||
- 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 }}"
|
||||
|
||||
Reference in New Issue
Block a user