Implemented toggle() for locks

https://smartthings.atlassian.net/browse/DVCSMP-672
This commit is contained in:
Yaima Valdivia
2015-12-01 10:48:15 -08:00
parent 9d7c66c7af
commit 9059718818

View File

@@ -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()
}