Skip to content

Commit

Permalink
New volume buttons & tile state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JZ-SmartThings committed May 30, 2017
1 parent 3d109e5 commit 99c3ea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Devices/TVDevice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Link to the project: https://community.smartthings.com/t/50161

The Groovy file is the Device Handler for SmartThings. Read the post above for more info.

</br>v1.0.20170529 - New volume up/down buttons on the main TVDevice. Now all buttons will reset as expected after pressing.
</br>v1.0.20160806 - Security issue with the ESP8266 library, read this post: https://community.smartthings.com/t/esp8266-nodemcu-arduino-based-tv-remote/50161/22
</br>v1.0.20160721 - Updated pics/wiring to use D2
</br>v1.0.20160611 - Initial version
Expand Down
8 changes: 4 additions & 4 deletions Devices/TVDevice/TVDevice.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TVDevice v1.0.20170505
* TVDevice v1.0.20170529
*
* Source code can be found here: https://github.com/JZ-SmartThings/SmartThings/blob/master/Devices/TVDevice/TVDevice.groovy
*
Expand Down Expand Up @@ -69,7 +69,7 @@ metadata {
state "default", label:'OFF' , action: "off", icon: "st.Electronics.electronics18", backgroundColor:"#53a7c0", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.Electronics.electronics18", backgroundColor: "#FFAA33"
}
standardTile("tvinput", "device.switch", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
standardTile("tvinput", "device.tvinput", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
state "default", label: 'TV INPUT', action: "tvinput", icon: "st.Electronics.electronics6", backgroundColor: "#79b821", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.Electronics.electronics6", backgroundColor: "#FFAA33"
}
Expand All @@ -81,7 +81,7 @@ metadata {
state "default", label:'CHAN DOWN' , action: "chandown", icon: "st.custom.buttons.subtract-icon", backgroundColor:"#53a7c0", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.custom.buttons.subtract-icon", backgroundColor: "#FFAA33"
}
standardTile("tvprev", "device.switch", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
standardTile("tvprev", "device.tvprev", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
state "default", label: 'PREVIOUS', action: "tvprev", icon: "st.motion.motion.active", backgroundColor: "#79b821", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.motion.motion.active", backgroundColor: "#FFAA33"
}
Expand All @@ -93,7 +93,7 @@ metadata {
state "default", label:'VOL DOWN' , action: "voldown", icon: "st.custom.buttons.subtract-icon", backgroundColor:"#53a7c0", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.custom.buttons.subtract-icon", backgroundColor: "#FFAA33"
}
standardTile("tvmute", "device.switch", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
standardTile("tvmute", "device.tvmute", width: 2, height: 2, canChangeIcon: true, canChangeBackground: true, decoration: "flat") {
state "default", label: 'MUTE', action: "tvmute", icon: "st.custom.sonos.muted", backgroundColor: "#9966CC", nextState: "trying"
state "trying", label: 'TRYING', action: "ResetTiles", icon: "st.custom.sonos.muted", backgroundColor: "#FFAA33"
}
Expand Down

0 comments on commit 99c3ea0

Please sign in to comment.