Variable in iframe?

I have been looking (and experimenting) for awhile now and I cant figure it out. Can you use a variable from a ip sensor in a iframe url?

I don’t know, but in 2024.4 iframes were removed and changed to webpage dashboards. So I would not put much effort in trying.

Isn’t the webpage card just a iframe.

Webpage is just a rename of the iframe, effectively the same
Try using a template sensor? If that does not work try a conditional card, which i know sucks at scale

Very few core dashboard cards support templating, so the answer is very likely “no you can’t”. At least not without help from a third party resource.