Wouldn't work for weather alerts, but for weather states such as 'Partly Cloudy' or 'Chance of snow' which won't fit under a 96x96 icon on my control panels, I've made 3 variables for each daily/hourly device I'm displaying. I use a python loop from 1-10 and 1-24 to create the variables to save time.
Variable WeatherDay1a and WeatherDay1b hold half of the multiline state ('Chance' and 'of snow') and WeatherDay1c holds the single line state ('Overcast').
Whenever you refresh data, an embedded python script runs, looping 1-10 and 1-24 again, then saying If(Day1=Overcast), set a&b to "" and set c to Overcast. If(Day1="Chance of rain"), set a to 'Chance', b to 'of rain' and c to "". Etc etc etc.
I have a catch all at the top that sets a,b,c to "" first so if the weather is a new state that I've not added in the script yet, it displays blank.
On control pages, 'c' is displayed vertically-central where I want it, and 'a' and 'b' are lined up above each other, on top of 'c', so you either see one or the other.
Peter
Sent from my iPhone using Tapatalk