OK - starting to make a little more sense (it would still be MUCH easier if you posted a copy of your data object, however…)
And, if you already have it ‘working’ in a switch node, then posting your code would help. $entity() does not work in a switch node, so you must be doing something else…
Entity (sensor.pixel_7_pro_active_notification_count) state is a count of messages.
Entity (_) .attributes is an object, each object holds messages.
So, the attribute android.title_net.dinglisch.android.taskerm_5921033617 can be one or more messages. I can’t see any need to escape the usual JSON path reference, as long as taskerm_5921033617 remains static.
What I still don’t know is, is the value in this attribute an array [“Darling don’t forget to bring mike!”, “Home”, “Hi Biscuit, how r you?”] or a string
“Darling don’t forget to bring mike!|Home|Hi Biscuit, how r you?”
If (a big if) the entity value is a composite string separated by ‘|’ then
(
$value:=$entity().android.title_net.dinglisch.android.taskerm_5921033617;
true in $split($value, "|").$contains($,"Home")
)
as JSONata can be used to test for “Home” being contained within one (or more) of the messages in the message list string.
If you want to test for exactly that the message is “Home” and nothing more, that requires a little more code.
You can then use this JSONata, either in a trigger node as the trigger conditional test, or in an event state node, in the output message section, to generate a Boolean true/false that can then be used in a switch node to manage the flow.