change home Button, icons, color

This commit is contained in:
Blackymas
2023-02-22 00:36:42 +01:00
parent 71cd913135
commit 26844cd290

View File

@@ -2594,42 +2594,52 @@ variables:
##### CHANGE ME START ##########################################################################################################
###### NEXTION COLOR MAPPING #####
button_color_1: "65535" #White
button_color_2: "10597" #Grey dark
button_icon_color_1: "33808" #Grey light
button_icon_color_2: "1055" #Blue
button_icon_color_3: "63488" #Red
color_01: "65535" #White
color_02: "10597" #Grey dark
color_03: "33808" #Grey light
color_04: "1055" #Blue
color_05: "63488" #Red
###### "GENERAL" NEXTION FONT ICON MAPPING #####
blank_icon: "" #blank macbook bug
home_indoor_temp_icon: "" #E50E
relay01_icon: "" #E3A5
relay02_icon: "" #E3A8
thermostat_icon: "" #E50E
heat_icon: "" #E50F
blank_icon: "\U0000FFFF" #blank macbook bug
home_indoor_temp_icon: "\U0000E50E" #E50E
relay01_icon: "\U0000E3A5" #E3A5
relay02_icon: "\U0000E3A8" #E3A8
thermostat_icon: "\U0000E50E" #E50E
heat_icon: "\U0000E50F" #E50F
home_button01_icon: ""
home_button02_icon: ""
home_button03_icon: ""
home_button04_icon_read: "\U0000E1ED" #E1ED
home_button04_icon_unread: "\U0000E6CE" #E6CE
home_button05_icon: "\U0000E432" #E432
home_button06_icon: "\U0000EDCF" #EDCF
home_button07_icon: ""
###### "BUTTON" NEXTION FONT ICON MAPPING #####
button_icon_unknown: "" #E027
button_icon_light: "" #E334
button_icon_switch: "" #E97D
button_icon_input_boolan: "" #EA19
button_icon_cover: "" #E0AB
button_icon_automation: "" #F6FC
button_icon_button: "" #ED76
button_icon_input_button: "" #F2A7
button_icon_scene: "" #EE0B
button_icon_script: "" #F45D
button_icon_person: "" #E003
button_icon_binary_sensor: "" #E7C0
button_icon_fan: "" #E20F
button_icon_climate: "" #E392
button_icon_unknown: "\U00000E27" #E027
button_icon_light: "\U0000E334" #E334
button_icon_switch: "\U0000E97D" #E97D
button_icon_input_boolan: "\U0000EA19" #EA19
button_icon_cover: "\U0000E0AB" #E0AB
button_icon_automation: "\U0000F6FC" #F6FC
button_icon_button: "\U0000ED76" #ED76
button_icon_input_button: "\U0000F2A7" #F2A7
button_icon_scene: "\U0000EE0B" #EE0B
button_icon_script: "\U0000F45D" #F45D
button_icon_person: "\U0000E003" #E003
button_icon_binary_sensor: "\U0000E7C0" #E7C0
button_icon_fan: "\U0000E20F" #E20F
button_icon_climate: "\U0000E392" #E392
###### "Weather" NEXTION FONT ICON MAPPING #####
weather_icon_rain: "" #E595
weather_icon_sun: "" #E5A7
weather_icon_protect: "" #F05C
weather_icon_lightning: "" #E592
weather_icon_wind: "" #E59C
weather_icon_rain: "\U0000E595" #E595
weather_icon_sun: "\U0000E5A7" #E5A7
weather_icon_protect: "\U0000F05C" #F05C
weather_icon_lightning: "\U0000E592" #E592
weather_icon_wind: "\U0000E59C" #E59C
##### CHANGE ME END ##########################################################################################################
@@ -3918,15 +3928,17 @@ action:
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
- service: "{{ command_text_printf }}"
data:
cmd: "homebt05_pic.pic={{ home_button_qrcode }}"
component: home.button05_icon
message: "{{ home_button05_icon }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
- service: "{{ command_text_printf }}"
data:
cmd: "homebt05_pic.pic={{ home_button_blank }}"
component: home.button05_icon
message: "{{ blank_icon }}"
###### ENTITIES - Icon ######
- if:
@@ -3935,15 +3947,17 @@ action:
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
- service: "{{ command_text_printf }}"
data:
cmd: "homebt06_pic.pic={{ home_button_entities }}"
component: home.button06_icon
message: "{{ home_button06_icon }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
- service: "{{ command_text_printf }}"
data:
cmd: "homebt06_pic.pic={{ home_button_blank }}"
component: home.button06_icon
message: "{{ blank_icon }}"
##### NSPanel Left Button Name #####
- if:
@@ -4007,14 +4021,31 @@ action:
sequence:
- alias: "Set notifiy pic"
variables:
notify_pic: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ home_button_notify_red }}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ home_button_notify_white }}
{%- else -%} {{ home_button_blank }}
set_button04_icon: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ home_button04_icon_read}}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ home_button04_icon_unread }}
{%- else -%} {{ blank_icon }}
{%- endif -%}
- service: "{{ command_printf }}"
set_button04_icon_font: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ color_03 }}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ color_05 }}
{%- else -%} {{ color_03 }}
{%- endif -%}
##### SET ICON Font - Notify #####
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
cmd: "homebt04_pic.pic={{ notify_pic }}"
component: home.button04_icon
message: "{{ set_button04_icon }}"
##### SET ICON Font Color - Notify #####
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_font_color }}"
data:
component: home.button04_icon
message: "{{ set_button04_icon_font }}"
##### Show last notification #####
- conditions:
@@ -4219,36 +4250,36 @@ action:
{%- endif -%}
# TEXT and BRIGHTNESS and ICON Background
btn_bg: >-
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ button_color_1 }}
{%- elif 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 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_color_1 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_color_2 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ button_color_1 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ button_color_2 }}
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ color_01 }}
{%- elif trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ color_01 }}
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ color_02 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ color_01 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ color_02 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ color_01 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ color_02 }}
{%- endif -%}
# ICON Font Color
btn_icon_font: >-
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ button_icon_color_2 }}
{%- elif trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ button_icon_color_2 }}
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ button_icon_color_1 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_icon_color_2 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_icon_color_1 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ button_icon_color_2 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ button_icon_color_1 }}
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ color_04 }}
{%- elif trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ color_04 }}
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ color_03 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ color_04 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ color_03 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ color_04 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ color_03 }}
{%- endif -%}
# LABEL Font Color
btn_txt_font: >-
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ button_color_2 }}
{%- elif 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 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_color_2 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_color_1 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ button_color_2 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ button_color_1 }}
{%- if trigger.to_state.entity_id is match "button." or trigger.to_state.entity_id is match "input_button." or trigger.to_state.entity_id is match "scene." -%} {{ color_02 }}
{%- elif trigger.to_state.state == 'on' or trigger.to_state.state == 'open' -%} {{ color_02 }}
{%- elif trigger.to_state.state == 'off' or trigger.to_state.state == 'closed' -%} {{ color_01 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ color_02 }}
{%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ color_01 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ color_02 }}
{%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ color_01 }}
{%- endif -%}
# BRIGHTNESS Font Color
btn_bri_font: "{{ button_color_2 }}"
btn_bri_font: "{{ color_02 }}"
# BRIGHTNESS Value
btn_bri_txt: >-
{%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' and trigger.to_state.attributes.brightness is defined -%} {{ (trigger.to_state.attributes.brightness | int * 100 /255) | round(0) }}%
@@ -4340,8 +4371,8 @@ action:
{%- elif trigger.to_state.entity_id is match "input_button." -%} {{ button_off }}
{%- elif trigger.to_state.entity_id is match "scene." -%} {{ button_off }}
{%- endif -%}
btn_bg: '{{ button_color_2 }}'
btn_txt_font: '{{ button_color_1 }}'
btn_bg: '{{ color_02 }}'
btn_txt_font: '{{ color_01 }}'
##### Button PIC #####
- service: "{{ command_printf }}"
@@ -5527,72 +5558,6 @@ action:
data:
component: home.time
message: "{{ time }}"
##### NSPanel Home Value 01 #####
- if:
- condition: template
value_template: '{{ home_value01_icon |length > 0 }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value01_icon
message: "{{ home_value01_icon }}"
- if:
- condition: template
value_template: '{{ home_value01 is match "sensor." and states(home_value01).state != "unavailable" }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value01_state
message: '{{ states(home_value01) |round(1) }}{{ state_attr(home_value01, "unit_of_measurement") }}'
##### NSPanel Home Value 02 #####
- if:
- condition: template
value_template: '{{ home_value02_icon |length > 0 }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value02_icon
message: "{{ home_value02_icon }}"
- if:
- condition: template
value_template: '{{ home_value02 is match "sensor." and states(home_value02).state != "unavailable" }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value02_state
message: '{{ states(home_value02) |round(1) }}{{ state_attr(home_value02, "unit_of_measurement") }}'
##### NSPanel Home Value 03 #####
- if:
- condition: template
value_template: '{{ home_value03_icon |length > 0 }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value03_icon
message: "{{ home_value03_icon }}"
- if:
- condition: template
value_template: '{{ home_value03 is match "sensor." and states(home_value03).state != "unavailable" }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.value03_state
message: '{{ states(home_value03) |round(1) }}{{ state_attr(home_value03, "unit_of_measurement") }}'
##### NSPanel Outdoor Temp #####
- variables:
@@ -5697,8 +5662,7 @@ action:
component: home.right_bt_text
message: "{{ right_button_name }}"
##### SET Right Hardware Button PIC on Home Page #####
##### SET Right Hardware Button PIC on Home Page #####
- if:
- condition: template
value_template: '{{ right_button_entity |length > 0 and states(right_button_entity).state != "unavailable" }}'
@@ -5754,42 +5718,9 @@ action:
component: home.icon_top_02
message: "{{ chip_relay02 }}"
##### Set notify icon #####
- variables:
notify_pic: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ home_button_notify_red }}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ home_button_notify_white }}
{%- else -%} {{ home_button_blank }}
{%- endif -%}
###### CHIPS 01 - 07 - Statusbar 04 - 10 ######
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt04_pic.pic={{ notify_pic }}"
###### QR Code - Icon ######
- if:
- condition: template
value_template: '{{ qrcode_state == true }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt05_pic.pic={{ home_button_qrcode }}"
###### ENTITIES - Icon ######
- if:
- condition: template
value_template: '{{ entitypages_enabled }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_printf }}"
data:
cmd: "homebt06_pic.pic={{ home_button_entities }}"
###### CHIPS 01 - 07 - Statusbar 04 - 10 ######
- repeat:
for_each:
- position: home.icon_top_04
@@ -5813,7 +5744,6 @@ action:
- position: home.icon_top_10
entity: "{{ chip07 }}"
entity_icon: "{{ chip07_icon }}"
sequence:
- if:
- condition: template
@@ -5827,6 +5757,91 @@ action:
{%- else -%} {{ blank_icon }}
{%- endif -%}
##### HOME VALUE 01 - 03
- delay:
milliseconds: "{{ delay_value }}"
- repeat:
for_each:
- row: home.value01
entity_icon: "{{ home_value01_icon }}"
entity: "{{ home_value01 }}"
- row: home.value02
entity_icon: "{{ home_value02_icon }}"
entity: "{{ home_value02 }}"
- row: home.value03
entity_icon: "{{ home_value03_icon }}"
entity: "{{ home_value03 }}"
sequence:
- if:
- condition: template
value_template: '{{ repeat.item.entity is match "sensor." and states(repeat.item.entity).state != "unavailable" }}'
then:
- if:
- condition: template
value_template: '{{ repeat.item.entity_icon |length > 0 }}'
then:
- service: "{{ command_text_printf }}"
data:
component: "{{ repeat.item.row }}_icon"
message: "{{ repeat.item.entity_icon }}"
- service: "{{ command_text_printf }}"
data:
component: "{{ repeat.item.row }}_state"
message: '{{ states(repeat.item.entity) |round(1) }}{{ state_attr(repeat.item.entity, "unit_of_measurement") }}'
##### Set notify icon #####
- variables:
set_button04_icon: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ home_button04_icon_read}}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ home_button04_icon_unread }}
{%- else -%} {{ blank_icon }}
{%- endif -%}
set_button04_icon_font: >-
{%- if is_state(notification_unread, 'on') and states(notification_text) |length > 0 -%} {{ color_03 }}
{%- elif is_state(notification_unread, 'off') and states(notification_text) |length > 0 -%} {{ color_05 }}
{%- else -%} {{ color_03 }}
{%- endif -%}
##### SET ICON Font - Notify #####
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.button04_icon
message: "{{ set_button04_icon }}"
##### SET ICON Font Color - Notify #####
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_font_color }}"
data:
component: home.button04_icon
message: "{{ set_button04_icon_font }}"
###### QR Code - Icon ######
- if:
- condition: template
value_template: '{{ qrcode_state == true }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.button05_icon
message: "{{ home_button05_icon }}"
###### ENTITIES - Icon ######
- if:
- condition: template
value_template: '{{ entitypages_enabled }}'
then:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.button06_icon
message: "{{ home_button06_icon }}"
## PAGE WEATHE01 ##
- conditions: '{{ trigger.event.data.new_state.state == page_weather01 }}'
sequence:
@@ -7388,39 +7403,39 @@ action:
{%- endif -%}
# TEXT, BRIGHTNESS and ICON Background
btn_bg: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_2 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_1 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_2 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_02 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_01 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_02 }}
{%- endif -%}
# ICON Font Color
btn_icon_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_color_3 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_icon_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_icon_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_icon_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_05 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_03 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_04 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_03 }}
{%- endif -%}
# LABEL Font Color
btn_txt_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_01 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_02 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_01 }}
{%- endif -%}
# BRIGHTNESS Font Color
btn_bri_font: "{{ button_color_2 }}"
btn_bri_font: "{{ color_02 }}"
# ICON Value
btn_icon: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_unknown }}
@@ -7626,39 +7641,39 @@ action:
{%- endif -%}
# TEXT, BRIGHTNESS and ICON Background
btn_bg: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_2 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_1 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_2 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_02 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_01 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_02 }}
{%- endif -%}
# ICON Font Color
btn_icon_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_color_3 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_icon_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_icon_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_icon_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_05 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_03 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_04 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_03 }}
{%- endif -%}
# LABEL Font Color
btn_txt_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_01 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_02 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_01 }}
{%- endif -%}
# BRIGHTNESS Font Color
btn_bri_font: "{{ button_color_2 }}"
btn_bri_font: "{{ color_02 }}"
# ICON Value
btn_icon: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_unknown }}
@@ -7864,39 +7879,39 @@ action:
{%- endif -%}
# TEXT, BRIGHTNESS and ICON Background
btn_bg: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_2 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_1 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_2 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_02 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_01 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_02 }}
{%- endif -%}
# ICON Font Color
btn_icon_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_color_3 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_icon_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_icon_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_icon_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_05 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_03 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_04 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_03 }}
{%- endif -%}
# LABEL Font Color
btn_txt_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_01 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_02 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_01 }}
{%- endif -%}
# BRIGHTNESS Font Color
btn_bri_font: "{{ button_color_2 }}"
btn_bri_font: "{{ color_02 }}"
# ICON Value
btn_icon: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_unknown }}
@@ -8102,39 +8117,39 @@ action:
{%- endif -%}
# TEXT, BRIGHTNESS and ICON Background
btn_bg: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_2 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_1 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_2 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_02 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_01 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_02 }}
{%- endif -%}
# ICON Font Color
btn_icon_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_color_3 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_icon_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_icon_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_icon_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_icon_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_icon_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_05 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_03 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_04 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_03 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_04 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_03 }}
{%- endif -%}
# LABEL Font Color
btn_txt_font: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ button_color_1 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ button_color_2 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ button_color_1 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ button_color_2 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ button_color_1 }}
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "button." or repeat.item.entity is match "input_button." or repeat.item.entity is match "scene." -%} {{ color_01 }}
{%- elif current_entity_state == 'on' or current_entity_state == 'open' -%} {{ color_02 }}
{%- elif current_entity_state == 'off' or current_entity_state == 'closed' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "person." and current_entity_state == 'home' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "person." and current_entity_state != 'home' -%} {{ color_01 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state != 'off' -%} {{ color_02 }}
{%- elif repeat.item.entity is match "climate." and current_entity_state == 'off' -%} {{ color_01 }}
{%- endif -%}
# BRIGHTNESS Font Color
btn_bri_font: "{{ button_color_2 }}"
btn_bri_font: "{{ color_02 }}"
# ICON Value
btn_icon: >-
{%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_icon_unknown }}