Update BETA_blueprint.yaml

This commit is contained in:
Blackymas
2022-10-24 23:47:58 +02:00
committed by GitHub
parent 1f6e7b032a
commit 1d5cc122f8

View File

@@ -22,6 +22,12 @@ blueprint:
default: /config/www/nspanel/buero/nspanel_buero.tft
selector:
text: {}
delay_jump_page:
name: Delay to avoid sync problems
description: When switching pages, synchronization problems may occur due to the network / WLAN. To avoid this problem enter your value for the delay (milliseconds)
default: []
selector:
text: {}
weather:
name: Weather Integration (coming soon)
description: select our Weather Integration
@@ -83,7 +89,7 @@ blueprint:
- input_boolean
- cover
##### Button #####
##### Button #####
entity01:
name: Button 01 (Optional)
description: Nextion Editor - *buttonpage01.button01* **(ONLY light | switch | cover | input_boolean)**
@@ -669,17 +675,17 @@ variables:
command_printf: "esphome.{{ nspanel_name }}_send_command_printf"
command_font_color: "esphome.{{ nspanel_name }}_send_command_font_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"
# nextion_inited: !input "nextion_inited"
delay_jump_page: !input "delay_jump_page"
humidity: !input "humidity"
hotwatertemp: !input "hotwatertemp"
outdoortemp: !input "outdoortemp"
time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}"
weather: !input "weather"
language: !input "language"
left_button_entity: !input 'left_button_entity'
right_button_entity: !input 'right_button_entity'
left_button_entity: !input "left_button_entity"
right_button_entity: !input "right_button_entity"
# Icons Mapping
cover_pic_closed: "106"
@@ -761,7 +767,7 @@ variables:
accuweather_wind_day_4d: "sensor.{{ accuweather }}_wind_day_4d"
accuweather_wind_night_4d: "sensor.{{ accuweather }}_wind_night_4d"
##### Buttons #####
##### Buttons #####
entity01: !input "entity01"
entity01_name: !input "entity01_name"
entity02: !input "entity02"
@@ -1036,7 +1042,7 @@ trigger:
value_template: '{{ states(right_button) is match "off" }}'
id: right_button_press
########################################################################################################################
##### Button Sync Trigger #################################################################################################################
##### Button01 Sync - Trigger #####
- platform: state
@@ -1752,7 +1758,7 @@ action:
data:
cmd: page coversettings
- delay:
milliseconds: 250
milliseconds: "{{ delay_jump_page }}"
- service: "{{ command_value }}"
data:
component: coversettings.coverslider
@@ -1774,7 +1780,7 @@ action:
value_template: '{{ states(entity_long) == "open" }}'
then:
- delay:
milliseconds: 250
milliseconds: "{{ delay_jump_page }}"
- service: "{{ command_printf }}"
data:
cmd: coversettings.cover_status.pic={{ cover_pic_open }}
@@ -1783,7 +1789,7 @@ action:
value_template: '{{ states(entity_long) == "closed" }}'
then:
- delay:
milliseconds: 250
milliseconds: "{{ delay_jump_page }}"
- service: "{{ command_printf }}"
data:
cmd: coversettings.cover_status.pic={{ cover_pic_closed }}
@@ -1873,7 +1879,7 @@ action:
component: coversettings.cover_value
message: '{{ states(last_click_coversettings) |replace("coverposition","") | int }} %'
##### Page Coversettings - UP AND DOWN Cover #####
##### Page Coversettings - UP / DOWN / STOPCover #####
- choose:
- conditions:
- condition: trigger
@@ -1895,6 +1901,14 @@ action:
data:
entity_id: "{{ entity_long }}"
#####
- if:
- condition: template
value_template: '{{ states(last_click_coversettings) == "cover_stop_press" }}'
then:
- service: cover.stop_cover
data:
entity_id: "{{ entity_long }}"
#####
##### Page Coversettings - Close Coversettings #####
- choose:
@@ -2079,7 +2093,7 @@ action:
#########################################
################################################################################
####### buttonpage01.button01 #################################################################
####### buttonpage01.button01 #################################################################
################################################################################
- choose:
##### buttonpage01.button01 Light OFF #####
@@ -4943,7 +4957,6 @@ action:
component: buttonpage02.button01bri
message: '{{ (state_attr(entity09, "current_position") | int ) |round(0) }}%'
################################################################################
####### buttonpage02.button02 ########################################################################################
################################################################################
@@ -7490,7 +7503,6 @@ action:
component: buttonpage03.button01bri
message: '{{ (state_attr(entity17, "current_position") | int ) |round(0) }}%'
################################################################################
####### buttonpage03.button02 ########################################################################################
################################################################################
@@ -10037,7 +10049,6 @@ action:
component: buttonpage04.button01bri
message: '{{ (state_attr(entity25, "current_position") | int ) |round(0) }}%'
################################################################################
####### buttonpage04.button02 ########################################################################################
################################################################################
@@ -12292,6 +12303,7 @@ action:
- weather_update_time
- condition: template
value_template: '{{ weather == "Default" }}'
##### Weather Home Page Symbole Home Meteorologisk HA Default #####
sequence:
- if:
@@ -12420,6 +12432,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: home.a05.pic=15
##### Weather Forcast Today Symbole Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -12556,6 +12569,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather01.a03.pic=15
##### Weather Forcast Day 1 Symbole Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -12692,6 +12706,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather02.a03.pic=15
##### Weather Forcast Day 2 Symbole Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -12828,6 +12843,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather03.a03.pic=15
##### Weather Forcast Day 3 Symbole Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -12964,6 +12980,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather04.a03.pic=15
##### Weather Forcast Day 4 Symbole Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -13110,6 +13127,7 @@ action:
data:
component: weather01.a05 ### Temperature MAX ###
message: '{{state_attr(ha_weather,"temperature") | round(0)}}°'
##### Weather Forcast Day 1 "TEMP" Home Meteorologisk HA Default #####
- service: "{{ command_text_printf }}"
data:
@@ -13119,6 +13137,7 @@ action:
data:
component: weather02.a05 ### Temperature MAX ###
message: '{{state_attr(ha_weather,"forecast")[1].temperature | round(0)}}°'
##### Weather Forcast Day 2 "TEMP" Home Meteorologisk HA Default #####
- service: "{{ command_text_printf }}"
data:
@@ -13128,6 +13147,7 @@ action:
data:
component: weather03.a05 ### Temperature MAX ###
message: '{{state_attr(ha_weather,"forecast")[2].temperature | round(0)}}°'
##### Weather Forcast Day 3 "TEMP" Home Meteorologisk HA Default #####
- service: "{{ command_text_printf }}"
data:
@@ -13137,6 +13157,7 @@ action:
data:
component: weather04.a05 ### Temperature MAX ###
message: '{{state_attr(ha_weather,"forecast")[3].temperature | round(0)}}°'
##### Weather Forcast Day 4 "TEMP" Home Meteorologisk HA Default #####
- service: "{{ command_text_printf }}"
data:
@@ -13156,6 +13177,7 @@ action:
id: weather_update_state
- condition: template
value_template: '{{ weather == "Default" }}'
##### Weather Forcast Today "Details" Home Meteorologisk HA Default #####
sequence:
- if:
@@ -13202,6 +13224,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather01.p10.pic=53
##### Weather Forcast Day 1 "Details" Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -13247,6 +13270,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather02.p10.pic=53
##### Weather Forcast Day 2 "Details" Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -13292,6 +13316,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather03.p10.pic=53
##### Weather Forcast Day 3 "Details" Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -13337,6 +13362,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather04.p10.pic=53
##### Weather Forcast Day 4 "Details" Home Meteorologisk HA Default #####
- if:
- condition: template
@@ -13411,6 +13437,7 @@ action:
- weather_update_time
- condition: template
value_template: '{{ weather == "AccuWeather" }}'
##### Weather Home Page Symbole Home "AccuWeather" #####
sequence:
- if:
@@ -13539,6 +13566,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: home.a05.pic=15
##### Weather Forcast Today Symbole "AccuWeather" #####
- if:
- condition: template
@@ -13675,6 +13703,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather01.a03.pic=15
##### Weather Forcast Day 1 Symbole "AccuWeather" #####
- if:
- condition: template
@@ -13811,6 +13840,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather02.a03.pic=15
##### Weather Forcast Day 2 Symbole "AccuWeather" #####
- if:
- condition: template
@@ -13947,6 +13977,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather03.a03.pic=15
##### Weather Forcast Day 3 Symbole "AccuWeather" #####
- if:
- condition: template
@@ -14083,6 +14114,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather04.a03.pic=15
##### Weather Forcast Day 4 Symbole "AccuWeather" #####
- if:
- condition: template
@@ -14229,6 +14261,7 @@ action:
data:
component: weather01.a05 ### Temperature MAX ###
message: "{{states(accuweather_realfeel_temperature_max_0d) | round(0)}}°"
##### Weather Forcast Day 1 "TEMP" "AccuWeather" #####
- service: "{{ command_text_printf }}"
data:
@@ -14238,6 +14271,7 @@ action:
data:
component: weather02.a05 ### Temperature MAX ###
message: "{{states(accuweather_realfeel_temperature_max_1d) | round(0)}}°"
##### Weather Forcast Day 2 "TEMP" "AccuWeather" #####
- service: "{{ command_text_printf }}"
data:
@@ -14247,6 +14281,7 @@ action:
data:
component: weather03.a05 ### Temperature MAX ###
message: "{{states(accuweather_realfeel_temperature_max_2d) | round(0)}}°"
##### Weather Forcast Day 3 "TEMP" "AccuWeather" #####
- service: "{{ command_text_printf }}"
data:
@@ -14256,6 +14291,7 @@ action:
data:
component: weather04.a05 ### Temperature MAX ###
message: "{{states(accuweather_realfeel_temperature_max_3d) | round(0)}}°"
##### Weather Forcast Day 4 "TEMP" "AccuWeather" #####
- service: "{{ command_text_printf }}"
data:
@@ -14321,6 +14357,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather01.p10.pic=63
##### Weather Forcast Day 1 Details "AccuWeather" #####
- if:
- condition: template
@@ -14366,6 +14403,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather02.p10.pic=63
##### Weather Forcast Day 2 Details "AccuWeather" #####
- if:
- condition: template
@@ -14411,6 +14449,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather03.p10.pic=63
##### Weather Forcast Day 3 Details "AccuWeather" #####
- if:
- condition: template
@@ -14456,6 +14495,7 @@ action:
- service: "{{ command_printf }}"
data:
cmd: weather04.p10.pic=63
##### Weather Forcast Day 4 Details "AccuWeather" #####
- if:
- condition: template