It still does not make sense!
You say you will use a power adapter anyway, so why not instead use a 24VAC transformer?
And if you are to use a power adapter, that indicated you have mains available.
You can get the 5VDC from the 24VAC, or use a small switch mode supply like a phone charger.
Why do you insist you have a size limit?
The transformer would replace the power adapter, and that is external.
There are quite a few 24VAC transformers available. (Ebay search)


Why is something like this not suitable when a DC power brick is?
You say you will use a power adapter anyway, so why not instead use a 24VAC transformer?
And if you are to use a power adapter, that indicated you have mains available.
You can get the 5VDC from the 24VAC, or use a small switch mode supply like a phone charger.
Why do you insist you have a size limit?
The transformer would replace the power adapter, and that is external.
There are quite a few 24VAC transformers available. (Ebay search)


Why is something like this not suitable when a DC power brick is?





