Access msg object in dashboard ui_template

Hi guys,
sorry for commenting on this topic after one year:

I am a little bit confused, since the linked reference (javascript:watch object) is claiming, that you should not use the watch object since it is not supported by any current browser anymore. Does this recommendation not apply to the ui_template node?

Is there any other way how to get the msg.payload object into a script block within an ui_template?