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?
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
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 -