diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 3836b93..688d5ab 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -32,7 +32,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l 🎉 Roadmap Roadmap can be found here [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap) -ℹ️ Version: v.3.1.1 +ℹ️ Version: v.3.2 ' @@ -2296,7 +2296,7 @@ trigger_variables: variables: ##### GENERAL ##### - blueprint_version: "3.1.1" + blueprint_version: "3.2" time: "{{ (as_timestamp(now()) | timestamp_custom('%H:%M')) }}" language: !input "language" @@ -2410,13 +2410,6 @@ variables: weather_execptional_night: "14" weather_clear_night: "15" - weather_icon_blank: "51" - weather_icon_rain: "52" - weather_icon_sun: "53" - weather_icon_protect: "54" - weather_icon_lightning: "55" - weather_icon_wind: "56" - # humidity_pic humidity_pic_on: "115" humidity_pic_blank: "51" @@ -2437,28 +2430,41 @@ variables: home_button_qrcode: "123" home_button_entities: "124" - ###### NEXTION COLOR MAPPING ##### - button_color_1: "65535" # White - button_color_2: "10597" # Grey - button_color_3: "63488" # Red - button_icon_color_1: "33808" - button_icon_color_2: "1055" - ###### NEXTION FONT ICON MAPPING ##### - button_icon_unknown: "" - button_icon_light: "" - button_icon_switch: "" - button_icon_input_boolan: "" - button_icon_cover: "" - button_icon_automation: "" - button_icon_button: "" - button_icon_input_button: "" - button_icon_screne: "" - button_icon_script: "" - button_icon_person: "" - button_icon_binary_sensor: "" - button_icon_fan: "" - button_icon_climate: "" +##### 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 + ###### "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" NEXTION FONT ICON MAPPING ##### + weather_icon_blank: "" #blank + weather_icon_rain: "" #E595 + weather_icon_sun: "" #E5A7 + weather_icon_protect: "" #F05C + weather_icon_lightning: "" #E592 + weather_icon_wind: "" #E59C + + + +##### CHANGE ME END ########################################################################################################## ###### NEXTION PAGE MAPPING ##### page_home: "home" @@ -3652,229 +3658,6 @@ action: component: boot.bluep_version message: "{{ blueprint_version }}" - ##### NSPanel boot init buttons ##### - - delay: - milliseconds: "{{ delay_value }}" - - repeat: - for_each: - - entity: "{{ entity01 }}" - button_label: "{{ entity01_name }}" - button: buttonpage01.button01 - - entity: "{{ entity02 }}" - button_label: "{{ entity02_name }}" - button: buttonpage01.button02 - - entity: "{{ entity03 }}" - button_label: "{{ entity03_name }}" - button: buttonpage01.button03 - - entity: "{{ entity04 }}" - button_label: "{{ entity04_name }}" - button: buttonpage01.button04 - - entity: "{{ entity05 }}" - button_label: "{{ entity05_name }}" - button: buttonpage01.button05 - - entity: "{{ entity06 }}" - button_label: "{{ entity06_name }}" - button: buttonpage01.button06 - - entity: "{{ entity07 }}" - button_label: "{{ entity07_name }}" - button: buttonpage01.button07 - - entity: "{{ entity08 }}" - button_label: "{{ entity08_name }}" - button: buttonpage01.button08 - - entity: "{{ entity09 }}" - button_label: "{{ entity09_name }}" - button: buttonpage02.button01 - - entity: "{{ entity10 }}" - button_label: "{{ entity10_name }}" - button: buttonpage02.button02 - - entity: "{{ entity11 }}" - button_label: "{{ entity11_name }}" - button: buttonpage02.button03 - - entity: "{{ entity12 }}" - button_label: "{{ entity12_name }}" - button: buttonpage02.button04 - - entity: "{{ entity13 }}" - button_label: "{{ entity13_name }}" - button: buttonpage02.button05 - - entity: "{{ entity14 }}" - button_label: "{{ entity14_name }}" - button: buttonpage02.button06 - - entity: "{{ entity15 }}" - button_label: "{{ entity15_name }}" - button: buttonpage02.button07 - - entity: "{{ entity16 }}" - button_label: "{{ entity16_name }}" - button: buttonpage02.button08 - - entity: "{{ entity17 }}" - button_label: "{{ entity17_name }}" - button: buttonpage03.button01 - - entity: "{{ entity18 }}" - button_label: "{{ entity18_name }}" - button: buttonpage03.button02 - - entity: "{{ entity19 }}" - button_label: "{{ entity19_name }}" - button: buttonpage03.button03 - - entity: "{{ entity20 }}" - button_label: "{{ entity20_name }}" - button: buttonpage03.button04 - - entity: "{{ entity21 }}" - button_label: "{{ entity21_name }}" - button: buttonpage03.button05 - - entity: "{{ entity22 }}" - button_label: "{{ entity22_name }}" - button: buttonpage03.button06 - - entity: "{{ entity23 }}" - button_label: "{{ entity23_name }}" - button: buttonpage03.button07 - - entity: "{{ entity24 }}" - button_label: "{{ entity24_name }}" - button: buttonpage03.button08 - - entity: "{{ entity25 }}" - button_label: "{{ entity25_name }}" - button: buttonpage04.button01 - - entity: "{{ entity26 }}" - button_label: "{{ entity26_name }}" - button: buttonpage04.button02 - - entity: "{{ entity27 }}" - button_label: "{{ entity27_name }}" - button: buttonpage04.button03 - - entity: "{{ entity28 }}" - button_label: "{{ entity28_name }}" - button: buttonpage04.button04 - - entity: "{{ entity29 }}" - button_label: "{{ entity29_name }}" - button: buttonpage04.button05 - - entity: "{{ entity30 }}" - button_label: "{{ entity30_name }}" - button: buttonpage04.button06 - - entity: "{{ entity31 }}" - button_label: "{{ entity31_name }}" - button: buttonpage04.button07 - - entity: "{{ entity32 }}" - button_label: "{{ entity32_name }}" - button: buttonpage04.button08 - sequence: - - if: - - condition: template - value_template: '{{ repeat.item.entity|length > 0 and states[repeat.item.entity].state != "unavailable" and states[repeat.item.entity].state != "unknown" }}' - then: - - variables: - component_to_update: "{{ repeat.item.button }}" - # Button PIC - btn_pic: >- - {%- if repeat.item.entity is match "light." and states[repeat.item.entity].state == 'on' -%} {{ button_light_on }} - {%- elif repeat.item.entity is match "light." and states[repeat.item.entity].state == 'off' -%} {{ button_light_off }} - {%- elif repeat.item.entity is match "switch." and states[repeat.item.entity].state == 'on' -%} {{ button_switch_on }} - {%- elif repeat.item.entity is match "switch." and states[repeat.item.entity].state == 'off' -%} {{ button_switch_off }} - {%- elif repeat.item.entity is match "input_boolean." and states[repeat.item.entity].state == 'on' -%} {{ button_switch_on }} - {%- elif repeat.item.entity is match "input_boolean." and states[repeat.item.entity].state == 'off' -%} {{ button_switch_off }} - {%- elif repeat.item.entity is match "cover." and states[repeat.item.entity].state == 'open' -%} {{ button_cover_on }} - {%- elif repeat.item.entity is match "cover." and states[repeat.item.entity].state == 'closed' -%} {{ button_cover_off }} - {%- elif repeat.item.entity is match "automation." and states[repeat.item.entity].state == 'on' -%} {{ button_automation_on }} - {%- elif repeat.item.entity is match "automation." and states[repeat.item.entity].state == 'off' -%} {{ button_automation_off }} - {%- elif repeat.item.entity is match "button." -%} {{ button_button_off }} - {%- elif repeat.item.entity is match "input_button." -%} {{ button_button_off }} - {%- elif repeat.item.entity is match "scene." -%} {{ button_scene_off }} - {%- elif repeat.item.entity is match "script." and states[repeat.item.entity].state == 'on' -%} {{ button_script_on }} - {%- elif repeat.item.entity is match "script." and states[repeat.item.entity].state == 'off' -%} {{ button_script_off }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state == 'home' -%} {{ button_person_on }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state != 'home' -%} {{ button_person_off }} - {%- elif repeat.item.entity is match "binary_sensor." and states[repeat.item.entity].state == 'on' -%} {{ button_binary_sensor_on }} - {%- elif repeat.item.entity is match "binary_sensor." and states[repeat.item.entity].state == 'off' -%} {{ button_binary_sensor_off }} - {%- elif repeat.item.entity is match "fan." and states[repeat.item.entity].state == 'on' -%} {{ button_fan_on }} - {%- elif repeat.item.entity is match "fan." and states[repeat.item.entity].state == 'off' -%} {{ button_fan_off }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state != 'off' -%} {{ button_climate_on }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state == 'off' -%} {{ button_climate_off }} - {%- endif -%} - # TEXT and BRIGHTNESS Background - btn_bg: >- - {%- if 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 states[repeat.item.entity].state == 'on' or states[repeat.item.entity].state == 'open' -%} {{ button_color_1 }} - {%- elif states[repeat.item.entity].state == 'off' or states[repeat.item.entity].state == 'closed' -%} {{ button_color_2 }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state == 'home' -%} {{ button_color_1 }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state != 'home' -%} {{ button_color_2 }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state != 'off' -%} {{ button_color_1 }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state == 'off' -%} {{ button_color_2 }} - {%- endif -%} - # TEXT Font - btn_txt_font: >- - {%- if 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 states[repeat.item.entity].state == 'on' or states[repeat.item.entity].state == 'open' -%} {{ button_color_2 }} - {%- elif states[repeat.item.entity].state == 'off' or states[repeat.item.entity].state == 'closed' -%} {{ button_color_1 }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state == 'home' -%} {{ button_color_2 }} - {%- elif repeat.item.entity is match "person." and states[repeat.item.entity].state != 'home' -%} {{ button_color_1 }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state != 'off' -%} {{ button_color_2 }} - {%- elif repeat.item.entity is match "climate." and states[repeat.item.entity].state == 'off' -%} {{ button_color_1 }} - {%- endif -%} - # BRIGHTNESS Font - btn_bri_font: "{{ button_color_2 }}" - # BTN Label - btn_label: "{{ repeat.item.button_label }}" - btn_bri_txt: >- - {%- if repeat.item.entity is match "light." and states(repeat.item.entity) == 'on' and state_attr(repeat.item.entity, "brightness") != None -%} {{ (state_attr(repeat.item.entity, "brightness") | int * 100 /255) | round(0) }}% - {%- elif repeat.item.entity is match "cover." and states(repeat.item.entity) == 'open' and state_attr(repeat.item.entity, "current_position") != None -%} {{ (state_attr(repeat.item.entity, "current_position") | int(100)) | round(0) }}% - {%- elif repeat.item.entity is match "climate." and states(repeat.item.entity) != 'off' and state_attr(repeat.item.entity, "current_temperature") != None -%} {{ (state_attr(repeat.item.entity, "current_temperature") | int) | round(0) }}° - {%- else -%} 0 - {%- endif -%} - - ##### SET Buttons #### - # - ##### Button PIC ##### - - service: "{{ command_printf }}" - data: - cmd: "{{ component_to_update }}pic.pic={{ btn_pic }}" - ##### TEXT Background ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_background_color }}" - data: - component: "{{ component_to_update }}text" - message: "{{ btn_bg }}" - ##### TEXT Font Color ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_font_color }}" - data: - component: "{{ component_to_update }}text" - message: "{{ btn_txt_font }}" - ##### BRIGHTNESS Background Color ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_background_color }}" - data: - component: "{{ component_to_update }}bri" - message: "{{ btn_bg }}" - ##### BRIGHTNESS Font Color ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_font_color }}" - data: - component: "{{ component_to_update }}bri" - message: "{{ btn_bri_font }}" - ##### "TEXT" Label ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: "{{ component_to_update }}text" - message: "{{ btn_label }}" - ##### "BRIGHTNESS" Text ##### - - delay: - milliseconds: "{{ delay_value }}" - - if: - - condition: template - value_template: "{{ btn_bri_txt == 0 }}" - then: - - service: "{{ command_text_printf }}" - data: - component: "{{ component_to_update }}bri" - message: " " - else: - - service: "{{ command_text_printf }}" - data: - component: "{{ component_to_update }}bri" - message: "{{ btn_bri_txt }}" - ###### Set local fallback ###### - if: - condition: template @@ -4183,66 +3966,34 @@ action: {%- elif trigger.entity_id == entity30 and buttonpage == 'buttonpage04' -%} buttonpage04.button06 {%- elif trigger.entity_id == entity31 and buttonpage == 'buttonpage04' -%} buttonpage04.button07 {%- elif trigger.entity_id == entity32 and buttonpage == 'buttonpage04' -%} buttonpage04.button08 - {%- elif trigger.entity_id == entity01 -%} buttonpage01.button01 - {%- elif trigger.entity_id == entity02 -%} buttonpage01.button02 - {%- elif trigger.entity_id == entity03 -%} buttonpage01.button03 - {%- elif trigger.entity_id == entity04 -%} buttonpage01.button04 - {%- elif trigger.entity_id == entity05 -%} buttonpage01.button05 - {%- elif trigger.entity_id == entity06 -%} buttonpage01.button06 - {%- elif trigger.entity_id == entity07 -%} buttonpage01.button07 - {%- elif trigger.entity_id == entity08 -%} buttonpage01.button08 - {%- elif trigger.entity_id == entity09 -%} buttonpage02.button01 - {%- elif trigger.entity_id == entity10 -%} buttonpage02.button02 - {%- elif trigger.entity_id == entity11 -%} buttonpage02.button03 - {%- elif trigger.entity_id == entity12 -%} buttonpage02.button04 - {%- elif trigger.entity_id == entity13 -%} buttonpage02.button05 - {%- elif trigger.entity_id == entity14 -%} buttonpage02.button06 - {%- elif trigger.entity_id == entity15 -%} buttonpage02.button07 - {%- elif trigger.entity_id == entity16 -%} buttonpage02.button08 - {%- elif trigger.entity_id == entity17 -%} buttonpage03.button01 - {%- elif trigger.entity_id == entity18 -%} buttonpage03.button02 - {%- elif trigger.entity_id == entity19 -%} buttonpage03.button03 - {%- elif trigger.entity_id == entity20 -%} buttonpage03.button04 - {%- elif trigger.entity_id == entity21 -%} buttonpage03.button05 - {%- elif trigger.entity_id == entity22 -%} buttonpage03.button06 - {%- elif trigger.entity_id == entity23 -%} buttonpage03.button07 - {%- elif trigger.entity_id == entity24 -%} buttonpage03.button08 - {%- elif trigger.entity_id == entity25 -%} buttonpage04.button01 - {%- elif trigger.entity_id == entity26 -%} buttonpage04.button02 - {%- elif trigger.entity_id == entity27 -%} buttonpage04.button03 - {%- elif trigger.entity_id == entity28 -%} buttonpage04.button04 - {%- elif trigger.entity_id == entity29 -%} buttonpage04.button05 - {%- elif trigger.entity_id == entity30 -%} buttonpage04.button06 - {%- elif trigger.entity_id == entity31 -%} buttonpage04.button07 - {%- elif trigger.entity_id == entity32 -%} buttonpage04.button08 {%- endif -%} # Button PIC btn_pic: >- - {%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' -%} {{ button_light_on }} - {%- elif trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'off' -%} {{ button_light_off }} - {%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'on' -%} {{ button_switch_on }} - {%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'off' -%} {{ button_switch_off }} - {%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'on' -%} {{ button_switch_on }} - {%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'off' -%} {{ button_switch_off }} - {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'open' -%} {{ button_cover_on }} - {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'closed' -%} {{ button_cover_off }} - {%- elif trigger.to_state.entity_id is match "automation." and trigger.to_state.state == 'on' -%} {{ button_automation_on }} - {%- elif trigger.to_state.entity_id is match "automation." and trigger.to_state.state == 'off' -%} {{ button_automation_off }} - {%- elif trigger.to_state.entity_id is match "button." -%} {{ button_button_on }} - {%- elif trigger.to_state.entity_id is match "input_button." -%} {{ button_button_on }} - {%- elif trigger.to_state.entity_id is match "scene." -%} {{ button_scene_on }} - {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'on' -%} {{ button_script_on }} - {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'off' -%} {{ button_script_off }} - {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_person_on }} - {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_person_off }} - {%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'on' -%} {{ button_binary_sensor_on }} - {%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'off' -%} {{ button_binary_sensor_off }} - {%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'on' -%} {{ button_fan_on }} - {%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'off' -%} {{ button_fan_off }} - {%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ button_climate_on }} - {%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ button_climate_off }} + {%- if trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "light." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "switch." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "input_boolean." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'open' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'closed' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "automation." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "automation." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "button." -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "input_button." -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "scene." -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "script." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state == 'home' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "person." and trigger.to_state.state != 'home' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "binary_sensor." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'on' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "fan." and trigger.to_state.state == 'off' -%} {{ button_off }} + {%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' -%} {{ button_on }} + {%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state == 'off' -%} {{ button_off }} {%- endif -%} - # TEXT and BRIGHTNESS Background + # 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 }} @@ -4252,7 +4003,17 @@ action: {%- 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 }} {%- endif -%} - # TEXT Font + # 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 }} + {%- 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 }} @@ -4262,96 +4023,68 @@ action: {%- 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 }} {%- endif -%} - # BRIGHTNESS Font + # BRIGHTNESS Font Color btn_bri_font: "{{ button_color_2 }}" - # BTN Label - btn_label: >- - {%- if trigger.entity_id == entity01 -%} {{ entity01_name }} - {%- elif trigger.entity_id == entity02 -%} {{ entity02_name }} - {%- elif trigger.entity_id == entity03 -%} {{ entity03_name }} - {%- elif trigger.entity_id == entity04 -%} {{ entity04_name }} - {%- elif trigger.entity_id == entity05 -%} {{ entity05_name }} - {%- elif trigger.entity_id == entity06 -%} {{ entity06_name }} - {%- elif trigger.entity_id == entity07 -%} {{ entity07_name }} - {%- elif trigger.entity_id == entity08 -%} {{ entity08_name }} - {%- elif trigger.entity_id == entity09 -%} {{ entity09_name }} - {%- elif trigger.entity_id == entity10 -%} {{ entity10_name }} - {%- elif trigger.entity_id == entity11 -%} {{ entity11_name }} - {%- elif trigger.entity_id == entity12 -%} {{ entity12_name }} - {%- elif trigger.entity_id == entity13 -%} {{ entity13_name }} - {%- elif trigger.entity_id == entity14 -%} {{ entity14_name }} - {%- elif trigger.entity_id == entity15 -%} {{ entity15_name }} - {%- elif trigger.entity_id == entity16 -%} {{ entity16_name }} - {%- elif trigger.entity_id == entity17 -%} {{ entity17_name }} - {%- elif trigger.entity_id == entity18 -%} {{ entity18_name }} - {%- elif trigger.entity_id == entity19 -%} {{ entity19_name }} - {%- elif trigger.entity_id == entity20 -%} {{ entity20_name }} - {%- elif trigger.entity_id == entity21 -%} {{ entity21_name }} - {%- elif trigger.entity_id == entity22 -%} {{ entity22_name }} - {%- elif trigger.entity_id == entity23 -%} {{ entity23_name }} - {%- elif trigger.entity_id == entity24 -%} {{ entity24_name }} - {%- elif trigger.entity_id == entity25 -%} {{ entity25_name }} - {%- elif trigger.entity_id == entity26 -%} {{ entity26_name }} - {%- elif trigger.entity_id == entity27 -%} {{ entity27_name }} - {%- elif trigger.entity_id == entity28 -%} {{ entity28_name }} - {%- elif trigger.entity_id == entity29 -%} {{ entity29_name }} - {%- elif trigger.entity_id == entity30 -%} {{ entity30_name }} - {%- elif trigger.entity_id == entity31 -%} {{ entity31_name }} - {%- elif trigger.entity_id == entity32 -%} {{ entity32_name }} - {%- endif -%} + # 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) }}% {%- elif trigger.to_state.entity_id is match "cover." and trigger.to_state.state == 'open' and trigger.to_state.attributes.current_position is defined -%} {{ (trigger.to_state.attributes.current_position | int) | round(0) }}% {%- elif trigger.to_state.entity_id is match "climate." and trigger.to_state.state != 'off' and trigger.to_state.attributes.current_temperature is defined -%} {{ (trigger.to_state.attributes.current_temperature | int) | round(0) }}° {%- else -%} 0 {%- endif -%} - - ##### Button PIC ##### + + ##### SET Buttons Background #### + # + ##### SET Button PIC ##### - service: "{{ command_printf }}" data: cmd: "{{ component_to_update }}pic.pic={{ btn_pic }}" - - ##### TEXT Background ##### + ##### SET ICON Background ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_background_color }}" + data: + component: "{{ component_to_update }}icon" + message: "{{ btn_bg }}" + ##### SET LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" data: component: "{{ component_to_update }}text" message: "{{ btn_bg }}" - - ##### TEXT Font Color ##### + ##### SET BRIGHTNESS Background Color ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_background_color }}" + data: + component: "{{ component_to_update }}bri" + message: "{{ btn_bg }}" + + ##### SET Buttons Font Color + # + ##### SET ICON Font Color ##### + - delay: + milliseconds: "{{ delay_value }}" + - service: "{{ command_font_color }}" + data: + component: "{{ component_to_update }}icon" + message: "{{ btn_icon_font }}" + ##### SET LABEL Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" data: component: "{{ component_to_update }}text" message: "{{ btn_txt_font }}" - - ##### BRIGHTNESS Background Color ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_background_color }}" - data: - component: "{{ component_to_update }}bri" - message: "{{ btn_bg }}" - - ##### BRIGHTNESS Font Color ##### + ##### SET BRIGHTNESS Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" data: component: "{{ component_to_update }}bri" message: "{{ btn_bri_font }}" - - ##### "TEXT" Label ##### - - delay: - milliseconds: "{{ delay_value }}" - - service: "{{ command_text_printf }}" - data: - component: "{{ component_to_update }}text" - message: "{{ btn_label }}" - - ##### "BRIGHTNESS" Text ##### + ##### "BRIGHTNESS" Value ##### - if: - condition: template value_template: "{{ btn_bri_txt == 0 }}" @@ -4379,9 +4112,9 @@ action: milliseconds: "1000" - variables: btn_pic: >- - {%- if trigger.to_state.entity_id is match "button." -%} {{ button_button_off }} - {%- elif trigger.to_state.entity_id is match "input_button." -%} {{ button_button_off }} - {%- elif trigger.to_state.entity_id is match "scene." -%} {{ button_scene_off }} + {%- if trigger.to_state.entity_id is match "button." -%} {{ button_off }} + {%- 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 }}' @@ -4391,7 +4124,7 @@ action: data: cmd: "{{ component_to_update }}pic.pic={{ btn_pic }}" - ##### TEXT Background ##### + ##### LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" @@ -5854,9 +5587,10 @@ action: message: '{{state_attr(weather_entity,"wind_speed") | round(0)}} km/h' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value03_pic.pic={{ weather_icon_wind }} + component: weather01.value03_icon + message: "{{ weather_icon_wind }}" - delay: milliseconds: "{{ delay_value }}" @@ -5940,9 +5674,11 @@ action: message: "{{ state_attr(weather_entity,'forecast')[0].precipitation_probability}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value01_pic.pic={{ weather_icon_rain }} + component: weather01.value01_icon + message: "{{ weather_icon_rain }}" + - delay: milliseconds: "{{ delay_value }}" @@ -5953,9 +5689,10 @@ action: message: "{{states(accuweather_hours_of_sun_0d) | round(0)}} h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value02_pic.pic={{ weather_icon_sun }} + component: weather01.value02_icon + message: "{{ weather_icon_sun }}" - delay: milliseconds: "{{ delay_value }}" @@ -5966,9 +5703,10 @@ action: message: "{{state_attr(accuweather_uv_index_0d, 'level')}} {{states(accuweather_uv_index_0d) | round(0)}}" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value03_pic.pic={{ weather_icon_protect }} + component: weather01.value03_icon + message: "{{ weather_icon_protect }}" - delay: milliseconds: "{{ delay_value }}" @@ -5979,9 +5717,10 @@ action: message: "{{states(accuweather_thunderstorm_probability_day_0d) | round(0)}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value04_pic.pic={{ weather_icon_lightning }} + component: weather01.value04_icon + message: "{{ weather_icon_lightning }}" - delay: milliseconds: "{{ delay_value }}" @@ -5992,9 +5731,10 @@ action: message: "{{states(accuweather_wind_day_0d) | round(0)}} km/h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather01.value05_pic.pic={{ weather_icon_wind }} + component: weather01.value05_icon + message: "{{ weather_icon_wind }}" default: - service: "{{ command_printf }}" @@ -6083,9 +5823,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[0].precipitation| round(1)}} mm' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value02_pic.pic={{ weather_icon_rain }} + component: weather02.value02_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6096,9 +5837,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[0].wind_speed | round(1)}} km/h' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value03_pic.pic={{ weather_icon_wind }} + component: weather02.value03_icon + message: "{{ weather_icon_wind }}" - delay: milliseconds: "{{ delay_value }}" @@ -6182,9 +5924,10 @@ action: message: "{{ state_attr(weather_entity,'forecast')[1].precipitation_probability}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value01_pic.pic={{ weather_icon_rain }} + component: weather02.value01_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6195,9 +5938,10 @@ action: message: "{{states(accuweather_hours_of_sun_1d) | round(0)}} h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value02_pic.pic={{ weather_icon_sun }} + component: weather02.value02_icon + message: "{{ weather_icon_sun }}" - delay: milliseconds: "{{ delay_value }}" @@ -6208,9 +5952,10 @@ action: message: "{{state_attr(accuweather_uv_index_1d, 'level')}} {{states(accuweather_uv_index_1d) | round(0)}}" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value03_pic.pic={{ weather_icon_protect }} + component: weather02.value03_icon + message: "{{ weather_icon_protect }}" - delay: milliseconds: "{{ delay_value }}" @@ -6221,9 +5966,10 @@ action: message: "{{states(accuweather_thunderstorm_probability_day_1d) | round(0)}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value04_pic.pic={{ weather_icon_lightning }} + component: weather02.value04_icon + message: "{{ weather_icon_lightning }}" - delay: milliseconds: "{{ delay_value }}" @@ -6234,9 +5980,10 @@ action: message: "{{states(accuweather_wind_day_1d) | round(0)}} km/h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather02.value05_pic.pic={{ weather_icon_wind }} + component: weather02.value05_icon + message: "{{ weather_icon_wind }}" default: - service: "{{ command_printf }}" @@ -6325,9 +6072,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[1].precipitation| round(1)}} mm' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value02_pic.pic={{ weather_icon_rain }} + component: weather03.value02_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6338,9 +6086,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[1].wind_speed | round(1)}} km/h' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value03_pic.pic={{ weather_icon_wind }} + component: weather03.value03_icon + message: "{{ weather_icon_wind }}" - delay: milliseconds: "{{ delay_value }}" @@ -6424,9 +6173,10 @@ action: message: "{{ state_attr(weather_entity,'forecast')[2].precipitation_probability}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value01_pic.pic={{ weather_icon_rain }} + component: weather03.value01_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6437,9 +6187,10 @@ action: message: "{{states(accuweather_hours_of_sun_2d) | round(0)}} h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value02_pic.pic={{ weather_icon_sun }} + component: weather03.value02_icon + message: "{{ weather_icon_sun }}" - delay: milliseconds: "{{ delay_value }}" @@ -6450,9 +6201,10 @@ action: message: "{{state_attr(accuweather_uv_index_2d, 'level')}} {{states(accuweather_uv_index_2d) | round(0)}}" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value03_pic.pic={{ weather_icon_protect }} + component: weather03.value03_icon + message: "{{ weather_icon_protect }}" - delay: milliseconds: "{{ delay_value }}" @@ -6463,9 +6215,10 @@ action: message: "{{states(accuweather_thunderstorm_probability_day_2d) | round(0)}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value04_pic.pic={{ weather_icon_lightning }} + component: weather03.value04_icon + message: "{{ weather_icon_lightning }}" - delay: milliseconds: "{{ delay_value }}" @@ -6476,9 +6229,10 @@ action: message: "{{states(accuweather_wind_day_2d) | round(0)}} km/h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather03.value05_pic.pic={{ weather_icon_wind }} + component: weather03.value05_icon + message: "{{ weather_icon_wind }}" default: - service: "{{ command_printf }}" @@ -6567,9 +6321,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[2].precipitation| round(1)}} mm' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value02_pic.pic={{ weather_icon_rain }} + component: weather04.value02_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6580,9 +6335,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[2].wind_speed | round(1)}} km/h' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value03_pic.pic={{ weather_icon_wind }} + component: weather04.value03_icon + message: "{{ weather_icon_wind }}" - delay: milliseconds: "{{ delay_value }}" @@ -6666,9 +6422,10 @@ action: message: "{{ state_attr(weather_entity,'forecast')[3].precipitation_probability}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value01_pic.pic={{ weather_icon_rain }} + component: weather04.value01_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6679,9 +6436,10 @@ action: message: "{{states(accuweather_hours_of_sun_3d) | round(0)}} h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value02_pic.pic={{ weather_icon_sun }} + component: weather04.value02_icon + message: "{{ weather_icon_sun }}" - delay: milliseconds: "{{ delay_value }}" @@ -6692,9 +6450,10 @@ action: message: "{{state_attr(accuweather_uv_index_3d, 'level')}} {{states(accuweather_uv_index_3d) | round(0)}}" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value03_pic.pic={{ weather_icon_protect }} + component: weather04.value03_icon + message: "{{ weather_icon_protect }}" - delay: milliseconds: "{{ delay_value }}" @@ -6705,9 +6464,10 @@ action: message: "{{states(accuweather_thunderstorm_probability_day_3d) | round(0)}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value04_pic.pic={{ weather_icon_lightning }} + component: weather04.value04_icon + message: "{{ weather_icon_lightning }}" - delay: milliseconds: "{{ delay_value }}" @@ -6718,9 +6478,10 @@ action: message: "{{states(accuweather_wind_day_3d) | round(0)}} km/h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather04.value05_pic.pic={{ weather_icon_wind }} + component: weather04.value05_icon + message: "{{ weather_icon_wind }}" default: - service: "{{ command_printf }}" @@ -6809,9 +6570,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[3].precipitation| round(1)}} mm' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value02_pic.pic={{ weather_icon_rain }} + component: weather05.value02_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6822,9 +6584,10 @@ action: message: '{{state_attr(weather_entity,"forecast")[3].wind_speed | round(1)}} km/h' - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value03_pic.pic={{ weather_icon_wind }} + component: weather05.value03_icon + message: "{{ weather_icon_wind }}" - delay: milliseconds: "{{ delay_value }}" @@ -6908,9 +6671,10 @@ action: message: "{{ state_attr(weather_entity,'forecast')[4].precipitation_probability}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value01_pic.pic={{ weather_icon_rain }} + component: weather05.value01_icon + message: "{{ weather_icon_rain }}" - delay: milliseconds: "{{ delay_value }}" @@ -6921,9 +6685,10 @@ action: message: "{{states(accuweather_hours_of_sun_4d) | round(0)}} h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value02_pic.pic={{ weather_icon_sun }} + component: weather05.value02_icon + message: "{{ weather_icon_sun }}" - delay: milliseconds: "{{ delay_value }}" @@ -6934,9 +6699,10 @@ action: message: "{{state_attr(accuweather_uv_index_4d, 'level')}} {{states(accuweather_uv_index_4d) | round(0)}}" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value03_pic.pic={{ weather_icon_protect }} + component: weather05.value03_icon + message: "{{ weather_icon_protect }}" - delay: milliseconds: "{{ delay_value }}" @@ -6947,9 +6713,10 @@ action: message: "{{states(accuweather_thunderstorm_probability_day_4d) | round(0)}} %" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value04_pic.pic={{ weather_icon_lightning }} + component: weather05.value04_icon + message: "{{ weather_icon_lightning }}" - delay: milliseconds: "{{ delay_value }}" @@ -6960,9 +6727,10 @@ action: message: "{{states(accuweather_wind_day_4d) | round(0)}} km/h" - delay: milliseconds: "{{ delay_value }}" - - service: "{{ command_printf }}" + - service: "{{ command_text_printf }}" data: - cmd: weather05.value05_pic.pic={{ weather_icon_wind }} + component: weather05.value05_icon + message: "{{ weather_icon_wind }}" default: - service: "{{ command_printf }}" @@ -7320,7 +7088,7 @@ action: {%- endif -%} # ICON Font Color btn_icon_font: >- - {%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }} + {%- 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 }} @@ -7384,7 +7152,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_bg }}" - ##### SET TEXT Background ##### + ##### SET LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" @@ -7408,7 +7176,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_icon_font }}" - ##### SET TEXT Font Color ##### + ##### SET LABEL Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" @@ -7558,7 +7326,7 @@ action: {%- endif -%} # ICON Font Color btn_icon_font: >- - {%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }} + {%- 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 }} @@ -7622,7 +7390,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_bg }}" - ##### SET TEXT Background ##### + ##### SET LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" @@ -7646,7 +7414,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_icon_font }}" - ##### SET TEXT Font Color ##### + ##### SET LABEL Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" @@ -7796,7 +7564,7 @@ action: {%- endif -%} # ICON Font Color btn_icon_font: >- - {%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }} + {%- 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 }} @@ -7860,7 +7628,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_bg }}" - ##### SET TEXT Background ##### + ##### SET LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" @@ -7884,7 +7652,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_icon_font }}" - ##### SET TEXT Font Color ##### + ##### SET LABEL Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" @@ -8034,7 +7802,7 @@ action: {%- endif -%} # ICON Font Color btn_icon_font: >- - {%- if current_entity_state == 'unknown' or current_entity_state == 'unavailable' -%} {{ button_color_1 }} + {%- 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 }} @@ -8098,7 +7866,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_bg }}" - ##### SET TEXT Background ##### + ##### SET LABEL Background ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_background_color }}" @@ -8122,7 +7890,7 @@ action: data: component: "{{ repeat.item.button }}icon" message: "{{ btn_icon_font }}" - ##### SET TEXT Font Color ##### + ##### SET LABEL Font Color ##### - delay: milliseconds: "{{ delay_value }}" - service: "{{ command_font_color }}" @@ -8498,7 +8266,6 @@ action: {%- else -%} {{ states(repeat.item.entity) }} {{ state_attr(repeat.item.entity, "unit_of_measurement") }} {%- endif -%} - ##### Open Climate Settings ##### - conditions: