Help with incoming tranformation

i strangle to fetch a mqtt state of the switch /outlet 0 .The topic publish :


so i use regex to filter


and then i try several vercions of JSONPATH like


but it doesnt work and i am complete newbie at this and dont know what to try.Can anyone has an idea where to start?


1 Like

You could get away with the simple index, but it’s better to be precise:


This is: Search for a node, which contains a field “outlet” with the value “0”. get the value of field “switch” from this node

1 Like