mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-16 05:10:50 +00:00
Compare commits
1 Commits
master
...
MSA-1961-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f403b10f7a |
77
devicetypes/eddie/sony-blu-ray.src/sony-blu-ray.groovy
Normal file
77
devicetypes/eddie/sony-blu-ray.src/sony-blu-ray.groovy
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
/**
|
||||||
|
* Sony Blu-ray
|
||||||
|
*
|
||||||
|
* Copyright 2017 Eddie winter
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
||||||
|
* in compliance with the License. You may obtain a copy of the License at:
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
|
||||||
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
|
||||||
|
* for the specific language governing permissions and limitations under the License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
metadata {
|
||||||
|
definition (name: "Sony Blu-ray", namespace: "Eddie", author: "Eddie winter") {
|
||||||
|
capability "Acceleration Sensor"
|
||||||
|
capability "Buffered Video Capture"
|
||||||
|
capability "Location Mode"
|
||||||
|
capability "Media Controller"
|
||||||
|
capability "Refresh"
|
||||||
|
capability "Video Stream"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
simulator {
|
||||||
|
// TODO: define status and reply messages here
|
||||||
|
}
|
||||||
|
|
||||||
|
tiles {
|
||||||
|
// TODO: define your main and details tiles here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// parse events into attributes
|
||||||
|
def parse(String description) {
|
||||||
|
log.debug "Parsing '${description}'"
|
||||||
|
// TODO: handle 'acceleration' attribute
|
||||||
|
// TODO: handle 'clip' attribute
|
||||||
|
// TODO: handle 'mode' attribute
|
||||||
|
// TODO: handle 'activities' attribute
|
||||||
|
// TODO: handle 'currentActivity' attribute
|
||||||
|
// TODO: handle 'stream' attribute
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// handle commands
|
||||||
|
def capture() {
|
||||||
|
log.debug "Executing 'capture'"
|
||||||
|
// TODO: handle 'capture' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setMode() {
|
||||||
|
log.debug "Executing 'setMode'"
|
||||||
|
// TODO: handle 'setMode' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def startActivity() {
|
||||||
|
log.debug "Executing 'startActivity'"
|
||||||
|
// TODO: handle 'startActivity' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def refresh() {
|
||||||
|
log.debug "Executing 'refresh'"
|
||||||
|
// TODO: handle 'refresh' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def startStream() {
|
||||||
|
log.debug "Executing 'startStream'"
|
||||||
|
// TODO: handle 'startStream' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def stopStream() {
|
||||||
|
log.debug "Executing 'stopStream'"
|
||||||
|
// TODO: handle 'stopStream' command
|
||||||
|
}
|
||||||
52
smartapps/aenomads63-gmail-com/slingtv.src/slingtv.groovy
Normal file
52
smartapps/aenomads63-gmail-com/slingtv.src/slingtv.groovy
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
/**
|
||||||
|
* slingtv
|
||||||
|
*
|
||||||
|
* Copyright 2017 Eddie winter
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
||||||
|
* in compliance with the License. You may obtain a copy of the License at:
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
|
||||||
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
|
||||||
|
* for the specific language governing permissions and limitations under the License.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
definition(
|
||||||
|
name: "slingtv",
|
||||||
|
namespace: "aenomads63@gmail.com",
|
||||||
|
author: "Eddie winter",
|
||||||
|
description: "Slingtv app ",
|
||||||
|
category: "Convenience",
|
||||||
|
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
|
||||||
|
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
|
||||||
|
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png") {
|
||||||
|
appSetting "play store"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
preferences {
|
||||||
|
section("Title") {
|
||||||
|
// TODO: put inputs here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def installed() {
|
||||||
|
log.debug "Installed with settings: ${settings}"
|
||||||
|
|
||||||
|
initialize()
|
||||||
|
}
|
||||||
|
|
||||||
|
def updated() {
|
||||||
|
log.debug "Updated with settings: ${settings}"
|
||||||
|
|
||||||
|
unsubscribe()
|
||||||
|
initialize()
|
||||||
|
}
|
||||||
|
|
||||||
|
def initialize() {
|
||||||
|
// TODO: subscribe to attributes, devices, locations, etc.
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: implement event handlers
|
||||||
Reference in New Issue
Block a user