[velux] tweak read me (#14196)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green
2023-01-10 07:14:54 +00:00
committed by GitHub
parent 0304d74f87
commit 72786df044
7 changed files with 63 additions and 164 deletions

View 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
```