Update BETA_blueprint.yaml
This commit is contained in:
@@ -65,6 +65,28 @@ blueprint:
|
|||||||
entity:
|
entity:
|
||||||
domain:
|
domain:
|
||||||
- sensor
|
- 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 #####
|
##### Button #####
|
||||||
entity01:
|
entity01:
|
||||||
@@ -653,9 +675,12 @@ variables:
|
|||||||
outdoortemp: !input "outdoortemp"
|
outdoortemp: !input "outdoortemp"
|
||||||
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
|
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
|
||||||
weather: !input "weather"
|
weather: !input "weather"
|
||||||
# nextion_inited: "switch.{{ nspanel_name }}_nextion_inited"
|
|
||||||
nextion_inited: !input "nextion_inited"
|
nextion_inited: !input "nextion_inited"
|
||||||
language: !input "language"
|
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_off: "90"
|
||||||
button_light_on: "91"
|
button_light_on: "91"
|
||||||
button_switch_off: "92"
|
button_switch_off: "92"
|
||||||
@@ -910,6 +935,16 @@ trigger:
|
|||||||
# minutes: "10"
|
# minutes: "10"
|
||||||
# id: weather_update
|
# 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 #####
|
##### Button01 Sync - Trigger #####
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input "entity01"
|
entity_id: !input "entity01"
|
||||||
@@ -1412,6 +1447,44 @@ action:
|
|||||||
data:
|
data:
|
||||||
cmd: "{{ entity_back }}"
|
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 #####
|
##### TFT Upload Automation #####
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
|||||||
Reference in New Issue
Block a user