468
blueprint.yaml
468
blueprint.yaml
@@ -115,7 +115,7 @@ blueprint:
|
||||
entity01:
|
||||
name: Button 01 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button01* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -132,7 +132,7 @@ blueprint:
|
||||
entity02:
|
||||
name: Button 02 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button02* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -149,7 +149,7 @@ blueprint:
|
||||
entity03:
|
||||
name: Button 03 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button03* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -166,7 +166,7 @@ blueprint:
|
||||
entity04:
|
||||
name: Button 04 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button04* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -183,7 +183,7 @@ blueprint:
|
||||
entity05:
|
||||
name: Button 05 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -200,7 +200,7 @@ blueprint:
|
||||
entity06:
|
||||
name: Button 06 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button06* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -217,7 +217,7 @@ blueprint:
|
||||
entity07:
|
||||
name: Button 07 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button07* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -234,7 +234,7 @@ blueprint:
|
||||
entity08:
|
||||
name: Button 08 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button08* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -251,7 +251,7 @@ blueprint:
|
||||
entity09:
|
||||
name: Button 09 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button01* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -268,7 +268,7 @@ blueprint:
|
||||
entity10:
|
||||
name: Button 10 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button02* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -285,7 +285,7 @@ blueprint:
|
||||
entity11:
|
||||
name: Button 11 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button03* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -302,7 +302,7 @@ blueprint:
|
||||
entity12:
|
||||
name: Button 12 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button04* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -319,7 +319,7 @@ blueprint:
|
||||
entity13:
|
||||
name: Button 13 (Optional)
|
||||
description: Nextion Editor - *buttonpage01.button05* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -336,7 +336,7 @@ blueprint:
|
||||
entity14:
|
||||
name: Button 14 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button06* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -353,7 +353,7 @@ blueprint:
|
||||
entity15:
|
||||
name: Button 15 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button07* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -370,7 +370,7 @@ blueprint:
|
||||
entity16:
|
||||
name: Button 16 (Optional)
|
||||
description: Nextion Editor - *buttonpage02.button08* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -387,7 +387,7 @@ blueprint:
|
||||
entity17:
|
||||
name: Button 17 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button01* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -404,7 +404,7 @@ blueprint:
|
||||
entity18:
|
||||
name: Button 18 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button02* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -421,7 +421,7 @@ blueprint:
|
||||
entity19:
|
||||
name: Button 19 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button03* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -438,7 +438,7 @@ blueprint:
|
||||
entity20:
|
||||
name: Button 20 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button04* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -455,7 +455,7 @@ blueprint:
|
||||
entity21:
|
||||
name: Button 21 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button05* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -472,7 +472,7 @@ blueprint:
|
||||
entity22:
|
||||
name: Button 22 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button06* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -489,7 +489,7 @@ blueprint:
|
||||
entity23:
|
||||
name: Button 23 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button07* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -506,7 +506,7 @@ blueprint:
|
||||
entity24:
|
||||
name: Button 24 (Optional)
|
||||
description: Nextion Editor - *buttonpage03.button08* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -523,7 +523,7 @@ blueprint:
|
||||
entity25:
|
||||
name: Button 25 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button01* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -540,7 +540,7 @@ blueprint:
|
||||
entity26:
|
||||
name: Button 26 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button02* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -557,7 +557,7 @@ blueprint:
|
||||
entity27:
|
||||
name: Button 27 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button03* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -574,7 +574,7 @@ blueprint:
|
||||
entity28:
|
||||
name: Button 28 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button04* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -591,7 +591,7 @@ blueprint:
|
||||
entity29:
|
||||
name: Button 29 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button05* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -608,7 +608,7 @@ blueprint:
|
||||
entity30:
|
||||
name: Button 30 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button06* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -625,7 +625,7 @@ blueprint:
|
||||
entity31:
|
||||
name: Button 31 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button07* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -642,7 +642,7 @@ blueprint:
|
||||
entity32:
|
||||
name: Button 32 (Optional)
|
||||
description: Nextion Editor - *buttonpage04.button08* **(ONLY light | switch | cover | input_boolean)**
|
||||
default: switch.default_change_me
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
@@ -894,97 +894,97 @@ trigger:
|
||||
id: tft_upload
|
||||
|
||||
#### NSPanel boot Step 0 - Start #### nextion_inited_trigger
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# id: nspanel_boot_start
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# id: nspanel_boot_start
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
id: nspanel_boot_start
|
||||
|
||||
#### NSPanel boot Step 1 - Language ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 5
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 5
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:5"
|
||||
id: nspanel_boot_language
|
||||
|
||||
#### NSPanel boot Step 2 - Buttonpage 1 ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 10
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 10
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:10"
|
||||
id: nspanel_boot_buttonpage01
|
||||
|
||||
#### NSPanel boot Step 3 - Buttonpage 2 ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 15
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 15
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:15"
|
||||
id: nspanel_boot_buttonpage02
|
||||
|
||||
#### NSPanel boot Step 4 - Buttonpage 3 ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 20
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 20
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:20"
|
||||
id: nspanel_boot_buttonpage03
|
||||
|
||||
#### NSPanel boot Step 5 - Buttonpage 4 ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 25
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 25
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:25"
|
||||
id: nspanel_boot_buttonpage04
|
||||
|
||||
#### NSPanel boot Step 6 - Weather ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 30
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 30
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:30"
|
||||
id: nspanel_boot_weather
|
||||
|
||||
#### NSPanel boot Step 7 - Entities ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 35
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 35
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:35"
|
||||
id: nspanel_boot_entities
|
||||
|
||||
#### NSPanel boot Step 8 - Entities ####
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 50
|
||||
# - platform: state
|
||||
# entity_id: !input "nextion_inited"
|
||||
# to: "on"
|
||||
# for:
|
||||
# seconds: 50
|
||||
- platform: template
|
||||
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
|
||||
for: "00:00:50"
|
||||
@@ -1074,7 +1074,7 @@ trigger:
|
||||
id: right_button_press
|
||||
|
||||
##### Button Sync Trigger #################################################################################################################
|
||||
|
||||
|
||||
##### Button01 Sync - Trigger #####
|
||||
- platform: state
|
||||
entity_id: !input "entity01"
|
||||
@@ -1402,6 +1402,212 @@ action:
|
||||
|
||||
########################################################################################################################
|
||||
|
||||
# main - alias: "choose alias (name)"
|
||||
- choose:
|
||||
#### Update button on entity state_change ####
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id:
|
||||
- current_state_entity01
|
||||
- current_state_entity02
|
||||
- current_state_entity03
|
||||
- current_state_entity04
|
||||
- current_state_entity05
|
||||
- current_state_entity06
|
||||
- current_state_entity07
|
||||
- current_state_entity08
|
||||
- current_state_entity09
|
||||
- current_state_entity10
|
||||
- current_state_entity11
|
||||
- current_state_entity12
|
||||
- current_state_entity13
|
||||
- current_state_entity14
|
||||
- current_state_entity15
|
||||
- current_state_entity16
|
||||
- current_state_entity17
|
||||
- current_state_entity18
|
||||
- current_state_entity19
|
||||
- current_state_entity20
|
||||
- current_state_entity21
|
||||
- current_state_entity22
|
||||
- current_state_entity23
|
||||
- current_state_entity24
|
||||
- current_state_entity25
|
||||
- current_state_entity26
|
||||
- current_state_entity27
|
||||
- current_state_entity28
|
||||
- current_state_entity29
|
||||
- current_state_entity30
|
||||
- current_state_entity31
|
||||
- current_state_entity32
|
||||
sequence:
|
||||
- alias: "Set variable(s) for entity change"
|
||||
variables:
|
||||
component_to_update: >-
|
||||
{%- if trigger.entity_id == entity01 -%} buttonpage01.button01
|
||||
{%- elif trigger.entity_id == entity02 -%} buttonpage01.button02
|
||||
{%- elif trigger.entity_id == entity03 -%} buttonpage01.button03
|
||||
{%- elif trigger.entity_id == entity04 -%} buttonpage01.button04
|
||||
{%- elif trigger.entity_id == entity05 -%} buttonpage01.button05
|
||||
{%- elif trigger.entity_id == entity06 -%} buttonpage01.button06
|
||||
{%- elif trigger.entity_id == entity07 -%} buttonpage01.button07
|
||||
{%- elif trigger.entity_id == entity08 -%} buttonpage01.button08
|
||||
{%- elif trigger.entity_id == entity09 -%} buttonpage02.button01
|
||||
{%- elif trigger.entity_id == entity10 -%} buttonpage02.button02
|
||||
{%- elif trigger.entity_id == entity11 -%} buttonpage02.button03
|
||||
{%- elif trigger.entity_id == entity12 -%} buttonpage02.button04
|
||||
{%- elif trigger.entity_id == entity13 -%} buttonpage02.button05
|
||||
{%- elif trigger.entity_id == entity14 -%} buttonpage02.button06
|
||||
{%- elif trigger.entity_id == entity15 -%} buttonpage02.button07
|
||||
{%- elif trigger.entity_id == entity16 -%} buttonpage02.button08
|
||||
{%- elif trigger.entity_id == entity17 -%} buttonpage03.button01
|
||||
{%- elif trigger.entity_id == entity18 -%} buttonpage03.button02
|
||||
{%- elif trigger.entity_id == entity19 -%} buttonpage03.button03
|
||||
{%- elif trigger.entity_id == entity20 -%} buttonpage03.button04
|
||||
{%- elif trigger.entity_id == entity21 -%} buttonpage03.button05
|
||||
{%- elif trigger.entity_id == entity22 -%} buttonpage03.button06
|
||||
{%- elif trigger.entity_id == entity23 -%} buttonpage03.button07
|
||||
{%- elif trigger.entity_id == entity24 -%} buttonpage03.button08
|
||||
{%- elif trigger.entity_id == entity25 -%} buttonpage04.button01
|
||||
{%- elif trigger.entity_id == entity26 -%} buttonpage04.button02
|
||||
{%- elif trigger.entity_id == entity27 -%} buttonpage04.button03
|
||||
{%- elif trigger.entity_id == entity28 -%} buttonpage04.button04
|
||||
{%- elif trigger.entity_id == entity29 -%} buttonpage04.button05
|
||||
{%- elif trigger.entity_id == entity30 -%} buttonpage04.button06
|
||||
{%- elif trigger.entity_id == entity31 -%} buttonpage04.button07
|
||||
{%- elif trigger.entity_id == entity32 -%} buttonpage04.button08
|
||||
{%- endif -%}
|
||||
# Button PIC
|
||||
btn_pic: >-
|
||||
{%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' -%} {{ button_light_on }}
|
||||
{%- elif trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'off' -%} {{ button_light_off }}
|
||||
{%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'on' -%} {{ button_switch_on }}
|
||||
{%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'off' -%} {{ button_switch_off }}
|
||||
{%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'on' -%} {{ button_switch_on }}
|
||||
{%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'off' -%} {{ button_switch_off }}
|
||||
{%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'on' -%} {{ button_cover_on }}
|
||||
{%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'off' -%} {{ button_cover_off }}
|
||||
{%- endif -%}
|
||||
# TEXT and BRIGHTNESS Background
|
||||
btn_bg: >-
|
||||
{%- if trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ button_color_1 }}
|
||||
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ button_color_2 }}
|
||||
{%- endif -%}
|
||||
# TEXT Font
|
||||
btn_txt_font: >-
|
||||
{%- if trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ button_color_2 }}
|
||||
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ button_color_1 }}
|
||||
{%- endif -%}
|
||||
# BRIGHTNESS Font
|
||||
btn_bri_font: "{{ button_color_2 }}"
|
||||
# BTN Label
|
||||
btn_label: >-
|
||||
{%- if trigger.entity_id == entity01 -%} {{ entity01_name }}
|
||||
{%- elif trigger.entity_id == entity02 -%} {{ entity02_name }}
|
||||
{%- elif trigger.entity_id == entity03 -%} {{ entity03_name }}
|
||||
{%- elif trigger.entity_id == entity04 -%} {{ entity04_name }}
|
||||
{%- elif trigger.entity_id == entity05 -%} {{ entity05_name }}
|
||||
{%- elif trigger.entity_id == entity06 -%} {{ entity06_name }}
|
||||
{%- elif trigger.entity_id == entity07 -%} {{ entity07_name }}
|
||||
{%- elif trigger.entity_id == entity08 -%} {{ entity08_name }}
|
||||
{%- elif trigger.entity_id == entity09 -%} {{ entity09_name }}
|
||||
{%- elif trigger.entity_id == entity10 -%} {{ entity10_name }}
|
||||
{%- elif trigger.entity_id == entity11 -%} {{ entity11_name }}
|
||||
{%- elif trigger.entity_id == entity12 -%} {{ entity12_name }}
|
||||
{%- elif trigger.entity_id == entity13 -%} {{ entity13_name }}
|
||||
{%- elif trigger.entity_id == entity14 -%} {{ entity14_name }}
|
||||
{%- elif trigger.entity_id == entity15 -%} {{ entity15_name }}
|
||||
{%- elif trigger.entity_id == entity16 -%} {{ entity16_name }}
|
||||
{%- elif trigger.entity_id == entity17 -%} {{ entity17_name }}
|
||||
{%- elif trigger.entity_id == entity18 -%} {{ entity18_name }}
|
||||
{%- elif trigger.entity_id == entity19 -%} {{ entity19_name }}
|
||||
{%- elif trigger.entity_id == entity20 -%} {{ entity20_name }}
|
||||
{%- elif trigger.entity_id == entity21 -%} {{ entity21_name }}
|
||||
{%- elif trigger.entity_id == entity22 -%} {{ entity22_name }}
|
||||
{%- elif trigger.entity_id == entity23 -%} {{ entity23_name }}
|
||||
{%- elif trigger.entity_id == entity24 -%} {{ entity24_name }}
|
||||
{%- elif trigger.entity_id == entity25 -%} {{ entity25_name }}
|
||||
{%- elif trigger.entity_id == entity26 -%} {{ entity26_name }}
|
||||
{%- elif trigger.entity_id == entity27 -%} {{ entity27_name }}
|
||||
{%- elif trigger.entity_id == entity28 -%} {{ entity28_name }}
|
||||
{%- elif trigger.entity_id == entity29 -%} {{ entity29_name }}
|
||||
{%- elif trigger.entity_id == entity30 -%} {{ entity30_name }}
|
||||
{%- elif trigger.entity_id == entity31 -%} {{ entity31_name }}
|
||||
{%- elif trigger.entity_id == entity32 -%} {{ entity32_name }}
|
||||
{%- endif -%}
|
||||
btn_bri_txt: >-
|
||||
{%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' -%} {{ (trigger.to_state.attributes.brightness | int * 100 /254) | round(0) }}%
|
||||
{%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'open' -%} {{ (trigger.to_state.attributes.current_position | int) | round(0) }}%
|
||||
{%- else -%} " "
|
||||
{%- endif -%}
|
||||
|
||||
##### Button PIC #####
|
||||
- service: "{{ command_printf }}"
|
||||
data:
|
||||
cmd: "{{ component_to_update }}pic.pic={{ btn_pic }}"
|
||||
##### TEXT Background #####
|
||||
- service: "{{ command_background_color }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}text"
|
||||
message: "{{ btn_bg }}"
|
||||
##### TEXT Font Color #####
|
||||
- service: "{{ command_font_color }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}text"
|
||||
message: "{{ btn_txt_font }}"
|
||||
##### BRIGHTNESS Background Color #####
|
||||
- service: "{{ command_background_color }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}bri"
|
||||
message: "{{ btn_bg }}"
|
||||
##### BRIGHTNESS Font Color #####
|
||||
- service: "{{ command_font_color }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}bri"
|
||||
message: "{{ btn_bri_font }}"
|
||||
##### "TEXT" Label #####
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}text"
|
||||
message: "{{ btn_label }}"
|
||||
##### "BRIGHTNESS" Text #####
|
||||
- service: "{{ command_text_printf }}"
|
||||
data:
|
||||
component: "{{ component_to_update }}bri"
|
||||
message: "{{ btn_bri_txt }}"
|
||||
- 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 }}"
|
||||
- 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 }}"
|
||||
|
||||
##### NSPanel Loading#####
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -2315,50 +2521,6 @@ action:
|
||||
component: thermostat.a07
|
||||
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
|
||||
|
||||
##### 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 }}"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#########################################
|
||||
#
|
||||
@@ -2392,7 +2554,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity01
|
||||
# - current_state_entity01
|
||||
sequence:
|
||||
##### buttonpage01.button01 Design Light OFF #####
|
||||
- if:
|
||||
@@ -2716,7 +2878,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity02
|
||||
# - current_state_entity02
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -3034,7 +3196,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity03
|
||||
# - current_state_entity03
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -3352,7 +3514,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity04
|
||||
# - current_state_entity04
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -3670,7 +3832,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity05
|
||||
# - current_state_entity05
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -3988,7 +4150,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity06
|
||||
# - current_state_entity06
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -4306,7 +4468,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity07
|
||||
# - current_state_entity07
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -4624,7 +4786,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage01
|
||||
- current_state_entity08
|
||||
# - current_state_entity08
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -4944,7 +5106,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity09
|
||||
# - current_state_entity09
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -5262,7 +5424,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity10
|
||||
# - current_state_entity10
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -5580,7 +5742,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity11
|
||||
# - current_state_entity11
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -5898,7 +6060,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity12
|
||||
# - current_state_entity12
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -6216,7 +6378,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity13
|
||||
# - current_state_entity13
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -6534,7 +6696,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity14
|
||||
# - current_state_entity14
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -6852,7 +7014,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity15
|
||||
# - current_state_entity15
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -7170,7 +7332,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage02
|
||||
- current_state_entity16
|
||||
# - current_state_entity16
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -7490,7 +7652,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity17
|
||||
# - current_state_entity17
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -7808,7 +7970,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity18
|
||||
# - current_state_entity18
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -8126,7 +8288,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity19
|
||||
# - current_state_entity19
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -8444,7 +8606,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity20
|
||||
# - current_state_entity20
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -8762,7 +8924,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity21
|
||||
# - current_state_entity21
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -9080,7 +9242,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity22
|
||||
# - current_state_entity22
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -9398,7 +9560,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity23
|
||||
# - current_state_entity23
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -9716,7 +9878,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage03
|
||||
- current_state_entity24
|
||||
# - current_state_entity24
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -10036,7 +10198,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity25
|
||||
# - current_state_entity25
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -10354,7 +10516,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity26
|
||||
# - current_state_entity26
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -10672,7 +10834,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity27
|
||||
# - current_state_entity27
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -10990,7 +11152,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity28
|
||||
# - current_state_entity28
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -11308,7 +11470,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity29
|
||||
# - current_state_entity29
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -11626,7 +11788,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity30
|
||||
# - current_state_entity30
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -11944,7 +12106,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity31
|
||||
# - current_state_entity31
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
@@ -12262,7 +12424,7 @@ action:
|
||||
- condition: trigger
|
||||
id:
|
||||
- nspanel_boot_buttonpage04
|
||||
- current_state_entity32
|
||||
# - current_state_entity32
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
|
||||
Reference in New Issue
Block a user