Condition: detect if string is in last notification sensor from compagnion app

hi, i would like to know what i’m doing wrong i’m using the companion app sensor for last notification
i’m trying to create an automation base on a notification that my phone got

the trigger work but i would like to add a condition that will find if a string is in the sensor.last_notification.Android.text attribute
but i can’t seem to be able to catch it
right now im trying with

condition: template
value_template: '{{ ''abc'' in trigger.to_state.attributes[''android.text''] }}'

and i also tried
{{ ‘‘abc’’ in trigger.to_state.attributes.android.text }}
hassio log does not show any errors it simply does not validate the condition as i understand it
nothing work can you help me out

It’s value_template not template_value.

thanks for that correction my mistake .but its only here. in my code that not the problemes thanks you anyway

got it working with

condition: template
value_template: "{{'abc' in state_attr('sensor.last_notification', 'android.bigText')  }}"

thanks for your time

I think you made another “only here” mistake because the template you posted will not pass Check Configuration. It is missing outer quotes.

This passes Check Configuration:

condition: template
value_template: "{{'abc' in state_attr('sensor.last_notification', 'android.bigText')  }}"

yes only here from a copy and paste in the ui editor the quote are not there until i passed to yaml editor so i copied the wrong one anyway it’s corrected .thanks again !!