Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9c7d8e5
CWD Smart Dimmer Lamp
Jun 24, 2020
ba202ba
CWD Smart Colour Tuneable Lamp
Jun 24, 2020
bd55b78
CWD Smart RGBW Lamp
Jun 24, 2020
8145472
[ICP-11333] Extended delay time between set and get thermostat modes …
PKacprowiczS Jun 24, 2020
807af7a
[ICP-13020] EZMultipli - fix for timeouts after color change (#34180)
PKacprowiczS Jun 24, 2020
34699b5
Revert "Revert "CHAD-3849 Update SmartWeather Station Tile to support…
dkirker Jun 27, 2020
4f2af7c
Update zigbee-rgbw-bulb.groovy
KKlimczukS Jun 29, 2020
e8d00d4
Update zigbee-dimmer.groovy
KKlimczukS Jun 29, 2020
4c0c064
Update zigbee-dimmer.groovy
KKlimczukS Jun 29, 2020
712c79e
Update zigbee-dimmer.groovy
KKlimczukS Jun 29, 2020
1e6798b
Update zigbee-dimmer.groovy
KKlimczukS Jun 29, 2020
ca88c3a
Update zigbee-white-color-temperature-bulb.groovy
KKlimczukS Jun 29, 2020
5d9e4a2
Update zigbee-white-color-temperature-bulb.groovy
KKlimczukS Jun 29, 2020
cca5036
Update zigbee-white-color-temperature-bulb.groovy
KKlimczukS Jun 29, 2020
89b1512
Merge pull request #35150 from SmartThingsCommunity/user31103695_8
KKlimczukS Jun 29, 2020
972c2e1
Merge pull request #35152 from SmartThingsCommunity/user31103695_10
KKlimczukS Jun 29, 2020
7f51833
Merge pull request #35151 from SmartThingsCommunity/user31103695_9
KKlimczukS Jun 29, 2020
d4ff694
DevWs for CoolKit Technology Co.,Ltd containing containing ZigBee Swi…
SmartThings Jun 29, 2020
0350d2d
Merge pull request #35831 from SmartThingsCommunity/staging
greens Jun 30, 2020
616f27a
Merge pull request #35832 from SmartThingsCommunity/master
greens Jun 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions devicetypes/drzwave/ezmultipli.src/ezmultipli.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def setupHealthCheck() {
def installed() {
sendEvent(name: "motion", value: "inactive", displayed: false)
state.colorReceived = [red: null, green: null, blue: null]
state.setColor = [red: null, green: null, blue: null]
state.colorQueryFailures = 0
setupHealthCheck()
}

Expand Down Expand Up @@ -247,15 +249,30 @@ def zwaveEvent(switchcolorv3.SwitchColorReport cmd) {
result << createEvent(name: "color", value: hexColor)
// Send the color as hue and saturation
def hsv = rgbToHSV(*colors)
result << createEvent(name: "hue", value: hsv.hue)
result << createEvent(name: "saturation", value: hsv.saturation)
// Reset the values
RGB_NAMES.collect { state.colorReceived[it] = null}
if (state.setColor.red == state.colorReceived.red && state.setColor.green == state.colorReceived.green && state.setColor.blue == state.colorReceived.blue) {
unschedule()
result << createEvent(name: "hue", value: hsv.hue)
result << createEvent(name: "saturation", value: hsv.saturation)
state.colorQueryFailures = 0
} else {
if (++state.colorQueryFailures >= 6) {
sendHubCommand(commands([
zwave.switchColorV3.switchColorSet(red: state.setColor.red, green: state.setColor.green, blue: state.setColor.blue),
queryAllColors()
]))
} else {
runIn(2, "sendColorQueryCommands", [overwrite: true])
}
}
}

result
}

private sendColorQueryCommands() {
sendHubCommand(commands(queryAllColors()))
}

def zwaveEvent(physicalgraph.zwave.Command cmd) {
// Handles all Z-Wave commands we aren't interested in
log.debug "Unhandled $cmd"
Expand Down Expand Up @@ -324,6 +341,7 @@ def setColor(value) {
return
}

state.setColor = [red: myred, green: mygreen, blue: myblue]
cmds << zwave.switchColorV3.switchColorSet(red: myred, green: mygreen, blue: myblue)
cmds << zwave.basicV1.basicGet()

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "Apparent Temperature",
"attributes": {
"feelsLike": {
"schema": {
"type": "object",
"properties": {
"value": {
"title": "TemperatureValue",
"type": "number",
"minimum": -460,
"maximum": 10000
},
"unit": {
"type": "string",
"enum": [
"F",
"C"
]
}
},
"additionalProperties": false,
"required": [
"value",
"unit"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"name": "Astronomical Data",
"attributes": {
"localSunrise": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"localSunset": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"sunriseDate": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"sunsetDate": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"city": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"timeZoneOffset": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Precipitation",
"attributes": {
"percentPrecip": {
"schema": {
"type": "object",
"properties": {
"value": {
"title": "IntegerPercent",
"type": "integer",
"minimum": 0,
"maximum": 100
},
"unit": {
"type": "string",
"enum": [
"%"
],
"default": "%"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Smart Weather",
"attributes": {
"lastUpdate": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Ultraviolet Description",
"attributes": {
"uvDescription": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Weather Alert",
"attributes": {
"alert": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"alertKeys": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "Weather Forecast",
"attributes": {
"forecastIcon": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"forecastToday": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"forecastTonight": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"forecastTomorrow": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Weather Summary",
"attributes": {
"weather": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"weatherIcon": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"commands": {
}
}
Loading