@ilovegym
Es gibt aber auch genügend Beispiele, wie man das ohne CSS formatieren könnte:
line1.font = Font.semiboldSystemFont(13)
line1.textSize = 13
line1.textColor = Color.white()
line2.font = Font.systemFont(12)
line2.textSize = 12
line2.textColor = Color.white()
line2.textOpacity = 0.8
Und - aus der Hüfte geschossen weil ich das nicht kenne/einsetze:
let tage = await getValue("0_userdata.0.Simple_API.Tage")
const line2 = list.addText("<span style='color:red'>" + tage + "</span>" + " Tage")
Käme vermutlich auf einen Versuch an ...
Und by the way: Da Scriptable nix mit ioBroker zu tun hat, sollte der Thread vielleicht nach OffTopic verschoben werden => @Homoran