Changing the data from Node-RED to Google Firebase

I am storing the entries in Google firebase database(IMEI number, the range of CO in ppm etc., as seen in the photo). For every newly signed-in user, the data gets stored under a unique-ID (UID).
Since the UID is random and not fixed, I am not sure how to reach the node "50-70" and set its value as "on" from Node-RED using "Firebase.set()" node.
Could someone help me on this issue?

Make a function after push firebase and add inside that function

msg.payload = msg.pushID
return msg

That will return that unique id. (Just had the same problem so found the solution)

Good luck