Lookup entity id from a friendly name

Trying to use a Friendly Name to get the entity id.
Reason is, my automation trigger is an event that I can use {{ trigger.event.data.sourceDeviceName }} to get the Device Name from, which is exactly the same as the Friendly Name of the entity I want to call.
I just can’t seem to figure out how to do it.

Thanks in advance for you help…

Listen to the event in developer tools / events then trigger the event. Paste the (formatted) data here.

Not sure how this is going to help, but if it gives you any insight here ya are:

{
    "event_type": "ios.action_fired",
    "data": {
        "actionID": "Temps",
        "actionName": "Temps",
        "sourceDeviceID": "bobs_iphone_11",
        "sourceDeviceName": "Bob's iPhone 11",
        "sourceDevicePermanentID": "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX",
        "triggerSource": "watch"
    },
    "origin": "REMOTE",
    "time_fired": "2021-10-28T00:11:03.033978+00:00",
    "context": {
        "id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "parent_id": null,
        "user_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    }
}

Well I was hoping the entity id would be in the data. It isn’t.

The problem is that there can be more than one entity associated with a device. The closest you can get is a list of those entities:

{{ device_entities(trigger.event.data.sourceDeviceID) }}

Yeah that doesn’t work.
Even Tried:
{{ device_entities(trigger.event.data.sourceDeviceName) }}

I knew that entity_id wasn’t in the data, the docs told me that. But I was still hoping there was a method for get the entity_id from the Friendly Name as (in this case anyways) the sourceDeviceName is an exact match for the Friendly Name. I would assume that the there would be only be on entity for each Friendly Name, because otherwise it would make referencing or monitoring your devices very Confusing.