Code by Scott שאול בן ישוע
Boot Me Up Scottie.groovy 990 Bytes
Newer Older
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
/*
 *	Boot Me Up Manager (Parent)
 *
 *	Author: Stephan Hackett
 * 
 * 
 * 
 */

definition(
    name: "Boot Me Up Scottie",
    namespace: "stephack",
    singleInstance: true,
    author: "Stephan Hackett",
    description: "Activate WOL Magic Packet - Parent Manager",
    category: "My Apps",
    iconUrl: "",
    iconX2Url: "",
    iconX3Url: "",
)

preferences {
	page(name: "mainPage")
}

def mainPage() {
	return dynamicPage(name: "mainPage", title: "", install: true, uninstall: true) {
        if(!state.BmuInstalled) {
            section("Hit Done to install Boot Me Up Manager App!") {
        	}
        }
        else {
        	section("Create a new Boot Me Up Instance.") {
            	app(name: "childApps", appName: "Boot Me Up Child", namespace: "stephack", title: "New Boot Me Up Instance", multiple: true)
        	}
    	}
    }
}

def installed() {
    state.BmuInstalled = true
	initialize()
}

def updated() {
	unsubscribe()
	initialize()
}

def initialize() {
}