Icon Style at Dashboard 2.0

Hello,
i am still confused how i can bring a icon into my dashboard in dependence of an input.
Example: payload :1 = icon alert, payload 2. = icon standby.
All i find are out of dashborad 1.0 or with switch or button nodes in 2.0.
I just want to show the state(value) - even when i use the switch node i don't know how to connect the icon.
Thx in advance
Olmuk