Update BETA_blueprint.yaml
This commit is contained in:
@@ -65,6 +65,28 @@ blueprint:
|
||||
entity:
|
||||
domain:
|
||||
- sensor
|
||||
left_button_entity:
|
||||
name: Left Button (Optional)
|
||||
description: Left Hardware Button - Select the entity that should be switched
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
- light
|
||||
- switch
|
||||
- input_boolean
|
||||
- cover
|
||||
right_button_entity:
|
||||
name: Right Button (Optional)
|
||||
description: Right Hardware Button - Select the entity that should be switched
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
- light
|
||||
- switch
|
||||
- input_boolean
|
||||
- cover
|
||||
|
||||
##### Button #####
|
||||
entity01:
|
||||
@@ -653,9 +675,12 @@ variables:
|
||||
outdoortemp: !input "outdoortemp"
|
||||
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
|
||||
weather: !input "weather"
|
||||
# nextion_inited: "switch.{{ nspanel_name }}_nextion_inited"
|
||||
nextion_inited: !input "nextion_inited"
|
||||
language: !input "language"
|
||||
left_button: binary_sensor.{{ nspanel_name }}_left_button
|
||||
right_button: binary_sensor.{{ nspanel_name }}_right_button
|
||||
left_button_entity: !input 'left_button_entity'
|
||||
right_button_entity: !input 'right_button_entity'
|
||||
button_light_off: "90"
|
||||
button_light_on: "91"
|
||||
button_switch_off: "92"
|
||||
@@ -910,6 +935,16 @@ trigger:
|
||||
# minutes: "10"
|
||||
# id: weather_update
|
||||
|
||||
##### Left Button - Trigger #####
|
||||
- platform: template
|
||||
value_template: '{{ left_button == "on" }}'
|
||||
id: left_button_press
|
||||
|
||||
##### Right Button - Trigger #####
|
||||
- platform: template
|
||||
value_template: '{{ states(right_button) == "on" }}'
|
||||
id: right_button_press
|
||||
|
||||
##### Button01 Sync - Trigger #####
|
||||
- platform: state
|
||||
entity_id: !input "entity01"
|
||||
@@ -1412,6 +1447,44 @@ action:
|
||||
data:
|
||||
cmd: "{{ entity_back }}"
|
||||
|
||||
##### Left Button - Toggle #####
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: left_button_press
|
||||
sequence:
|
||||
- service: >-
|
||||
{% if left_button_entity is match 'light.' %}
|
||||
light.toggle
|
||||
{% elif left_button_entity is match 'switch.' %}
|
||||
switch.toggle
|
||||
{% elif left_button_entity is match 'cover.' %}
|
||||
cover.toggle
|
||||
{% elif left_button_entity is match 'input_boolean.' %}
|
||||
input_boolean.toggle
|
||||
{% endif %}
|
||||
data:
|
||||
entity_id: "{{ left_button_entity }}"
|
||||
|
||||
##### Right Button - Toggle #####
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: right_button_press
|
||||
sequence:
|
||||
- service: >-
|
||||
{% if right_button_entity is match 'light.' %}
|
||||
light.toggle
|
||||
{% elif right_button_entity is match 'switch.' %}
|
||||
switch.toggle
|
||||
{% elif right_button_entity is match 'cover.' %}
|
||||
cover.toggle
|
||||
{% elif right_button_entity is match 'input_boolean.' %}
|
||||
input_boolean.toggle
|
||||
{% endif %}
|
||||
data:
|
||||
entity_id: "{{ right_button_entity }}"
|
||||
|
||||
##### TFT Upload Automation #####
|
||||
- choose:
|
||||
- conditions:
|
||||
|
||||
Reference in New Issue
Block a user