Unifi Protect Doorbell Fingerprint Output

I have an Aqara U100 lock on my side door and love how it works and integrates to HA. I recently bought a U50 lock for the front door. I figured since I have the Unifi G4 Doorbell with the fingerprint reader, I didn't need the U100.

So I install the U50 and wanted to create a node red flow that would unlock the U50 when a known print was scanned on the doorbell. But, I ran into an issue. When a print is scanned on the doorbell, Protect outputs a date and time stamp, but no user or authentication data. This opens the lock when any print is scanned, known and unknown. Does anyone know how to make Protect only output with an authenticated print scan?

I followed Unifi Protect Home Assistant instructions here: Example G4 Doorbell Fingerprint Identified Automation.

And here is the events: states Node Red code I used:

[{"id":"6fe861b598a7992c","type":"server-state-changed","z":"fe1a8042.af255","name":"Valid Fingerprint","server":"","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["event.g4_doorbell_pro_poe_fingerprint"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"(\t    $new:=$entity();\t    $old:=$prevEntity();\t    $new.attributes.event_type=\"identified\"\t)","ifStateType":"jsonata","ifStateOperator":"jsonata","outputOnlyOnStateChange":false,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"x":100,"y":500,"wires":[["12435decd1c9dc63"],[]]},{"id":"f47dc782fb15090c","type":"global-config","env":[],"modules":{"node-red-contrib-home-assistant-websocket":"0.80.3"}}]

Maybe I'm missing something, but where are you able to enter the code into the Events State node?

Import the code into Node Red and you will see.

Ahh...Got it. Worked Perfectly, Thanks!!