-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathNotifyWithColor.groovy
34 lines (30 loc) · 969 Bytes
/
NotifyWithColor.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
definition(
name: "Notify with Blinking Hue!",
singleInstance: true,
namespace: "sbdobrescu",
author: "Bobby Dobrescu",
description: "Parent app for Notify with Hue Settings",
category: "My Apps",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Partner/hue.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Partner/[email protected]",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Partner/[email protected]"
)
preferences {
page(name: "mainPage", title: "Notification Settings", install: true, uninstall: true,submitOnChange: true) {
section {
app(name: "childRules", appName: "Notify with Hue Settings", namespace: "sbdobrescu", title: "Settings...", multiple: true)
}
}
}
def installed() {
initialize()
}
def updated() {
unsubscribe()
initialize()
}
def initialize() {
childApps.each {child ->
log.info "Installed Rules: ${child.label}"
}
}