This commit is contained in:
Chris
2023-03-26 19:59:44 +02:00
5 changed files with 48 additions and 5 deletions

View File

@@ -23,9 +23,6 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
🖼️ Home Assistant [Icon Page](https://htmlpreview.github.io/?https://github.com/jobr99/Generate-HASP-Fonts/blob/master/cheatsheet.html)
🎨 [Color Converter](https://nodtem66.github.io/nextion-hmi-color-convert/index.html)
📌 Step by Step - [Setup Video](https://www.youtube.com/watch?v=3afPFg6kUdc)
@@ -4676,6 +4673,13 @@ action:
data:
component: home.button05_icon
message: "{{ home_button05_icon }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.button05_icon
message: "{{ blank_icon }}"
###### ENTITIES - Icon ######
- if:
@@ -4697,6 +4701,13 @@ action:
data:
component: home.button06_icon
message: "{{ home_button06_icon }}"
else:
- delay:
milliseconds: "{{ delay_value }}"
- service: "{{ command_text_printf }}"
data:
component: home.button06_icon
message: "{{ blank_icon }}"
###### SHOW All component when page loading done #####
- delay:
@@ -9312,9 +9323,25 @@ action:
{%- else -%} {{ state_attr(left_button_entity, "friendly_name")| default('no name') }}
{%- endif -%}
entity_back: '{{ page_home }}'
entity_long_icon: >-
{%- if left_button_entity is match "light." -%} {{ button_icon_light }}
{%- elif left_button_entity is match "switch." -%} {{ button_icon_switch }}
{%- elif left_button_entity is match "input_boolean." -%} {{ button_icon_input_boolan }}
{%- elif left_button_entity is match "cover." -%} {{ button_icon_cover }}
{%- elif left_button_entity is match "automation." -%} {{ button_icon_automation }}
{%- elif left_button_entity is match "button." -%} {{ button_icon_button }}
{%- elif left_button_entity is match "input_button." -%} {{ button_icon_input_button }}
{%- elif left_button_entity is match "scene." -%} {{ button_icon_screne }}
{%- elif left_button_entity is match "script." -%} {{ button_icon_script }}
{%- elif left_button_entity is match "person." -%} {{ button_icon_person }}
{%- elif left_button_entity is match "binary_sensor." -%} {{ button_icon_binary_sensor }}
{%- elif left_button_entity is match "fan." -%} {{ button_icon_fan }}
{%- elif left_button_entity is match "climate." -%} {{ button_icon_climate }}
{%- endif -%}
entity_long_icon_color: 1055
- service: '{{ command_set_settings_entity }}'
data:
entity: '{{ entity_long }},{{ entity_back }},{{ entity_long_name }}'
entity: '{{ entity_long }},{{ entity_back }},{{ entity_long_name }},{{ entity_long_icon }},{{ entity_long_icon_color }}'
- conditions: '{{ left_button_hold_select == "Custom Action" }}'
sequence: !input left_button_hold_custom_action
@@ -9390,9 +9417,25 @@ action:
{%- else -%} {{ state_attr(right_button_entity, "friendly_name")| default('no name') }}
{%- endif -%}
entity_back: '{{ page_home }}'
entity_long_icon: >-
{%- if left_button_entity is match "light." -%} {{ button_icon_light }}
{%- elif left_button_entity is match "switch." -%} {{ button_icon_switch }}
{%- elif left_button_entity is match "input_boolean." -%} {{ button_icon_input_boolan }}
{%- elif left_button_entity is match "cover." -%} {{ button_icon_cover }}
{%- elif left_button_entity is match "automation." -%} {{ button_icon_automation }}
{%- elif left_button_entity is match "button." -%} {{ button_icon_button }}
{%- elif left_button_entity is match "input_button." -%} {{ button_icon_input_button }}
{%- elif left_button_entity is match "scene." -%} {{ button_icon_screne }}
{%- elif left_button_entity is match "script." -%} {{ button_icon_script }}
{%- elif left_button_entity is match "person." -%} {{ button_icon_person }}
{%- elif left_button_entity is match "binary_sensor." -%} {{ button_icon_binary_sensor }}
{%- elif left_button_entity is match "fan." -%} {{ button_icon_fan }}
{%- elif left_button_entity is match "climate." -%} {{ button_icon_climate }}
{%- endif -%}
entity_long_icon_color: 1055
- service: '{{ command_set_settings_entity }}'
data:
entity: '{{ entity_long }},{{ entity_back }},{{ entity_long_name }}'
entity: '{{ entity_long }},{{ entity_back }},{{ entity_long_name }},{{ entity_long_icon }},{{ entity_long_icon_color }}'
- conditions: '{{ right_button_hold_select == "Custom Action" }}'
sequence: !input right_button_hold_custom_action

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.