upd: remove trailing spaces
This commit is contained in:
@@ -4461,20 +4461,20 @@ action:
|
|||||||
# Button PIC GRAY/WHITE
|
# Button PIC GRAY/WHITE
|
||||||
btn_pic: >
|
btn_pic: >
|
||||||
{{
|
{{
|
||||||
nextion.pics.button.on
|
nextion.pics.button.on
|
||||||
if current_entity_state in ['on', 'open', 'opening', 'home']
|
if current_entity_state in ['on', 'open', 'opening', 'home']
|
||||||
or (item_domain == 'climate' and current_entity_state != 'off')
|
or (item_domain == 'climate' and current_entity_state != 'off')
|
||||||
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
|
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
|
||||||
else nextion.pics.button.off
|
else nextion.pics.button.off
|
||||||
}}
|
}}
|
||||||
# TEXT, BRIGHTNESS and ICON Background
|
# TEXT, BRIGHTNESS and ICON Background
|
||||||
btn_bg: >
|
btn_bg: >
|
||||||
{{
|
{{
|
||||||
nextion.colors.white
|
nextion.colors.white
|
||||||
if current_entity_state in ['on', 'open', 'opening', 'home']
|
if current_entity_state in ['on', 'open', 'opening', 'home']
|
||||||
or (item_domain == 'climate' and current_entity_state != 'off')
|
or (item_domain == 'climate' and current_entity_state != 'off')
|
||||||
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
|
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
|
||||||
else nextion.colors.grey_dark
|
else nextion.colors.grey_dark
|
||||||
}}
|
}}
|
||||||
# ICON Font Color
|
# ICON Font Color
|
||||||
btn_icon_font: >
|
btn_icon_font: >
|
||||||
|
|||||||
Reference in New Issue
Block a user