mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-16 21:03:28 +00:00
Compare commits
1 Commits
master
...
MSA-1543-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c71c3c166 |
118
devicetypes/yoyogs7/mobilephone.src/mobilephone.groovy
Normal file
118
devicetypes/yoyogs7/mobilephone.src/mobilephone.groovy
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
/**
|
||||||
|
* MobilePHone
|
||||||
|
*
|
||||||
|
* Copyright 2016 Max Azemard
|
||||||
|
*
|
||||||
|
* 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: "MobilePHone", namespace: "YoyoGS7", author: "Max Azemard") {
|
||||||
|
capability "Speech Recognition"
|
||||||
|
capability "Temperature Measurement"
|
||||||
|
capability "Thermostat Cooling Setpoint"
|
||||||
|
capability "Thermostat Fan Mode"
|
||||||
|
capability "Thermostat Heating Setpoint"
|
||||||
|
capability "Thermostat Mode"
|
||||||
|
capability "Thermostat Operating State"
|
||||||
|
capability "Thermostat Schedule"
|
||||||
|
capability "Thermostat Setpoint"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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 'phraseSpoken' attribute
|
||||||
|
// TODO: handle 'temperature' attribute
|
||||||
|
// TODO: handle 'coolingSetpoint' attribute
|
||||||
|
// TODO: handle 'thermostatFanMode' attribute
|
||||||
|
// TODO: handle 'heatingSetpoint' attribute
|
||||||
|
// TODO: handle 'thermostatMode' attribute
|
||||||
|
// TODO: handle 'thermostatOperatingState' attribute
|
||||||
|
// TODO: handle 'schedule' attribute
|
||||||
|
// TODO: handle 'thermostatSetpoint' attribute
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// handle commands
|
||||||
|
def setCoolingSetpoint() {
|
||||||
|
log.debug "Executing 'setCoolingSetpoint'"
|
||||||
|
// TODO: handle 'setCoolingSetpoint' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def fanOn() {
|
||||||
|
log.debug "Executing 'fanOn'"
|
||||||
|
// TODO: handle 'fanOn' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def fanAuto() {
|
||||||
|
log.debug "Executing 'fanAuto'"
|
||||||
|
// TODO: handle 'fanAuto' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def fanCirculate() {
|
||||||
|
log.debug "Executing 'fanCirculate'"
|
||||||
|
// TODO: handle 'fanCirculate' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setThermostatFanMode() {
|
||||||
|
log.debug "Executing 'setThermostatFanMode'"
|
||||||
|
// TODO: handle 'setThermostatFanMode' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setHeatingSetpoint() {
|
||||||
|
log.debug "Executing 'setHeatingSetpoint'"
|
||||||
|
// TODO: handle 'setHeatingSetpoint' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def off() {
|
||||||
|
log.debug "Executing 'off'"
|
||||||
|
// TODO: handle 'off' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def heat() {
|
||||||
|
log.debug "Executing 'heat'"
|
||||||
|
// TODO: handle 'heat' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def emergencyHeat() {
|
||||||
|
log.debug "Executing 'emergencyHeat'"
|
||||||
|
// TODO: handle 'emergencyHeat' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def cool() {
|
||||||
|
log.debug "Executing 'cool'"
|
||||||
|
// TODO: handle 'cool' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def auto() {
|
||||||
|
log.debug "Executing 'auto'"
|
||||||
|
// TODO: handle 'auto' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setThermostatMode() {
|
||||||
|
log.debug "Executing 'setThermostatMode'"
|
||||||
|
// TODO: handle 'setThermostatMode' command
|
||||||
|
}
|
||||||
|
|
||||||
|
def setSchedule() {
|
||||||
|
log.debug "Executing 'setSchedule'"
|
||||||
|
// TODO: handle 'setSchedule' command
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user