Skip to content

Commit

Permalink
Provide example as DSL rule also
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <[email protected]>
  • Loading branch information
jlaur committed Jan 6, 2023
1 parent 2f22bcc commit 078d39f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion bundles/org.openhab.binding.deconz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,30 @@ end

### Thing Actions Example

```js
:::: tabs

::: tab JavaScript

```javascript
deconzActions = actions.get("deconz", "deconz:lightgroup:00212E040ED9:5");
retVal = deconzActions.createScene("TestScene");
deconzActions.storeScene(retVal["newSceneId"]);
```

:::

::: tab DSL

```java
val deconzActions = getActions("deconz", "deconz:lightgroup:00212E040ED9:5");
var retVal = deconzActions.createScene("TestScene");
deconzActions.storeScene(retVal.get("newSceneId"));
```

:::

::::

### Troubleshooting

By default state updates are ignored for 250ms after a command.
Expand Down

0 comments on commit 078d39f

Please sign in to comment.