Node-RED trigger by new state attributes

I’m trying to create a trigger state node based on new state attributes for when I have a specific notification in my Android. I guess I’m missing something as it’s not working.

What did I miss?

try adding data. ie data.new_sta...

Didn’t work.

When I copy the path, it give me from the debug msg the following path data.event.new_state.attributes[“android.bigText_net.dinglisch.android.taskerm_xxxx”]
When I start typing new_state in the property box the autocomplete show me new_state.attributes.android.bigText_net.dinglisch.android.taskerm_xxxx as an option.

Did you try it like this? Or leave the brackets and remove the quotes.

It’s not working with this path, every thing the path is in “”’ it will be considered as a value string and not the key.

I think the problem is with the android.bigText_net.dinglisch.android.taskerm_xxxx

after the android there is a dot, and then bigText_net and then a dot, I think this is not a proper key name…

[] Brackets usually mean an array but visually it is not shown as one in your picture.

If I had the actual message, I could help you further if you want to redact the info and leave the structure intact. Then post it in code blocks

Try this new_state.attributes[3]

Edit:

The easiest way to experiment with this for your self is to use a switch and load the json in an inject node

[{"id":"348b1720915c8078","type":"debug","z":"60f2d2277843c698","name":"debug 24","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":780,"y":900,"wires":[]},{"id":"2d7aa36093a34af1","type":"switch","z":"60f2d2277843c698","name":"","property":"payload.data.event.new_state.attributes[1]","propertyType":"msg","rules":[{"t":"eq","v":"mike_fila","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":610,"y":900,"wires":[["348b1720915c8078"]]},{"id":"52b2c5256d04b293","type":"inject","z":"60f2d2277843c698","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"json","x":410,"y":900,"wires":[["2d7aa36093a34af1"]]}]

I have some progress with $entity().attributes.“android.bigText_net.dinglisch.android.taskerm_xxxxxx”

I’m getting the value