[SOLVED] Convert result from http binding to colors

I am totally new to Openhab.
I use a HTTP binding to know the status of my garage door.
(something like :

item : 
String GarageStatusLeft "[%s]" {http="<[http://192.168.1.55:8888/st?id=left:1000:REGEX((.*))]"} ).
sitemap : 
Switch item=GarageDoorButtonLeft mappings=[ON="Toggle"]
Text item=GarageStatusLeftDisp
Rule 
rule garageStatusLeft
when
	Item GarageStatusLeft received update
then
	if (GarageStatusLeftDisp.state.toString.toUpperCase != GarageStatusLeft.state.toString.toUpperCase) {
		GarageStatusLeftDisp.postUpdate(GarageStatusLeft.state.toString.toUpperCase);
	}
end

The result can be “closed” or “opened” or “opening” or “closing”.
I would like to see a color instead of a status; I mean, how can I show the result with a color button or anything else (red, amber or green).
ANy hint is welcomed :slight_smile:
Thanks
Gilles94

Did you try adding valuecolor to the item label in the sitemap?

It was the missing parameter. It works. As suggested, I have added :
valuecolor=[CLOSED=“green”,OPEN=“red”,OPENING=“orange”,CLOSING=“orange”]
to the Text Item statements
Thanks a lot.
Gilles94