mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-13 21:03:14 +00:00
Merge pull request #326 from Yaima/master
Implemented toggle() for locks
This commit is contained in:
@@ -246,6 +246,9 @@ def toggle(devices) {
|
||||
else if (devices*.currentValue('lock').contains('locked')) {
|
||||
devices.unlock()
|
||||
}
|
||||
else if (devices*.currentValue('lock').contains('unlocked')) {
|
||||
devices.lock()
|
||||
}
|
||||
else if (devices*.currentValue('alarm').contains('off')) {
|
||||
devices.siren()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user