Vertically Centering of Label in ValueTile?

Does anybody knows how to vertically center a Label value in a valueTile ?
I have found plenty of threads discussing that same subject, none with any conclusive recommendation.
It is irritating since SOME Tiles have obviously properly centered Labels, while other, often in the same panel, display the Label value in the lower third of the disc. And comparing the source codes did not give me any clue of why it is so.

Below is what I would like to correct (left tile to center), with the code producing it.

valueTile("temperature", "device.temperature", inactiveLabel: false, width: 2, height: 2, canChangeIcon: true, canChangeBackground: true) {
     state "temperature", label:'${currentValue}°', unit:"C", icon: "st.alarm.temperature.normal",

You can try adding a newline or two with “\n”, (eg. label:’${currentValue}°\n\n’), but YMMV on how that renders based on OS and platform…

Works great on iOS 10.3.3, see below, with a single \n (eg. label:’${currentValue}°\n’).
Thanks a lot ! :+1:

1 Like