openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Be able to connect multiple conditions with AND in sitemap's valuecolor

Open dilyanpalauzov opened this issue 3 years ago • 0 comments

Currenlty Sitemaps’s can have dynamic valuecolor=[…]. In the brackets conditions can be written, followed by colour. When a condition is met, the following colour is used and the remaining conditions are not evaluated.

I want to be able conjunct two conditions, as in valuecolor=[A==ON AND B==ON ⇒ "green" A==ON AND B==OFF ⇒ "RED" A==OFF AND B==ON ⇒ "blue" A==OFF AND B==OFF ⇒ "white"], or the equivalent but shorter valuecolor=[A==ON AND B==ON ⇒ "green" A==ON="red" A==OFF AND B==ON ⇒ "blue" A==OFF="white"].

Rationale:

I have a Group with item=. By using the value of the item I want to encode the state of two different items in the group, so that I can conclude that states without having to open the Group by clicking on it.

dilyanpalauzov avatar Aug 09 '22 19:08 dilyanpalauzov