Skip to content

Commit

Permalink
Merge pull request SmartThingsCommunity#1674 from SmartThingsCommunit…
Browse files Browse the repository at this point in the history
…y/staging

Rolling up staging to production
  • Loading branch information
workingmonk committed Feb 14, 2017
2 parents fc31228 + 1611fd0 commit bfd2b6c
Show file tree
Hide file tree
Showing 18 changed files with 115 additions and 36 deletions.
1 change: 1 addition & 0 deletions devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ metadata {
capability "Switch"
capability "Switch Level"
capability "Health Check"
capability "Light"

fingerprint profileId: "C05E", inClusters: "0000,0003,0004,0005,0006,0008,1000", outClusters: "0000,0019"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ metadata {
capability "Refresh"
capability "Sensor"
capability "Health Check"
capability "Light"

fingerprint mfr:"0063", prod:"4457", deviceJoinName: "GE In-Wall Smart Dimmer "
fingerprint mfr:"0063", prod:"4944", deviceJoinName: "GE In-Wall Smart Dimmer "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ metadata {

// Parse incoming device messages to generate events
def parse(String description) {
def name = null
def value = description
if (zigbee.isZoneType19(description)) {
name = "contact"
value = zigbee.translateStatusZoneType19(description) ? "open" : "closed"
def resMap
if (description.startsWith("zone")) {
resMap = createEvent(name: "contact", value: zigbee.parseZoneStatus(description).isAlarm1Set() ? "open" : "closed")
}

def result = createEvent(name: name, value: value)
log.debug "Parse returned ${result?.descriptionText}"
return result
log.debug "Parse returned $resMap"
return resMap
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ metadata {
capability "Refresh"
capability "Sensor"
capability "Health Check"
capability "Light"
capability "Outlet"

fingerprint profileId: "0104", inClusters: "0000,0003,0004,0005,0006,0B04,0B05", outClusters: "0019", manufacturer: "CentraLite", model: "3200", deviceJoinName: "Outlet"
fingerprint profileId: "0104", inClusters: "0000,0003,0004,0005,0006,0B04,0B05", outClusters: "0019", manufacturer: "CentraLite", model: "3200-Sgb", deviceJoinName: "Outlet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def parse(String description) {
log.debug "parse($description)"
def results = [:]

if (!isSupportedDescription(description) || zigbee.isZoneType19(description)) {
if (!isSupportedDescription(description) || description.startsWith("zone")) {
// Ignore this in favor of orientation-based state
// results = parseSingleMessage(description)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def parse(String description) {
log.debug "parse($description)"
def results = null

if (!isSupportedDescription(description) || zigbee.isZoneType19(description)) {
if (!isSupportedDescription(description) || description.startsWith("zone")) {
// Ignore this in favor of orientation-based state
// results = parseSingleMessage(description)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ metadata {

def parse(String description) {
def results = [:]
if (isZoneType19(description) || !isSupportedDescription(description)) {
if (description.startsWith("zone") || !isSupportedDescription(description)) {
results = parseBasicMessage(description)
}
else if (isMotionStatusMessage(description)){
Expand Down Expand Up @@ -87,16 +87,12 @@ private String parseName(String description) {
}

private String parseValue(String description) {
if (isZoneType19(description)) {
if (translateStatusZoneType19(description)) {
return "active"
}
else {
return "inactive"
}
def zs = zigbee.parseZoneStatus(description)
if (zs) {
zs.isAlarm1Set() ? "active" : "inactive"
} else {
description
}

description
}

private parseDescriptionText(String linkText, String value, String description) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ metadata {
def parse(String description) {
def results

if (!isSupportedDescription(description) || zigbee.isZoneType19(description)) {
if (!isSupportedDescription(description) || description.startsWith("zone")) {
results = parseSingleMessage(description)
}
else if (description == 'updated') {
Expand Down Expand Up @@ -488,12 +488,7 @@ private String parseValue(String description) {
if (!isSupportedDescription(description)) {
return description
}
else if (zigbee.translateStatusZoneType19(description)) {
return "open"
}
else {
return "closed"
}
return zigbee.parseZoneStatus(description)?.isAlarm1Set() ? "open" : "closed"
}

private parseDescriptionText(String linkText, String value, String description) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ metadata {
def parse(String description) {
def results

if (!isSupportedDescription(description) || zigbee.isZoneType19(description)) {
if (!isSupportedDescription(description) || description.startsWith("zone")) {
// Ignore this in favor of orientation-based state
// results = parseSingleMessage(description)
}
Expand Down
31 changes: 27 additions & 4 deletions devicetypes/smartthings/zigbee-button.src/zigbee-button.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,38 @@ private Map getBatteryResult(rawValue) {
private Map parseNonIasButtonMessage(Map descMap){
def buttonState = ""
def buttonNumber = 0
if (((device.getDataValue("model") == "3460-L") || (device.getDataValue("model") == "3450-L"))
&&(descMap.clusterInt == 0x0006)) {
if (descMap.command == "01") {
if ((device.getDataValue("model") == "3460-L") &&(descMap.clusterInt == 0x0006)) {
if (descMap.commandInt == 1) {
getButtonResult("press")
}
else if (descMap.command == "00") {
else if (descMap.commandInt == 0) {
getButtonResult("release")
}
}
else if ((device.getDataValue("model") == "3450-L") && (descMap.clusterInt == 0x0006)) {
if (descMap.commandInt == 1) {
getButtonResult("press")
}
else if (descMap.commandInt == 0) {
def button = 1
switch(descMap.sourceEndpoint) {
case "01":
button = 4
break
case "02":
button = 3
break
case "03":
button = 1
break
case "04":
button = 2
break
}

getButtonResult("release", button)
}
}
else if (descMap.clusterInt == 0x0006) {
buttonState = "pushed"
if (descMap.command == "01") {
Expand Down
13 changes: 10 additions & 3 deletions devicetypes/smartthings/zigbee-dimmer.src/zigbee-dimmer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ metadata {
capability "Switch"
capability "Switch Level"
capability "Health Check"
capability "Light"


fingerprint profileId: "0104", inClusters: "0000, 0003, 0004, 0005, 0006, 0008"
Expand Down Expand Up @@ -93,7 +94,13 @@ def on() {
}

def setLevel(value) {
zigbee.setLevel(value)
def additionalCmds = []
if (device.getDataValue("model") == "iQBR30" && value.toInteger() > 0) { // Handle iQ bulb not following spec
additionalCmds = zigbee.on()
} else if (device.getDataValue("manufacturer") == "MRVL") { // Handle marvel stack not reporting
additionalCmds = refresh()
}
zigbee.setLevel(value) + additionalCmds
}
/**
* PING is used by Device-Watch in attempt to reach the Device
Expand All @@ -103,7 +110,7 @@ def ping() {
}

def refresh() {
zigbee.onOffRefresh() + zigbee.levelRefresh() + zigbee.onOffConfig(0, 300) + zigbee.levelConfig()
zigbee.onOffRefresh() + zigbee.levelRefresh()
}

def configure() {
Expand All @@ -113,5 +120,5 @@ def configure() {
sendEvent(name: "checkInterval", value: 2 * 10 * 60 + 1 * 60, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID])

// OnOff minReportTime 0 seconds, maxReportTime 5 min. Reporting interval if no activity
zigbee.onOffRefresh() + zigbee.levelRefresh() + zigbee.onOffConfig(0, 300) + zigbee.levelConfig()
refresh() + zigbee.onOffConfig(0, 300) + zigbee.levelConfig()
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ metadata {
capability "Switch"
capability "Switch Level"
capability "Health Check"
capability "Light"

fingerprint profileId: "0104", inClusters: "0000,0003,0004,0005,0006,0008,0300,0B04,FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "Gardenspot RGB", deviceJoinName: "SYLVANIA Smart Gardenspot mini RGB"
fingerprint profileId: "0104", inClusters: "0000,0003,0004,0005,0006,0008,0300,0B04,FC0F", outClusters: "0019", manufacturer: "OSRAM", model: "LIGHTIFY Gardenspot RGB", deviceJoinName: "SYLVANIA Smart Gardenspot mini RGB"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ metadata {
capability "Switch"
capability "Switch Level"
capability "Health Check"
capability "Light"

attribute "colorName", "string"
command "setGenericName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ metadata {
capability "Refresh"
capability "Switch"
capability "Switch Level"
capability "Light"

attribute "colorName", "string"
command "setGenericName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
* JLH - 02-15-2014 - Fuller use of ecobee API
* 10-28-2015 DVCSMP-604 - accessory sensor, DVCSMP-1174, DVCSMP-1111 - not respond to routines
*/

include 'localization'

definition(
name: "Ecobee (Connect)",
namespace: "smartthings",
Expand Down Expand Up @@ -86,7 +89,7 @@ def authPage() {
if (numFound > 0) {
section("") {
paragraph "Tap below to see the list of ecobee sensors available in your ecobee account and select the ones you want to connect to SmartThings."
input(name: "ecobeesensors", title:"Select Ecobee Sensors (${numFound} found)", type: "enum", required:false, description: "Tap to choose", multiple:true, options:options)
input(name: "ecobeesensors", title: "Select Ecobee Sensors ({{numFound}} found)", messageArgs: [numFound: numFound], type: "enum", required:false, description: "Tap to choose", multiple:true, options:options)
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions smartapps/smartthings/ecobee-connect.src/i18n/ar.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'''Connect your Ecobee thermostat to SmartThings.'''.ar=قم بتوصيل ثرموستات Ecobee بـ SmartThings.
'''You are connected.'''.ar=أنت متصل.
'''Click to enter Ecobee Credentials'''.ar=النقر لإدخال بيانات اعتماد Ecobee
'''Login'''.ar=تسجيل الدخول
'''Tap below to log in to the ecobee service and authorize SmartThings access. Be sure to scroll down on page 2 and press the 'Allow' button.'''.ar=انقر أدناه لتسجيل الدخول إلى خدمة ecobee والمصادقة على الوصول إلى SmartThings. تأكد من التمرير للأسفل على الصفحة ٢ والضغط على زر ”السماح“.
'''Select Your Thermostats'''.ar=تحديد الثرموستات
'''Tap below to see the list of ecobee thermostats available in your ecobee account and select the ones you want to connect to SmartThings.'''.ar=انقر أدناه لرؤية قائمة أجهزة ثرموستات ecobee المتوفرة في حساب ecobee، وحدد الأجهزة التي ترغب في توصيلها بـ SmartThings.
'''Tap to choose'''.ar=النقر لاختيار
'''Tap below to see the list of ecobee sensors available in your ecobee account and select the ones you want to connect to SmartThings.'''.ar=انقر أدناه لرؤية قائمة مستشعرات ecobee المتوفرة في حساب ecobee، وحدد الأجهزة التي ترغب في توصيلها بـ SmartThings.
'''Select Ecobee Sensors ({{numFound}} found)'''.ar=تحديد مستشعرات Ecobee‏ ‎({{numFound}} found)‎
'''Your ecobee Account is now connected to SmartThings!'''.ar=حساب ecobee متصل الآن بـ SmartThings!
'''Click 'Done' to finish setup.'''.ar=انقر فوق ”تم“ لإنهاء الإعداد.
'''The connection could not be established!'''.ar=يتعذر إنشاء الاتصال!
'''Click 'Done' to return to the menu.'''.ar=انقر فوق ”تم“ للعودة إلى القائمة.
'''{{deviceName}} is connected to SmartThings'''.ar={{deviceName}} متصل بـ SmartThings
'''{{deviceName}} is disconnected from SmartThings, because the access credential changed or was lost. Please go to the Ecobee (Connect) SmartApp and re-enter your account login credentials.'''.ar=تم قطع اتصال {{deviceName}} بـ SmartThings، لأن بيانات اعتماد الوصول قد تغيرت أو فُقدت. يُرجى الانتقال إلى التطبيق الذكي Ecobee (Connect)‎ وإعادة إدخال بيانات اعتماد تسجيل الدخول إلى حسابك.
'''Your Ecobee thermostat'''.ar=ثرموستات Ecobee
17 changes: 17 additions & 0 deletions smartapps/smartthings/ecobee-connect.src/i18n/th.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'''Connect your Ecobee thermostat to SmartThings.'''.th=เชื่อมต่อตัวควบคุมอุณหภูมิ Ecobee ของคุณเข้ากับ SmartThings
'''You are connected.'''.th=คุณได้เชื่อมต่อแล้ว
'''Click to enter Ecobee Credentials'''.th=คลิกเพื่อใส่ ข้อมูลยืนยันตัวตน Ecobee
'''Login'''.th=เข้าสู่ระบบ
'''Tap below to log in to the ecobee service and authorize SmartThings access. Be sure to scroll down on page 2 and press the 'Allow' button.'''.th=แตะด้านล่างเพื่อเข้าสู่บริการ Ecobee และอนุญาตการเข้าถึงของ SmartThings ดูให้แน่ใจว่าได้เลื่อนลงมาที่หน้า 2 แล้วกดปุ่ม 'อนุญาต'
'''Select Your Thermostats'''.th=เลือกตัวควบคุมอุณหภูมิของคุณ
'''Tap below to see the list of ecobee thermostats available in your ecobee account and select the ones you want to connect to SmartThings.'''.th=แตะที่ด้านล่างเพื่อดูรายการตัวควบคุมอุณหภูมิ Ecobee ที่มีอยู่ในบัญชีผู้ใช้ Ecobee ของคุณ และเลือกตัวควบคุมอุณหภูมิที่คุณต้องการจะเชื่อมต่อกับ SmartThings
'''Tap to choose'''.th=แตะเพื่อเลือก
'''Tap below to see the list of ecobee sensors available in your ecobee account and select the ones you want to connect to SmartThings.'''.th=แตะที่ด้านล่างเพื่อดูรายการเซ็นเซอร์ Ecobee ที่มีอยู่ในบัญชีผู้ใช้ Ecobee ของคุณ และเลือกเซ็นเซอร์ที่คุณต้องการจะเชื่อมต่อกับ SmartThings
'''Select Ecobee Sensors ({{numFound} found)'''.th=เลือกเซ็นเซอร์ Ecobee ({{numFound}} found)
'''Your ecobee Account is now connected to SmartThings!'''.th=ตอนนี้บัญชีผู้ใช้ Ecobee ของคุณเชื่อมต่อกับ SmartThings แล้ว
'''Click 'Done' to finish setup.'''.th=คลิก 'เสร็จสิ้น' เพื่อทำการตั้งค่าให้เสร็จสิ้น
'''The connection could not be established!'''.th=ไม่สามารถสร้างการเชื่อมต่อได้!
'''Click 'Done' to return to the menu.'''.th=คลิก 'เสร็จสิ้น' เพื่อกลับไปยังเมนู
'''{{deviceName}} is connected to SmartThings'''.th={{deviceName}} เชื่อมต่อกับ SmartThings แล้ว
'''{{deviceName}} is disconnected from SmartThings, because the access credential changed or was lost. Please go to the Ecobee (Connect) SmartApp and re-enter your account login credentials.'''.th={{deviceName}} ถูกตัดการเชื่อมต่อจาก SmartThings เนื่องจากข้อมูลการเข้าถึงถูกเปลี่ยนแปลงหรือหายไป กรุณาไปที่ Ecobee (การเชื่อมต่อ) SmartApp และใส่ข้อมูลยืนยันตัวตนการเข้าสู่บัญชีผู้ใช้ของคุณอีกครั้ง
'''Your Ecobee thermostat'''.th=ตัวควบคุมอุณหภูมิ Ecobee ของคุณ
17 changes: 17 additions & 0 deletions smartapps/smartthings/ecobee-connect.src/i18n/tr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'''Connect your Ecobee thermostat to SmartThings.'''.tr=Ecobee termostatınızı SmartThings'e bağlayın.
'''You are connected.'''.tr=Bağlantı kurdunuz.
'''Click to enter Ecobee Credentials'''.tr=Ecobee Kimlik Bilgilerinizi girmek için tıklayın
'''Login'''.tr=Oturum aç
'''Tap below to log in to the ecobee service and authorize SmartThings access. Be sure to scroll down on page 2 and press the 'Allow' button.'''.tr=Ecobee servisinde oturum açmak ve SmartThings erişimine izin vermek için aşağıya dokunun. Ekranı 2. sayfaya kaydırdığınızdan emin olun ve 'İzin Ver' tuşuna basın.
'''Select Your Thermostats'''.tr=Termostatlarınızı Seçin
'''Tap below to see the list of ecobee thermostats available in your ecobee account and select the ones you want to connect to SmartThings.'''.tr=Ecobee hesabınızda mevcut olan ecobee termostatlarının listesini görüntülemek için aşağıya dokunun ve SmartThings'e bağlamak istediklerinizi seçin.
'''Tap to choose'''.tr=Seçmek için dokunun
'''Tap below to see the list of ecobee sensors available in your ecobee account and select the ones you want to connect to SmartThings.'''.tr=Ecobee hesabınızda mevcut olan ecobee sensörlerinin listesini görüntülemek için aşağıya dokunun ve SmartThings'e bağlamak istediklerinizi seçin.
'''Select Ecobee Sensors ({{numFound}} found)'''.tr=Ecobee Sensörlerini seçin ({{numFound}} bulundu)
'''Your ecobee Account is now connected to SmartThings!'''.tr=Ecobee Hesabınız artık SmartThings'e bağlandı!
'''Click 'Done' to finish setup.'''.tr=Kurulumu bitirmek için 'Bitti' öğesine tıklayın.
'''The connection could not be established!'''.tr=Bağlantı kurulamadı!
'''Click 'Done' to return to the menu.'''.tr=Menüye dönmek için 'Bitti' öğesine tıklayın.
'''{{deviceName}} is connected to SmartThings'''.tr={{cihazİsmi}} SmartThings'e bağlandı
'''{{deviceName}} is disconnected from SmartThings, because the access credential changed or was lost. Please go to the Ecobee (Connect) SmartApp and re-enter your account login credentials.'''.tr=Ecobee termostatınız
'''Your Ecobee thermostat'''.tr=Ecobee termostatınız

0 comments on commit bfd2b6c

Please sign in to comment.