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
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 !!