Get all available scenes on NodeRed

Hi all,

Can someone help me to get all the scenes available on nodered?

I need to get the id of a scene given a name.

Thanks for your time and support!!
Jaime

const states = global.get("homeassistant").homeAssistant.states;
msg.payload = Object.values(states).filter(e => e.entity_id.startsWith("scene."));

return msg;