REGEX exclude incoming if certain word

I have a 4 button zigbee switch that works really nice .I use zigbee2tasmota and mqtt to read the buttons actions.I use the incoming tranformation :


to parse the action from a line :


for example to read button’s 1 (“Endpoint”:1) action (LidlPower) and then humanize it with a Map tranform.
From time to time the button sends the following line without any action of me :


so i get the error:

2023-06-11 22:08:41.734 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.ZbReceived.4Button.LidlPower' in '{"ZbReceived":{"4Button":{"Device":"0x334D","Name":"4Button","Cluster":10,"Read":[7],"ReadNames":{"LocalTime":true},"Endpoint":1,"LinkQuality":76}}}'

my goal is to use regex to exclude this reading by using the word of “Cluster” or “Read” and not receive this error.Any ideas?

Maybe try to ensure that the JSON path is contained in the data by testing with an intersecting REGEX.
If it is not present the result will be empty and not further processing takes place.
I did this with a similar switch and it worked fine - being on vacation I currently to not have the detailed code available, but I guess you get what I mean.
Edit: A quick VPN access helped to get the expression example for the path “action”: