Pass value to ui_template in dashboard 2.0

I do not understand how to pass a value from my incoming message into this code... Can someone please help?

This causes the page to crash

A post was merged into an existing topic: Passing dynamic class into dashboard 2.0 ui_template

Reason double posting , answer moved to original topic. @olab please do not double post.