Thermostat display

I think it’s got something to do with the tile being defined as multiattribute and that being called via the main statement.

To work around it define another valueTile called temperature2 and then call that from main. For example:

    valueTile("temperature2", "device.temperature", width: 1, height: 1, canChangeIcon: true) {
        state "temperature", label: '${currentValue}°',
                           backgroundColors:[
                               [value: 31, color: "#153591"],
                               [value: 44, color: "#1e9cbb"],
                               [value: 59, color: "#90d2a7"],
                               [value: 74, color: "#44b621"],
                               [value: 84, color: "#f1d801"],
                               [value: 95, color: "#d04e00"],
                               [value: 96, color: "#bc2323"]
                           ]
    }
	main(["temperature2"])

That sorted it for me.

I can’t take any credit for that I just compared two DTH and it led me to the answer. I’m also no coder so any constructive criticism welcome!

4 Likes