Skip to content

Commit

Permalink
Merge branch 'main' into actions_colorutil
Browse files Browse the repository at this point in the history
  • Loading branch information
lolodomo committed Nov 19, 2023
2 parents f7ca88c + 1903f69 commit 5a1a594
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Binary file modified configuration/images/blockly/blockly-quantity-comparison-if.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified configuration/images/blockly/blockly-quantity-comparison.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion installation/synology.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ You can increase this in the future if you like.
:::tip DSM 7.2 Access Zwave USB Stick

- Set `/dev/ttyACM0` permissions inside the openhab container - [OH Docs](docker.html#usb-sticks)

```bash
root@openhab:/openhab# chown openhab:openhab /dev/ttyACM0
root@openhab:/openhab# chmod o+rw /dev/ttyACM0
```

To preserve the changes on container reboot see [Executing shell scripts before openHAB is started](https://github.com/openhab/openhab-docker#executing-shell-scripts-before-openhab-is-started) article.
:::

Expand Down Expand Up @@ -148,7 +150,6 @@ Several issues are already raised for this at Synology.
:warning: This will result in Synology notification, like "Security risks detected on NAS02. Please go to Security Advisor for more information. Details."
:::


### Network

- Select 'host' if you are planning to use the IP stack in bindings or if you are not sure what this does.
Expand Down
9 changes: 7 additions & 2 deletions ui/sitemaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ A Switch will present a discrete state Item and allow changing of its value.
Note that Switch elements can be rendered differently on the user interface, based on the Item type and the `mappings` parameter.

- `mappings` comes as an array of value-to-string translations, [documented further down](#mappings).
Without the mappings parameter, user interfaces will present an On/Off Switch, if mappings are given, several labeled buttons will be rendered.
Without the mappings parameter, user interfaces will present an On/Off Switch, if mappings are given, several buttons with label or icon will be rendered.

**Examples:**

Expand Down Expand Up @@ -540,7 +540,7 @@ Mappings is an optional parameter for the [Switch](#element-type-switch) and [Se
Mapping syntax:

```java
mappings=[value_1="description_1", value_2="description_2", ...]
mappings=[value_1="description_1", value_2="description_2"=<iconname>, ...]
```

Examples:
Expand All @@ -551,6 +551,8 @@ mappings=[1="DasErste", 2="BBC One", 3="Cartoon Network"]

mappings=[OFF="All heaters off"]
mappings=[15="Gone", 19="Chilly", 21="Cozy"]

mappings=[ON="Mic On"=material:mic, OFF="Mic Off"=material:mic_off]
```

As you can see, different Item data types are accepted as mappings values.
Expand All @@ -566,6 +568,9 @@ Similarly, mapping above changes the numbers "1", "2", and "3" to "DasErste", "B
In the third and fourth examples above, only a subset of the possible values of items belonging to a heating system are presented to the user.
This limits the possible input values, which is yet another often occurring use case for mappings.

In the fifth example above, user interfaces will display buttons using the provided icon rather than the provided description.
Icons are usable in Switch element but ignored in Selection element.

## Dynamic Sitemaps

All Sitemap elements can be configured to be hidden, color highlighted or to have a [dynamic icon]({{base}}/configuration/items.html#dynamic-icons), depending on certain Item states.
Expand Down

0 comments on commit 5a1a594

Please sign in to comment.