yamllint
This commit is contained in:
@@ -3967,19 +3967,19 @@ variables:
|
|||||||
switch: "\uE97D" # mdi:light-switch
|
switch: "\uE97D" # mdi:light-switch
|
||||||
unknown: "\uE027" # mdi:alert-circle
|
unknown: "\uE027" # mdi:alert-circle
|
||||||
weather:
|
weather:
|
||||||
lightning: "\uE592" # mdi:weather-lightning
|
lightning: "\uE592" # mdi:weather-lightning
|
||||||
protect: "\uF05C" # mdi:shield-sun
|
protect: "\uF05C" # mdi:shield-sun
|
||||||
rain: "\uE595" # mdi:weather-pouring
|
rain: "\uE595" # mdi:weather-pouring
|
||||||
sun: "\uE5A7" # mdi:white-balance-sunny
|
sun: "\uE5A7" # mdi:white-balance-sunny
|
||||||
wind: "\uE59C" # mdi:weather-windy
|
wind: "\uE59C" # mdi:weather-windy
|
||||||
gauge: "\uE299" # mdi:gauge
|
gauge: "\uE299" # mdi:gauge
|
||||||
unknown: "\uE027" # mdi:alert-circle
|
unknown: "\uE027" # mdi:alert-circle
|
||||||
pic:
|
pic:
|
||||||
button:
|
button:
|
||||||
"off": "35"
|
"off": "35"
|
||||||
"on": "36"
|
"on": "36"
|
||||||
weather:
|
weather:
|
||||||
sunny: '{{ "2" if sun_is_up else "15"}}' # some weather providers returns "sunny" for "clear-night"
|
sunny: '{{ "2" if sun_is_up else "15"}}' # some weather providers returns "sunny" for "clear-night"
|
||||||
cloudy: "3"
|
cloudy: "3"
|
||||||
rainy: "4"
|
rainy: "4"
|
||||||
pouring: "5"
|
pouring: "5"
|
||||||
@@ -4045,7 +4045,7 @@ variables:
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
mui:
|
mui:
|
||||||
bg: # Bulgarian
|
bg: # Bulgarian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Понеделник
|
mon: Понеделник
|
||||||
tue: Вторник
|
tue: Вторник
|
||||||
@@ -4116,7 +4116,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
cs: # Czech
|
cs: # Czech
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Pondělí
|
mon: Pondělí
|
||||||
tue: Úterý
|
tue: Úterý
|
||||||
@@ -4187,7 +4187,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
da: # Danish
|
da: # Danish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Mandag
|
mon: Mandag
|
||||||
tue: Tirsdag
|
tue: Tirsdag
|
||||||
@@ -4258,7 +4258,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
de: # German
|
de: # German
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Montag
|
mon: Montag
|
||||||
tue: Dienstag
|
tue: Dienstag
|
||||||
@@ -4329,7 +4329,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
el: # Greek
|
el: # Greek
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Δευτέρα
|
mon: Δευτέρα
|
||||||
tue: Τρίτη
|
tue: Τρίτη
|
||||||
@@ -4400,7 +4400,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
en: # English
|
en: # English
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Monday
|
mon: Monday
|
||||||
tue: Tuesday
|
tue: Tuesday
|
||||||
@@ -4471,7 +4471,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
es: # Spanish
|
es: # Spanish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Lunes
|
mon: Lunes
|
||||||
tue: Martes
|
tue: Martes
|
||||||
@@ -4542,7 +4542,7 @@ variables:
|
|||||||
bright: Brillante
|
bright: Brillante
|
||||||
dimming: Atenuación
|
dimming: Atenuación
|
||||||
dim: Oscuro
|
dim: Oscuro
|
||||||
et: # Estonian
|
et: # Estonian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Esmaspäev
|
mon: Esmaspäev
|
||||||
tue: Teisipäev
|
tue: Teisipäev
|
||||||
@@ -4613,7 +4613,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
fi: # Finnish
|
fi: # Finnish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: maanantai
|
mon: maanantai
|
||||||
tue: tiistai
|
tue: tiistai
|
||||||
@@ -4684,7 +4684,7 @@ variables:
|
|||||||
bright: Kirkas
|
bright: Kirkas
|
||||||
dimming: Himmennys
|
dimming: Himmennys
|
||||||
dim: Himmeä
|
dim: Himmeä
|
||||||
fr: # French
|
fr: # French
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Lundi
|
mon: Lundi
|
||||||
tue: Mardi
|
tue: Mardi
|
||||||
@@ -4755,7 +4755,7 @@ variables:
|
|||||||
bright: Clair
|
bright: Clair
|
||||||
dimming: Atténuation # Not in use at the moment
|
dimming: Atténuation # Not in use at the moment
|
||||||
dim: Sombre
|
dim: Sombre
|
||||||
he: # Hebrew
|
he: # Hebrew
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: ינש
|
mon: ינש
|
||||||
tue: ישילש
|
tue: ישילש
|
||||||
@@ -4826,7 +4826,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
hr: # Croatian
|
hr: # Croatian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Ponedjeljak
|
mon: Ponedjeljak
|
||||||
tue: Utorak
|
tue: Utorak
|
||||||
@@ -4897,7 +4897,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
hu: # Hungarian
|
hu: # Hungarian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Hétfő
|
mon: Hétfő
|
||||||
tue: Kedd
|
tue: Kedd
|
||||||
@@ -4968,7 +4968,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
id: # Indonesian
|
id: # Indonesian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Senin
|
mon: Senin
|
||||||
tue: Selasa
|
tue: Selasa
|
||||||
@@ -5039,7 +5039,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
it: # Italian
|
it: # Italian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Lunedì
|
mon: Lunedì
|
||||||
tue: Martedì
|
tue: Martedì
|
||||||
@@ -5110,7 +5110,7 @@ variables:
|
|||||||
bright: Modalità Luminosa
|
bright: Modalità Luminosa
|
||||||
dimming: Regolazione
|
dimming: Regolazione
|
||||||
dim: Reg.
|
dim: Reg.
|
||||||
lt: # Lithuanian
|
lt: # Lithuanian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Pirmadienis
|
mon: Pirmadienis
|
||||||
tue: Antradienis
|
tue: Antradienis
|
||||||
@@ -5181,7 +5181,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
lv: # Latvian
|
lv: # Latvian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Pirmdiena
|
mon: Pirmdiena
|
||||||
tue: Otrdiena
|
tue: Otrdiena
|
||||||
@@ -5252,7 +5252,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
nb: # Norwegian
|
nb: # Norwegian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Mandag
|
mon: Mandag
|
||||||
tue: Tirsdag
|
tue: Tirsdag
|
||||||
@@ -5323,7 +5323,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
nl: # Dutch
|
nl: # Dutch
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Maandag
|
mon: Maandag
|
||||||
tue: Dinsdag
|
tue: Dinsdag
|
||||||
@@ -5394,7 +5394,7 @@ variables:
|
|||||||
bright: Helder
|
bright: Helder
|
||||||
dimming: Dimmen # Not in use at the moment
|
dimming: Dimmen # Not in use at the moment
|
||||||
dim: Gedimd
|
dim: Gedimd
|
||||||
pl: # Polish
|
pl: # Polish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Poniedziałek
|
mon: Poniedziałek
|
||||||
tue: Wtorek
|
tue: Wtorek
|
||||||
@@ -5465,7 +5465,7 @@ variables:
|
|||||||
bright: Jasny
|
bright: Jasny
|
||||||
dimming: Ściemnianie
|
dimming: Ściemnianie
|
||||||
dim: Ciemny
|
dim: Ciemny
|
||||||
pt: # Portuguese
|
pt: # Portuguese
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Segunda-feira
|
mon: Segunda-feira
|
||||||
tue: Terça-feira
|
tue: Terça-feira
|
||||||
@@ -5536,7 +5536,7 @@ variables:
|
|||||||
bright: Claro
|
bright: Claro
|
||||||
dimming: Escurecer
|
dimming: Escurecer
|
||||||
dim: Escuro
|
dim: Escuro
|
||||||
ro: # Romanian
|
ro: # Romanian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Luni
|
mon: Luni
|
||||||
tue: Marți
|
tue: Marți
|
||||||
@@ -5607,7 +5607,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
ru: # Russian
|
ru: # Russian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Понедельник
|
mon: Понедельник
|
||||||
tue: Вторник
|
tue: Вторник
|
||||||
@@ -5678,7 +5678,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
sk: # Slovak
|
sk: # Slovak
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Pondelok
|
mon: Pondelok
|
||||||
tue: Utorok
|
tue: Utorok
|
||||||
@@ -5749,7 +5749,7 @@ variables:
|
|||||||
bright: Zosvetlenie
|
bright: Zosvetlenie
|
||||||
dimming: Stmavenie # Not in use at the moment
|
dimming: Stmavenie # Not in use at the moment
|
||||||
dim: Stmavenie
|
dim: Stmavenie
|
||||||
sl: # Slovenian
|
sl: # Slovenian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Ponedeljek
|
mon: Ponedeljek
|
||||||
tue: Torek
|
tue: Torek
|
||||||
@@ -5820,7 +5820,7 @@ variables:
|
|||||||
bright: Svetlo
|
bright: Svetlo
|
||||||
dimming: Zatemnitev
|
dimming: Zatemnitev
|
||||||
dim: Temno
|
dim: Temno
|
||||||
sv: # Swedish
|
sv: # Swedish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Måndag
|
mon: Måndag
|
||||||
tue: Tisdag
|
tue: Tisdag
|
||||||
@@ -5891,7 +5891,7 @@ variables:
|
|||||||
bright: Ljust
|
bright: Ljust
|
||||||
dimming: Dimmning
|
dimming: Dimmning
|
||||||
dim: Dimma
|
dim: Dimma
|
||||||
tr: # Turkish
|
tr: # Turkish
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Pazartesi
|
mon: Pazartesi
|
||||||
tue: Salı
|
tue: Salı
|
||||||
@@ -5962,7 +5962,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
uk: # Ukrainian
|
uk: # Ukrainian
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: Понеділок
|
mon: Понеділок
|
||||||
tue: Вівторок
|
tue: Вівторок
|
||||||
@@ -6033,7 +6033,7 @@ variables:
|
|||||||
bright: Bright
|
bright: Bright
|
||||||
dimming: Dimming
|
dimming: Dimming
|
||||||
dim: Dim
|
dim: Dim
|
||||||
zh-tw: # T.Chinese
|
zh-tw: # T.Chinese
|
||||||
weekdays:
|
weekdays:
|
||||||
mon: 星期一
|
mon: 星期一
|
||||||
tue: 星期二
|
tue: 星期二
|
||||||
@@ -6106,7 +6106,7 @@ variables:
|
|||||||
dim: 調光
|
dim: 調光
|
||||||
|
|
||||||
##### WEATHER ####
|
##### WEATHER ####
|
||||||
weather_entity_tmp: !input 'weather_entity' # used only during the creation of weather in variables
|
weather_entity_tmp: !input 'weather_entity' # used only during the creation of weather in variables
|
||||||
weather_entity: >
|
weather_entity: >
|
||||||
{% if weather_entity_tmp is string and weather_entity_tmp | length > 0 %} {{ weather_entity_tmp }}
|
{% if weather_entity_tmp is string and weather_entity_tmp | length > 0 %} {{ weather_entity_tmp }}
|
||||||
{% elif states.weather | list | count > 0 %} {{ states.weather | map(attribute="entity_id") | list | first }}
|
{% elif states.weather | list | count > 0 %} {{ states.weather | map(attribute="entity_id") | list | first }}
|
||||||
@@ -6118,32 +6118,32 @@ variables:
|
|||||||
buttons:
|
buttons:
|
||||||
hvac_mode:
|
hvac_mode:
|
||||||
- mode: auto
|
- mode: auto
|
||||||
icon: calendar-sync # ee8d
|
icon: calendar-sync
|
||||||
color: green #'19818'
|
color: green
|
||||||
component: button01
|
component: button01
|
||||||
- mode: heat_cool
|
- mode: heat_cool
|
||||||
icon: autorenew # e069
|
icon: autorenew
|
||||||
color: amber #'65024'
|
color: amber
|
||||||
component: button02
|
component: button02
|
||||||
- mode: heat
|
- mode: heat
|
||||||
icon: fire # e237
|
icon: fire
|
||||||
color: deep-orange #'64164'
|
color: deep-orange
|
||||||
component: button03
|
component: button03
|
||||||
- mode: cool
|
- mode: cool
|
||||||
icon: snowflake # e716
|
icon: snowflake
|
||||||
color: blue #'1055'
|
color: blue
|
||||||
component: button04
|
component: button04
|
||||||
- mode: dry
|
- mode: dry
|
||||||
icon: water-percent # e58d
|
icon: water-percent
|
||||||
color: orange #'64704'
|
color: orange
|
||||||
component: button05
|
component: button05
|
||||||
- mode: fan_only
|
- mode: fan_only
|
||||||
icon: fan # e20f
|
icon: fan
|
||||||
color: cyan #'1530'
|
color: cyan
|
||||||
component: button06
|
component: button06
|
||||||
- mode: "off"
|
- mode: "off"
|
||||||
icon: power # e424
|
icon: power
|
||||||
color: "off" #'35921'
|
color: "off"
|
||||||
component: button07
|
component: button07
|
||||||
|
|
||||||
###### SYNC SETTINGS #####
|
###### SYNC SETTINGS #####
|
||||||
@@ -6161,7 +6161,7 @@ variables:
|
|||||||
domain_automation_button_action: !input domain_automation_button_action
|
domain_automation_button_action: !input domain_automation_button_action
|
||||||
|
|
||||||
enum:
|
enum:
|
||||||
color_mode: # Possible light color modes. - https://github.com/home-assistant/core/blob/dev/homeassistant/components/light/__init__.py
|
color_mode: # Possible light color modes. - https://github.com/home-assistant/core/blob/dev/homeassistant/components/light/__init__.py
|
||||||
unknown: "[<ColorMode.UNKNOWN: 'unknown'>]"
|
unknown: "[<ColorMode.UNKNOWN: 'unknown'>]"
|
||||||
onoff: "[<ColorMode.ONOFF: 'onoff'>]"
|
onoff: "[<ColorMode.ONOFF: 'onoff'>]"
|
||||||
brightness: "[<ColorMode.BRIGHTNESS: 'brightness'>]"
|
brightness: "[<ColorMode.BRIGHTNESS: 'brightness'>]"
|
||||||
@@ -6895,7 +6895,7 @@ condition:
|
|||||||
##### START - Action #####
|
##### START - Action #####
|
||||||
#############################################################
|
#############################################################
|
||||||
action:
|
action:
|
||||||
- if: '{{ false }}' # Global anchor repository
|
- if: '{{ false }}' #### Global anchor repository ####
|
||||||
then:
|
then:
|
||||||
- variables:
|
- variables:
|
||||||
entity_id: '{{ None }}'
|
entity_id: '{{ None }}'
|
||||||
@@ -7089,16 +7089,16 @@ action:
|
|||||||
variables:
|
variables:
|
||||||
chip_font_size: !input chip_font_size
|
chip_font_size: !input chip_font_size
|
||||||
bt_notific:
|
bt_notific:
|
||||||
icon: !input 'home_button04_icon' # E1ED
|
icon: !input 'home_button04_icon'
|
||||||
color_normal: !input 'home_button04_icon_color01'
|
color_normal: !input 'home_button04_icon_color01'
|
||||||
color_unread: !input 'home_button04_icon_color02'
|
color_unread: !input 'home_button04_icon_color02'
|
||||||
bt_entities:
|
bt_entities:
|
||||||
enabled: !input 'entitypages_enabled'
|
enabled: !input 'entitypages_enabled'
|
||||||
icon: !input 'home_button06_icon' # EDCF
|
icon: !input 'home_button06_icon'
|
||||||
color_rgb: !input 'home_button06_icon_color'
|
color_rgb: !input 'home_button06_icon_color'
|
||||||
bt_qrcode:
|
bt_qrcode:
|
||||||
enabled: !input 'qrcode_enabled'
|
enabled: !input 'qrcode_enabled'
|
||||||
icon: !input 'home_button05_icon' # E432
|
icon: !input 'home_button05_icon'
|
||||||
color_rgb: !input 'home_button05_icon_color'
|
color_rgb: !input 'home_button05_icon_color'
|
||||||
title: !input 'qrcode_label'
|
title: !input 'qrcode_label'
|
||||||
qrcode: !input 'qrcode_value'
|
qrcode: !input 'qrcode_value'
|
||||||
@@ -8014,7 +8014,7 @@ action:
|
|||||||
- *delay-default
|
- *delay-default
|
||||||
- service: '{{ nextion.command.show }}'
|
- service: '{{ nextion.command.show }}'
|
||||||
data:
|
data:
|
||||||
component: '255' # all
|
component: '255' # all components
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
|
|
||||||
##### NSPanel build Button page #####
|
##### NSPanel build Button page #####
|
||||||
@@ -8033,13 +8033,13 @@ action:
|
|||||||
item_domain: '{{ repeat.item.entity.split(".")[0] | default("unknown") }}'
|
item_domain: '{{ repeat.item.entity.split(".")[0] | default("unknown") }}'
|
||||||
current_entity_state: '{{ states(repeat.item.entity) | default("unavailable") }}'
|
current_entity_state: '{{ states(repeat.item.entity) | default("unavailable") }}'
|
||||||
current_entity_state_available: '{{ current_entity_state not in ["unavailable"] }}'
|
current_entity_state_available: '{{ current_entity_state not in ["unavailable"] }}'
|
||||||
btn_state: > # Button state (on = true or off = false)
|
btn_state: > # Button state (on = true or off = false)
|
||||||
{{
|
{{
|
||||||
(current_entity_state in ["on", "open", "opening", "home", "playing"] and item_domain not in ["automation"])
|
(current_entity_state in ["on", "open", "opening", "home", "playing"] and item_domain not in ["automation"])
|
||||||
or (item_domain == "climate" and current_entity_state != "off")
|
or (item_domain == "climate" and current_entity_state != "off")
|
||||||
or (item_domain in ["button","input_button","scene","automation", "remote"] and trigger.id is match "current_state_entity")
|
or (item_domain in ["button","input_button","scene","automation", "remote"] and trigger.id is match "current_state_entity")
|
||||||
}}
|
}}
|
||||||
btn_icon_font: > # Foreground color for icon
|
btn_icon_font: > # Foreground color for icon
|
||||||
{% if not current_entity_state_available %}
|
{% if not current_entity_state_available %}
|
||||||
{{ nextion.color.red }}
|
{{ nextion.color.red }}
|
||||||
{% elif item_domain in ["light"] %}
|
{% elif item_domain in ["light"] %}
|
||||||
@@ -8073,7 +8073,7 @@ action:
|
|||||||
{{ [ repeat.item.icon_color_rgb ] if is_number(repeat.item.icon_color_rgb) else repeat.item.icon_color_rgb }}
|
{{ [ repeat.item.icon_color_rgb ] if is_number(repeat.item.icon_color_rgb) else repeat.item.icon_color_rgb }}
|
||||||
{% else %}{{ nextion.color.red }}
|
{% else %}{{ nextion.color.red }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
btn_icon: > # Button's icon
|
btn_icon: > # Button's icon
|
||||||
{% if not current_entity_state_available %}{{ nextion.icon.domain.unknown }}
|
{% if not current_entity_state_available %}{{ nextion.icon.domain.unknown }}
|
||||||
{% elif repeat.item.icon | length > 0 %}
|
{% elif repeat.item.icon | length > 0 %}
|
||||||
{{
|
{{
|
||||||
@@ -8087,13 +8087,13 @@ action:
|
|||||||
{{ nextion.icon.domain[repeat.item.entity.split(".")[0] if repeat.item.entity else "unknown"] }}
|
{{ nextion.icon.domain[repeat.item.entity.split(".")[0] if repeat.item.entity else "unknown"] }}
|
||||||
{% else %}{{ nextion.icon.domain.unknown }}
|
{% else %}{{ nextion.icon.domain.unknown }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
btn_label_tmp: > # Button's label (aux)
|
btn_label_tmp: > # Button's label (aux)
|
||||||
{{
|
{{
|
||||||
repeat.item.name
|
repeat.item.name
|
||||||
if repeat.item.name is string and repeat.item.name | length > 0
|
if repeat.item.name is string and repeat.item.name | length > 0
|
||||||
else state_attr(repeat.item.entity, "friendly_name")
|
else state_attr(repeat.item.entity, "friendly_name")
|
||||||
}}
|
}}
|
||||||
btn_label: > # Button's label
|
btn_label: > # Button's label
|
||||||
{{
|
{{
|
||||||
btn_label_tmp
|
btn_label_tmp
|
||||||
if btn_label_tmp is string and btn_label_tmp | length > 0
|
if btn_label_tmp is string and btn_label_tmp | length > 0
|
||||||
@@ -8104,7 +8104,7 @@ action:
|
|||||||
else ""
|
else ""
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
btn_bri_txt: > # Buttons's value (brightness, temperature, etc.)
|
btn_bri_txt: > # Buttons's value (brightness, temperature, etc.)
|
||||||
{% if not current_entity_state_available %} 0
|
{% if not current_entity_state_available %} 0
|
||||||
{% elif item_domain == "light" and current_entity_state == "on" and state_attr(repeat.item.entity, "brightness") != None %}
|
{% elif item_domain == "light" and current_entity_state == "on" and state_attr(repeat.item.entity, "brightness") != None %}
|
||||||
{{ (state_attr(repeat.item.entity, "brightness") | int * 100 /255) | round(0) }}%
|
{{ (state_attr(repeat.item.entity, "brightness") | int * 100 /255) | round(0) }}%
|
||||||
@@ -8154,14 +8154,14 @@ action:
|
|||||||
- *delay-default
|
- *delay-default
|
||||||
- service: '{{ nextion.command.show }}'
|
- service: '{{ nextion.command.show }}'
|
||||||
data:
|
data:
|
||||||
component: '255' # all
|
component: '255' # all components
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
else:
|
else:
|
||||||
###### Show empty page #####
|
###### Show empty page #####
|
||||||
- *delay-default
|
- *delay-default
|
||||||
- service: '{{ nextion.command.show }}'
|
- service: '{{ nextion.command.show }}'
|
||||||
data:
|
data:
|
||||||
component: '255' # all
|
component: '255' # all components
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
|
|
||||||
## PAGE LIGHT ##
|
## PAGE LIGHT ##
|
||||||
@@ -8462,7 +8462,7 @@ action:
|
|||||||
until:
|
until:
|
||||||
- or:
|
- or:
|
||||||
- '{{ wait_completed }}'
|
- '{{ wait_completed }}'
|
||||||
- '{{ states(currentpage) != page.media_player }}' # Don't replace this by page.current as this have to be evaluated all the time
|
- '{{ states(currentpage) != page.media_player }}' # Don't replace this by page.current as this have to be evaluated all the time
|
||||||
- '{{ nspanel_event.type != "page_changed" }}'
|
- '{{ nspanel_event.type != "page_changed" }}'
|
||||||
|
|
||||||
## PAGE ALARM ##
|
## PAGE ALARM ##
|
||||||
@@ -9279,7 +9279,7 @@ action:
|
|||||||
then:
|
then:
|
||||||
- service: '{{ nextion.command.text_printf }}'
|
- service: '{{ nextion.command.text_printf }}'
|
||||||
data:
|
data:
|
||||||
component: '{{ page_name }}.temperature' ### Temperature MIN/MAX ###
|
component: '{{ page_name }}.temperature' ### Temperature MIN/MAX ###
|
||||||
message: '{{ temperature_string }}'
|
message: '{{ temperature_string }}'
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
- *delay-default
|
- *delay-default
|
||||||
@@ -9550,7 +9550,7 @@ action:
|
|||||||
- '{{ nspanel_event.type == "generic"}}'
|
- '{{ nspanel_event.type == "generic"}}'
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- alias: light settings # rgb_color, brightness, color_temp - This was kept until we find a solution to call with rgb_color directly from ESPHome
|
- alias: light settings # rgb_color, brightness, color_temp - This was kept until we find a solution to call with rgb_color directly from ESPHome
|
||||||
conditions:
|
conditions:
|
||||||
- '{{ nspanel_event.page == page.light }}'
|
- '{{ nspanel_event.page == page.light }}'
|
||||||
- '{{ nspanel_event.component in ["rgb_color", "brightness_pct", "color_temp"] }}'
|
- '{{ nspanel_event.component in ["rgb_color", "brightness_pct", "color_temp"] }}'
|
||||||
@@ -9615,7 +9615,7 @@ action:
|
|||||||
- automation_reloaded
|
- automation_reloaded
|
||||||
- ha_started
|
- ha_started
|
||||||
sequence:
|
sequence:
|
||||||
- delay: > # Prevents all panels updating simultaneously in large systems
|
- delay: > # Prevents all panels updating simultaneously in large systems
|
||||||
{% set entities_list = states.binary_sensor | selectattr("entity_id", "search", "nextion_display") | map(attribute="entity_id") | list %}
|
{% set entities_list = states.binary_sensor | selectattr("entity_id", "search", "nextion_display") | map(attribute="entity_id") | list %}
|
||||||
{{ (4 * entities_list.index(nextion_inited)) if (entities_list | count > 0 and nextion_inited in entities_list) else 0 }}
|
{{ (4 * entities_list.index(nextion_inited)) if (entities_list | count > 0 and nextion_inited in entities_list) else 0 }}
|
||||||
- if: '{{ states.sensor | selectattr("entity_id", "eq", currentpage) | list | count > 0 }}'
|
- if: '{{ states.sensor | selectattr("entity_id", "eq", currentpage) | list | count > 0 }}'
|
||||||
@@ -9715,7 +9715,7 @@ action:
|
|||||||
- alias: "Button pages"
|
- alias: "Button pages"
|
||||||
conditions:
|
conditions:
|
||||||
- '{{ page.current in page.buttonpages }}'
|
- '{{ page.current in page.buttonpages }}'
|
||||||
sequence: #*refresh_page_buttonpage
|
sequence:
|
||||||
- *variables-page_buttons
|
- *variables-page_buttons
|
||||||
- repeat:
|
- repeat:
|
||||||
for_each: >
|
for_each: >
|
||||||
@@ -9926,8 +9926,6 @@ action:
|
|||||||
- chip05_state
|
- chip05_state
|
||||||
- chip06_state
|
- chip06_state
|
||||||
- chip07_state
|
- chip07_state
|
||||||
#- '{{ page.current == page.home }}'
|
|
||||||
#- '{{ trigger.event.data.new_state.state not in ["unavailable", "unknown", "", None] }}'
|
|
||||||
sequence:
|
sequence:
|
||||||
- *variables-home_page_status_bar
|
- *variables-home_page_status_bar
|
||||||
- repeat:
|
- repeat:
|
||||||
|
|||||||
Reference in New Issue
Block a user