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
Thanks
Gilles94