|
1 | 1 | /** |
2 | | - * User Lock Manager v4.0.10 |
| 2 | + * User Lock Manager v4.1.0 |
3 | 3 | * |
4 | 4 | * Copyright 2015 Erik Thayer |
5 | 5 | * |
@@ -149,7 +149,8 @@ def notificationPage() { |
149 | 149 | dynamicPage(name: "notificationPage", title: "Notification Settings") { |
150 | 150 |
|
151 | 151 | section { |
152 | | - input(name: "phone", type: "phone", title: "Text This Number", description: "Phone number", required: false, submitOnChange: true) |
| 152 | + input(name: "phone", type: "text", title: "Text This Number", description: "Phone number", required: false, submitOnChange: true) |
| 153 | + paragraph "For multiple SMS recipients, separate phone numbers with a semicolon(;)" |
153 | 154 | input(name: "notification", type: "bool", title: "Send A Push Notification", description: "Notification", required: false, submitOnChange: true) |
154 | 155 | if (phone != null || notification || sendevent) { |
155 | 156 | input(name: "notifyAccess", title: "on User Entry", type: "bool", required: false) |
@@ -1282,7 +1283,15 @@ private sendMessage(msg) { |
1282 | 1283 | sendNotificationEvent(msg) |
1283 | 1284 | } |
1284 | 1285 | if (phone) { |
1285 | | - sendSms(phone, msg) |
| 1286 | + if ( phone.indexOf(";") > 1){ |
| 1287 | + def phones = phone.split(";") |
| 1288 | + for ( def i = 0; i < phones.size(); i++) { |
| 1289 | + sendSms(phones[i], msg) |
| 1290 | + } |
| 1291 | + } |
| 1292 | + else { |
| 1293 | + sendSms(phone, msg) |
| 1294 | + } |
1286 | 1295 | } |
1287 | 1296 | } |
1288 | 1297 |
|
|
0 commit comments