Populating graphical menu dynamically

Is there a way to set options for a graphical menu either on start up or based on an MMQT update? I want to ingest json and make the events of the menu reflect what’s in the json.

When any child option is pressed it needs to trigger an MMQT call, passing its text or id

I am really hoping this is possible as I’ve invested quite a bit of time into learning esphome to make this project work!

Thanks in advance

Anyone got thoughts on this?

I have found a workaround which is to create a yaml dynamically and update the esp32 automatically but it’s a hacky solution