diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 8a6b3ea..b3b47f8 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -4461,20 +4461,20 @@ action: # Button PIC GRAY/WHITE btn_pic: > {{ - nextion.pics.button.on - if current_entity_state in ['on', 'open', 'opening', 'home'] - or (item_domain == 'climate' and current_entity_state != 'off') + nextion.pics.button.on + if current_entity_state in ['on', 'open', 'opening', 'home'] + 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') - else nextion.pics.button.off + else nextion.pics.button.off }} # TEXT, BRIGHTNESS and ICON Background btn_bg: > {{ - nextion.colors.white - if current_entity_state in ['on', 'open', 'opening', 'home'] - or (item_domain == 'climate' and current_entity_state != 'off') + nextion.colors.white + if current_entity_state in ['on', 'open', 'opening', 'home'] + 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') - else nextion.colors.grey_dark + else nextion.colors.grey_dark }} # ICON Font Color btn_icon_font: >