Dashboard2 / Gauge / Label

I am just starting to play with Dashboard2. I have a number of battery powered sensors and want to display the last battery charge (%) and when it was last updated. I was doing this in Dashboard using the Label field - Tackroom Sensor
{{msg.convertDateTime}} which provides this -
Tackroom Sensor
2/9/2025, 1:05:30 AM

With Dashboard2 this doesn't work.
I get this - Tackroom Sensor
{{msg.convertDateTime}}

Does this just work yet or am I doing it wrong for Dashboard2?

Thanks, Chris

Yes you almost certainly are but you have not told us enough to know exactly what.

What do you mean by the Label field?
Is this a text widget?

You need to show us how you have configured the widget, in particular where the string{{msg.convertDateTime}} is entered.

It would be useful to see the output in a debug node showing the complete message passed to the dashboard.

With Dashboard 2 gauge the label field can be dynamically updated by sending the the property msg.ui_update.label

This is the Gauge Node for Dashboard2, sorry I missed saying that.
Here is the message...
2/9/2025, 12:51:55 PMnode: debug 33Tackroom-Battery : msg : Object

object
nodeName: "Barn Tack Room Zooz Notification Sensor Battery"
topic: "Tackroom-Battery"
payload: 35
_msgid: "5feff84cdb7029e7"
convertDateTime: "2/9/2025, 1:05:30 AM"
_event: "node:b0723fccc97748dd"

Thanks, that did the trick. I need to add in the name still but it should work. I didn't need to do that with Dashboard.

ok, one last issue. I am using the change node to set the value for msg.ui_update.label
While I can get the value of msg.convertDateTime to display, I am having trouble including the rest of the text.
2/9/2025, 1:11:25 PMnode: debug 33Tackroom-Battery : msg : Object
object
nodeName: "Barn Tack Room Zooz Notification Sensor Battery"
topic: "Tackroom-Battery"
payload: 35
_msgid: "b1535c5c73bf2d5c"
convertDateTime: "2/9/2025, 1:05:30 AM"
ui_update: object
label: "Tackroom Sensor <br>${msg.convertDateTime}"

I got it to mostly work. I have all of the information in the label now, but I can't seem to get a newline so I get 2 lines of text. It wraps just fine, so how do you insert a newline??

That is likely a shortfall of the Dashboard 2.0 at the moment. The only thing I could think of off the top of my head would be to use <br/> instead of /n

The didn't seem to work. I can wait for improvements.

One other thing that I noticed is that on my phone the battery level is different than on my PC. The fill is only showing up on the one device while on the PC is shows on all of them. I copied the nodes show they are all configured the same.
One the Phone -

On the PC -

Thanks, Chris

Thanks for checking Chris, could I trouble you to raise an issue in that case please?

Done - Dashboard2/Gauge/Battery #1617
I included the images and versions and a short description.
Dashboard2/Gauge/Battery · Issue #1617 · FlowFuse/node-red-dashboard

Chris