Skip to content

Commit

Permalink
Update sitemaps.md
Browse files Browse the repository at this point in the history
Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9
  • Loading branch information
GumbyMan82 authored Apr 23, 2020
1 parent e9f45f6 commit 0481aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configuration/sitemaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ The Item will be visible if any one of the comparisons is evaluated as `true`, o
**Examples:**

```perl
visibility=[Battery_Level<30]
visibility=[TV_Power==ON]
visibility=[Day_Time=="Morning", Day_Time=="Afternoon", Temperature>19]
Text item=BatteryWarning visibility=[Battery_Level<30]
Switch item=CinemaLight "Cinema light" visibility=[TV_Power==ON]
Switch item=LawnSprinkler visibility=[Day_Time=="Morning", Day_Time=="Afternoon", Temperature>19]
```

In the third example above, a control for a lawn sprinkler will be visible if it is Morning, *OR* if it is Afternoon, *OR* if the temperature is above 19 °C.
Expand Down

0 comments on commit 0481aa1

Please sign in to comment.