[velux] tweak read me (#14196)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
committed by
GitHub
parent
0304d74f87
commit
72786df044
15
bundles/org.openhab.binding.velux/doc/rules.md
Normal file
15
bundles/org.openhab.binding.velux/doc/rules.md
Normal file
@@ -0,0 +1,15 @@
|
||||
```java
|
||||
// This rule simulates a push button behaviour.
|
||||
rule "PushButton of group gV"
|
||||
when
|
||||
Item gV changed
|
||||
then
|
||||
// waiting a second.
|
||||
Thread::sleep(1000)
|
||||
// Foreach-Switch-is-ON
|
||||
gV.allMembers.filter( s | s.state == ON).forEach[i|
|
||||
// switching OFF
|
||||
i.sendCommand(OFF)
|
||||
]
|
||||
end
|
||||
```
|
||||
Reference in New Issue
Block a user