Update BETA_blueprint.yaml

This commit is contained in:
Blackymas
2022-10-22 00:39:03 +02:00
committed by GitHub
parent 93dbb85d60
commit 3e597daa61

View File

@@ -22,6 +22,11 @@ blueprint:
default: /config/www/nspanel/buero/nspanel_buero.tft default: /config/www/nspanel/buero/nspanel_buero.tft
selector: selector:
text: {} text: {}
# nextion_inited:
# name: NSPanel "Nextion Switch - nextion_inited"
# description: 'nextion_inited is set up via esphome and shows the state of the Nspanel - NSPanel ready after Reboot (same NSPanel as **"last click"**) Example *"switch.nspanel_buero_nextion_inited"*'
# selector:
# entity: {}
weather: weather:
name: Weather Integration (coming soon) name: Weather Integration (coming soon)
description: select our Weather Integration description: select our Weather Integration
@@ -36,11 +41,6 @@ blueprint:
default: [] default: []
selector: selector:
text: {} text: {}
nextion_inited:
name: NSPanel "Nextion Switch - nextion_inited"
description: 'nextion_inited is set up via esphome and shows the state of the Nspanel - NSPanel ready after Reboot (same NSPanel as **"last click"**) Example *"switch.nspanel_buero_nextion_inited"*'
selector:
entity: {}
outdoortemp: outdoortemp:
name: Outdoor Temperature Sensor (Optional) name: Outdoor Temperature Sensor (Optional)
description: select the Temperature Sensor. If no outdoor sensor available write "default" or "accuweather" to use the outdoor temperature of the selected Weather Integration. This value is displayed on the Home Page an Thermostat Page description: select the Temperature Sensor. If no outdoor sensor available write "default" or "accuweather" to use the outdoor temperature of the selected Weather Integration. This value is displayed on the Home Page an Thermostat Page
@@ -252,7 +252,7 @@ blueprint:
- light - light
- switch - switch
- cover - cover
- input_boolean - input_rightoolean
entity10_name: entity10_name:
name: Name "Button 10" (Optional) name: Name "Button 10" (Optional)
description: Button label - 10 characters are supported description: Button label - 10 characters are supported
@@ -657,10 +657,13 @@ max: 5000
# #
######################################### #########################################
trigger_variables: trigger_variables:
nspanel_trigger: !input "nspanel_name" nspanel_name_trigger: !input "nspanel_name"
last_click: "sensor.{{ nspanel_trigger }}_last_click" last_click: "sensor.{{ nspanel_name_trigger }}_last_click"
last_click_lightsettings: "sensor.{{ nspanel_trigger }}_last_click_lightsettings" last_click_lightsettings: "sensor.{{ nspanel_name_trigger }}_last_click_lightsettings"
last_click_coversettings: "sensor.{{ nspanel_trigger }}_last_click_coversettings" last_click_coversettings: "sensor.{{ nspanel_name_trigger }}_last_click_coversettings"
left_button: "binary_sensor.{{ nspanel_name_trigger }}_left_button"
right_button: "binary_sensor.{{ nspanel_name_trigger }}_right_button"
nextion_inited_trigger: "switch.{{ nspanel_name_trigger }}_nextion_inited"
variables: variables:
nspanel_name: !input "nspanel_name" nspanel_name: !input "nspanel_name"
@@ -671,15 +674,13 @@ variables:
command_background_color: "esphome.{{ nspanel_name }}_send_command_background_color" command_background_color: "esphome.{{ nspanel_name }}_send_command_background_color"
tft_upload: esphome.{{ nspanel_name }}_upload_tft tft_upload: esphome.{{ nspanel_name }}_upload_tft
tft_path: !input "tft_path" tft_path: !input "tft_path"
# nextion_inited: !input "nextion_inited"
humidity: !input "humidity" humidity: !input "humidity"
hotwatertemp: !input "hotwatertemp" hotwatertemp: !input "hotwatertemp"
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: !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' left_button_entity: !input 'left_button_entity'
right_button_entity: !input 'right_button_entity' right_button_entity: !input 'right_button_entity'
button_light_off: "90" button_light_off: "90"
@@ -852,74 +853,101 @@ trigger:
path: !input "tft_path" path: !input "tft_path"
id: tft_upload id: tft_upload
#### NSPanel boot Step 0 - Start #### #### NSPanel boot Step 0 - Start #### nextion_inited_trigger
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
# id: nspanel_boot_start
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
id: nspanel_boot_start id: nspanel_boot_start
#### NSPanel boot Step 1 - Language #### #### NSPanel boot Step 1 - Language ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 5 # seconds: 5
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:5"
id: nspanel_boot_language id: nspanel_boot_language
#### NSPanel boot Step 2 - Buttonpage 1 #### #### NSPanel boot Step 2 - Buttonpage 1 ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 10 # seconds: 10
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:10"
id: nspanel_boot_buttonpage01 id: nspanel_boot_buttonpage01
#### NSPanel boot Step 3 - Buttonpage 2 #### #### NSPanel boot Step 3 - Buttonpage 2 ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 15 # seconds: 15
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:15"
id: nspanel_boot_buttonpage02 id: nspanel_boot_buttonpage02
#### NSPanel boot Step 4 - Buttonpage 3 #### #### NSPanel boot Step 4 - Buttonpage 3 ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 20 # seconds: 20
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:20"
id: nspanel_boot_buttonpage03 id: nspanel_boot_buttonpage03
#### NSPanel boot Step 5 - Buttonpage 4 #### #### NSPanel boot Step 5 - Buttonpage 4 ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 25 # seconds: 25
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:25"
id: nspanel_boot_buttonpage04 id: nspanel_boot_buttonpage04
#### NSPanel boot Step 6 - Weather #### #### NSPanel boot Step 6 - Weather ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 30 # seconds: 30
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:30"
id: nspanel_boot_weather id: nspanel_boot_weather
#### NSPanel boot Step 7 - Entities #### #### NSPanel boot Step 7 - Entities ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 35 # seconds: 35
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:35"
id: nspanel_boot_entities id: nspanel_boot_entities
#### NSPanel boot Step 8 - Entities #### #### NSPanel boot Step 8 - Entities ####
- platform: state # - platform: state
entity_id: !input "nextion_inited" # entity_id: !input "nextion_inited"
to: "on" # to: "on"
for: # for:
seconds: 50 # seconds: 50
- platform: template
value_template: '{{ states(nextion_inited_trigger) is match "on" }}'
for: "00:00:50"
id: nspanel_boot_finish id: nspanel_boot_finish
######################################################################################################################## ########################################################################################################################
@@ -935,7 +963,7 @@ trigger:
- platform: template - platform: template
value_template: '{{ states(last_click) is match "press" }}' value_template: '{{ states(last_click) is match "press" }}'
for: for:
seconds: 2 seconds: 1
id: long_press id: long_press
##### Page Lightsettings - Trigger ##### ##### Page Lightsettings - Trigger #####
@@ -996,14 +1024,14 @@ trigger:
id: outdoortemp_state id: outdoortemp_state
##### Left Button - Trigger ##### ##### Left Button - Trigger #####
# - platform: template - platform: template
# value_template: '{{ states(left_button) == "on" }}' value_template: '{{ states(left_button) is match "on" }}'
# id: left_button_press id: left_button_press
##### Right Button - Trigger ##### ##### Right Button - Trigger #####
# - platform: template - platform: template
# value_template: '{{ states(right_button) == "on" }}' value_template: '{{ states(right_button) is match "off" }}'
# id: right_button_press id: right_button_press
######################################################################################################################## ########################################################################################################################
@@ -1560,11 +1588,20 @@ action:
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: lightsettings.a03 component: lightsettings.a03
message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %' message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 255) |round(0) }} %'
- service: "{{ command_value }}"
data:
component: lightsettings.lightslider
message: '{{ (state_attr(entity_long, "brightness") | int ) |round(0) }}'
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: lightsettings.a04 component: lightsettings.a04
message: '{{ state_attr(entity_long, "color_temp") |int }}' message: '{{ (state_attr(entity_long, "color_temp") | int ) |round(0) }}'
- service: "{{ command_value }}"
data:
component: lightsettings.tempslider
message: '{{ (state_attr(entity_long, "color_temp") | int ) |round(0) }}'
##### Page Lightsettings - SYNC Light Button ON / OFF ##### ##### Page Lightsettings - SYNC Light Button ON / OFF #####
- choose: - choose:
@@ -1590,11 +1627,11 @@ action:
- service: light.turn_on - service: light.turn_on
data: data:
entity_id: "{{ entity_long }}" entity_id: "{{ entity_long }}"
brightness_pct: '{{ states(last_click_lightsettings) |replace("brightness","") | int }}' brightness: '{{ states(last_click_lightsettings) |replace("brightness","") | int }}'
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: lightsettings.a03 component: lightsettings.a03
message: '{{ states(last_click_lightsettings) |replace("brightness","") | int }} %' message: '{{ ((states(last_click_lightsettings) |replace("brightness","") | int) * 100 /255) |round(0) }} %'
##### Page Lightsettings - Color_Temp Slider ##### ##### Page Lightsettings - Color_Temp Slider #####
- choose: - choose:
@@ -1642,12 +1679,14 @@ action:
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: lightsettings.a03 component: lightsettings.a03
message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 254) |round(0) }} %' message: '{{ (state_attr(entity_long, "brightness") | int * 100 / 255) |round(0) }} %'
- service: "{{ command_text_printf }}" - service: "{{ command_text_printf }}"
data: data:
component: lightsettings.a04 component: lightsettings.a04
message: '{{ state_attr(entity_long, "color_temp") |int }}' message: '{{ state_attr(entity_long, "color_temp") |int }}'
##### Page Lightsettings - Close Lightsettings ##### ##### Page Lightsettings - Close Lightsettings #####
- choose: - choose:
- conditions: - conditions:
@@ -1679,6 +1718,10 @@ action:
data: data:
component: coversettings.a04 component: coversettings.a04
message: '{{ (state_attr(entity_long, "battery") | int ) |round(0) }} %' message: '{{ (state_attr(entity_long, "battery") | int ) |round(0) }} %'
- service: "{{ command_value }}"
data:
component: coversettings.coverslider
message: '{{ (state_attr(entity_long, "current_position") | int ) |round(0) }}'
##### Page Coversettings - SYNC Cover Button ON / OFF ##### ##### Page Coversettings - SYNC Cover Button ON / OFF #####
- choose: - choose:
@@ -1710,6 +1753,7 @@ action:
component: coversettings.a03 component: coversettings.a03
message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }} %' message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }} %'
##### Page Coversettings - Toggle Cover ##### ##### Page Coversettings - Toggle Cover #####
- choose: - choose:
- conditions: - conditions:
@@ -1727,6 +1771,10 @@ action:
data: data:
component: coversettings.a03 component: coversettings.a03
message: '{{ (state_attr(entity_long, "current_position") | int ) |round(0) }} %' message: '{{ (state_attr(entity_long, "current_position") | int ) |round(0) }} %'
- service: "{{ command_value }}"
data:
component: coversettings.coverslider
message: '{{ (state_attr(entity_long, "current_position") | int ) |round(0) }}'
##### Page Coversettings - Close Coversettings ##### ##### Page Coversettings - Close Coversettings #####
- choose: - choose:
@@ -1846,42 +1894,42 @@ action:
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°" message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
##### Left Button - Toggle ##### ##### Left Button - Toggle #####
# - choose: - choose:
# - conditions: - conditions:
# - condition: trigger - condition: trigger
# id: left_button_press id: left_button_press
# 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
# {% endif %} {% endif %}
# data: data:
# entity_id: "{{ left_button_entity }}" entity_id: "{{ left_button_entity }}"
##### Right Button - Toggle ##### ##### Right Button - Toggle #####
# - choose: - choose:
# - conditions: - conditions:
# - condition: trigger - condition: trigger
# id: right_button_press id: right_button_press
# 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
# {% endif %} {% endif %}
# data: data:
# entity_id: "{{ right_button_entity }}" entity_id: "{{ right_button_entity }}"