I'm installing a wall lamp purchased recently that has a ground wire that should be connected. It has two modes of installation, 1) either wired directly into the wall to a switch, i guess, or 2) by just plugging into a wall socket. The plug is only 2 pronged, no grounding pin. The instructions for both modes indicate that the ground wire should be connected.
I have two questions:
How would I ground something like this? I'm just hanging it on the wall, the plug goes into a socket nearby, but do I need a proper earth coming from the circuit box to connect the ground wire to? If I simply connect the ground wire to the hanging plate that gets drilled into the wall to hold it up, would that work?
If this lamp is not properly grounded, then would you know based on its specifications whether it can be a danger to myself or home? I mean if something goes wrong, is the risk only that the lamp itself might get damaged or could this give me a shock or cause a house fire?
For context, I'm installing this in an apartment building in the United States. The wall is (i think) plaster, it's got metal studs but this lamp's hanging plate will be drilled into the wall using anchors, not into a stud. I actually have one of these lights installed already and have been using it with no problems so far, but I've been concerned about this grounding question.
I've attached pictures of the light's 'box' showing the yellow ground wire and the driver with its electrical rating.
I'll also list the rating information here.
INPUT: 100-240V~50/60HZ
OUTPUT: 27-45V, 0.27A P rated: 12.2W