Removing unnecessary blank spaces
This commit is contained in:
@@ -4467,14 +4467,14 @@ action:
|
|||||||
{% if not current_entity_state_available %} {{ nextion.colors.red }}
|
{% if not current_entity_state_available %} {{ nextion.colors.red }}
|
||||||
{% elif item_domain in ['button', 'input_button', 'scene'] or current_entity_state in ['off', 'closed', 'closing'] or (item_domain == 'person' and current_entity_state != 'home') %} {{ nextion.colors.grey_light }}
|
{% elif item_domain in ['button', 'input_button', 'scene'] or current_entity_state in ['off', 'closed', 'closing'] or (item_domain == 'person' and current_entity_state != 'home') %} {{ nextion.colors.grey_light }}
|
||||||
{% elif current_entity_state in ['on', 'open', 'opening', 'home'] or (item_domain == 'climate' and current_entity_state != 'off') %} {{ repeat.item.icon_color_rgb if is_number(repeat.item.icon_color_rgb) else ((repeat.item.icon_color_rgb[0] //(2**3)) *(2**11))+((repeat.item.icon_color_rgb[1] //(2**2)) *(2**5))+(repeat.item.icon_color_rgb[2] //(2**3)) }}
|
{% elif current_entity_state in ['on', 'open', 'opening', 'home'] or (item_domain == 'climate' and current_entity_state != 'off') %} {{ repeat.item.icon_color_rgb if is_number(repeat.item.icon_color_rgb) else ((repeat.item.icon_color_rgb[0] //(2**3)) *(2**11))+((repeat.item.icon_color_rgb[1] //(2**2)) *(2**5))+(repeat.item.icon_color_rgb[2] //(2**3)) }}
|
||||||
{% else %} {{ nextion.colors.red }}
|
{% else %}{{ nextion.colors.red }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# LABEL Font Color
|
# LABEL Font Color
|
||||||
btn_txt_font: >-
|
btn_txt_font: >-
|
||||||
{% if not current_entity_state_available %} {{ nextion.colors.white }}
|
{% if not current_entity_state_available %} {{ nextion.colors.white }}
|
||||||
{% elif item_domain in ['button', 'input_button', 'scene'] or current_entity_state in ['off', 'closed', 'closing'] or (item_domain == 'person' and current_entity_state != 'home') %} {{ nextion.colors.white }}
|
{% elif item_domain in ['button', 'input_button', 'scene'] or current_entity_state in ['off', 'closed', 'closing'] or (item_domain == 'person' and current_entity_state != 'home') %} {{ nextion.colors.white }}
|
||||||
{% elif current_entity_state in ['on', 'open', 'opening', 'home'] or (item_domain == 'climate' and current_entity_state != 'off') %} {{ nextion.colors.grey_dark }}
|
{% elif current_entity_state in ['on', 'open', 'opening', 'home'] or (item_domain == 'climate' and current_entity_state != 'off') %} {{ nextion.colors.grey_dark }}
|
||||||
{% else %} {{ nextion.colors.white }}
|
{% else %}{{ nextion.colors.white }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# BRIGHTNESS Font Color
|
# BRIGHTNESS Font Color
|
||||||
btn_bri_font: "{{ btn_txt_font }}" #"{{ nextion.colors.grey_dark }}"
|
btn_bri_font: "{{ btn_txt_font }}" #"{{ nextion.colors.grey_dark }}"
|
||||||
@@ -4483,7 +4483,7 @@ action:
|
|||||||
{% if not current_entity_state_available %} {{ nextion.icons.buttons.unknown }}
|
{% if not current_entity_state_available %} {{ nextion.icons.buttons.unknown }}
|
||||||
{% elif repeat.item.icon | length > 0 %} {{ nextion.icons.all[repeat.item.icon.split(':')[1]] | default(repeat.item.icon if repeat.item.icon is string else '\U0000E2D5') }}
|
{% elif repeat.item.icon | length > 0 %} {{ nextion.icons.all[repeat.item.icon.split(':')[1]] | default(repeat.item.icon if repeat.item.icon is string else '\U0000E2D5') }}
|
||||||
{% elif repeat.item.entity and repeat.item.entity.split('.') | count > 1 %} {{ nextion.icons.buttons[repeat.item.entity.split('.')[0] if repeat.item.entity else 'unknown'] }}
|
{% elif repeat.item.entity and repeat.item.entity.split('.') | count > 1 %} {{ nextion.icons.buttons[repeat.item.entity.split('.')[0] if repeat.item.entity else 'unknown'] }}
|
||||||
{% else %} {{ nextion.icons.buttons.unknown }}
|
{% else %}{{ nextion.icons.buttons.unknown }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# LABEL Value
|
# LABEL Value
|
||||||
btn_label: "{{ repeat.item.name }}"
|
btn_label: "{{ repeat.item.name }}"
|
||||||
@@ -5024,7 +5024,7 @@ action:
|
|||||||
forecast_day: >
|
forecast_day: >
|
||||||
{{ state_attr(weather_entity, 'forecast') | default([])
|
{{ state_attr(weather_entity, 'forecast') | default([])
|
||||||
| selectattr('datetime', 'defined')
|
| selectattr('datetime', 'defined')
|
||||||
| selectattr('datetime', '>=', (today_at('00:00') + timedelta(days= page_index )) | as_timestamp | timestamp_local )
|
| selectattr('datetime', '>=', (today_at('00:00') + timedelta(days= page_index)) | as_timestamp | timestamp_local )
|
||||||
| selectattr('datetime', '<', (today_at('00:00') + timedelta(days= (page_index+1))) | as_timestamp | timestamp_local )
|
| selectattr('datetime', '<', (today_at('00:00') + timedelta(days= (page_index+1))) | as_timestamp | timestamp_local )
|
||||||
| list
|
| list
|
||||||
}}
|
}}
|
||||||
@@ -5038,7 +5038,7 @@ action:
|
|||||||
{% elif metnoweather and metnoweather_hourly_forecast %}
|
{% elif metnoweather and metnoweather_hourly_forecast %}
|
||||||
{{ metnoweather_hourly_forecast
|
{{ metnoweather_hourly_forecast
|
||||||
| selectattr('datetime', 'defined')
|
| selectattr('datetime', 'defined')
|
||||||
| selectattr('datetime', '>=', (today_at('00:00') + timedelta(days= page_index )) | as_timestamp | timestamp_local )
|
| selectattr('datetime', '>=', (today_at('00:00') + timedelta(days= page_index)) | as_timestamp | timestamp_local )
|
||||||
| selectattr('datetime', '<', (today_at('00:00') + timedelta(days= (page_index+1))) | as_timestamp | timestamp_local )
|
| selectattr('datetime', '<', (today_at('00:00') + timedelta(days= (page_index+1))) | as_timestamp | timestamp_local )
|
||||||
| list
|
| list
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user