-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvanced-motion-parent
51 lines (42 loc) · 1.13 KB
/
advanced-motion-parent
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
definition(
name: "Advanced Motion Lighting",
singleInstance: true,
namespace: "BD",
author: "Bobby Dobrescu",
description: "Create step-down rules to alert family members that lights are about to turn off",
category: "Convenience",
iconUrl: "",
iconX2Url: "",
installOnOpen: true
)
preferences {
page(name: "mainPage")
page(name: "removePage")
}
def mainPage() {
dynamicPage(name: "mainPage", title: " ", install: true, uninstall: false) {
section {
paragraph "<h3>Advanced Motion Lighting<h3>"
app(name: "childButtons", appName: "AML: Advanced Motion Lighting Rule", namespace: "BD", title: "Create a new rule", multiple: true, displayChildApps: false)
paragraph(" ")
href "removePage", title: "Remove Advanced Motion Lighting", description: ""
}
}
}
def removePage() {
dynamicPage(name: "removePage", title: "Remove all Advanced Motion Lighting Rules", install: false, uninstall: true) {
section ("WARNING!\n\nRemoving removes all Advanced Motion Lighting Rules\n") {
}
}
}
def installed() {
initialize()
}
def updated() {
unsubscribe()
initialize()
}
def initialize() {
}
def removeChild(ch) {
}