]> git.basschouten.com Git - openhab-addons.git/commitdiff
[homematic] Update README.md (#13101)
authorMeisterPiffer <MeisterPiffer@users.noreply.github.com>
Thu, 21 Jul 2022 13:09:07 +0000 (15:09 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 13:09:07 +0000 (15:09 +0200)
add example for DSL rule with tabbed view

bundles/org.openhab.binding.homematic/README.md

index 26ff2b8f85bf1fd59dcf63b58e2905c3632e4c8b..a3e1dd6718fe99c1d5f07a1323a2dd9b0a7522ca 100644 (file)
@@ -660,11 +660,19 @@ openhab:send Var_1 REFRESH
 
 In scripts:
 
-```javascript
+:::: tabs
+
+::: tab JavaScript
 import org.openhab.core.types.RefreshType
 ...
 Var_1.sendCommand(RefreshType.REFRESH)
-```
+:::
+
+::: tab DSL
+Var_1.sendCommand(REFRESH)
+:::
+
+::::
 
 **Note:** adding new and removing deleted variables from the GATEWAY-EXTRAS thing is currently not supported.
 You have to delete the thing, start a scan and add it again.