mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-05 20:04:23 +01:00
367 B
367 B
// 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