That doesn’t answer either of the two questions I asked.
I’ll reiterate…
Are you establishing the variables via custom:button-card?
If so, expecting to use those variables in Jinga based cards simply will not work.
A few threads that may help you…
Mushroom Thread
Button Thread