Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ metadata {
capability "Sensor"
capability "Switch"
capability "Switch Level"
capability "Presence Sensor"

command "setHeatDuration"
command "heatingDurationDown"
Expand Down Expand Up @@ -255,10 +256,12 @@ def refresh() {

def setInBed() {
sendEvent(name: "contact", value: "closed")
sendEvent(name: "presence", value: "present")
}

def setOutOfBed() {
sendEvent(name: "contact", value: "open")
sendEvent(name: "presence", value: "not present")
state.sleepPeriod = false
state.desiredLevelChange = false
}
Expand Down Expand Up @@ -559,4 +562,4 @@ def getFileBase64(url, preType, fileType) {
}
}

def cssUrl() { return "https://raw.githubusercontent.com/desertblade/ST-HTMLTile-Framework/master/css/smartthings.css" }
def cssUrl() { return "https://raw.githubusercontent.com/desertblade/ST-HTMLTile-Framework/master/css/smartthings.css" }