Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Better compatibility with Lights and Switches dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
adamheinmiller committed Jun 8, 2014
1 parent ceec123 commit 18cee84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ST_MyQ_Device_Type.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,12 @@ def setContactSensorState(status, isStateChange)
if (status == "open" || status == "opening" || status == "stopped") {

sendEvent(name: "contact", value: "open", display: true)
sendEvent(name: "switch", value: "on", display: true)
}
else if (status == "closed" || status == "closing") {

sendEvent(name: "contact", value: "closed", display: true)
sendEvent(name: "switch", value: "off", display: true)
}
}

Expand Down

0 comments on commit 18cee84

Please sign in to comment.