Skip to content

Commit

Permalink
Merge pull request #1779 from SmartThingsCommunity/beta
Browse files Browse the repository at this point in the history
Rolling up beta to production deploy
  • Loading branch information
cjswedes authored Nov 25, 2024
2 parents 75c551d + d86129d commit 3b2fae8
Show file tree
Hide file tree
Showing 25 changed files with 996 additions and 105 deletions.
1 change: 1 addition & 0 deletions drivers/SmartThings/matter-appliance/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ local function temperature_setpoint_attr_handler(driver, device, ib, response)
local range = {
minimum = min,
maximum = max,
step = 0.1
}
-- Only emit the capability for RPC version >= 5, since unit conversion for
-- range capabilities is only supported in that case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ local function temperature_setpoint_attr_handler(driver, device, ib, response)
local range = {
minimum = min,
maximum = max,
step = 0.1
}

-- Only emit the capability for RPC version >= 5, since unit conversion for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ local function temperature_setpoint_attr_handler(driver, device, ib, response)
local range = {
minimum = min,
maximum = max,
step = 0.1
}

-- Only emit the capability for RPC version >= 5, since unit conversion for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ local function temperature_setpoint_attr_handler(driver, device, ib, response)
local range = {
minimum = min,
maximum = max,
step = 0.1
}

-- Only emit the capability for RPC version >= 5, since unit conversion for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ local function temperature_setpoint_attr_handler(driver, device, ib, response)
local range = {
minimum = min,
maximum = max,
step = 0.1
}

-- Only emit the capability for RPC version >= 5, since unit conversion for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=33.0,maximum=90.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=33.0,maximum=90.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=30.0,maximum=70.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=30.0,maximum=70.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down Expand Up @@ -604,7 +604,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=27.0,maximum=80.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=27.0,maximum=80.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down Expand Up @@ -660,7 +660,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device_washer:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=15.0,maximum=50.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device_washer:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=15.0,maximum=50.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down Expand Up @@ -716,7 +716,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device_washer:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=13.0,maximum=55.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device_washer:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=13.0,maximum=55.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("tccOne", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=128.0,maximum=200.0}, unit = "C"}, {visibility = {displayed = false}}))
message = mock_device:generate_test_message("tccOne", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=128.0,maximum=200.0, step = 0.1}, unit = "C"}, {visibility = {displayed = false}}))
},
{
channel = "capability",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("refrigerator", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=0.0,maximum=15.0}, unit = "C"}))
message = mock_device:generate_test_message("refrigerator", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=0.0,maximum=15.0, step = 0.1}, unit = "C"}))
},
{
channel = "capability",
Expand Down Expand Up @@ -236,7 +236,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("refrigerator", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-6.0,maximum=20.0}, unit = "C"}))
message = mock_device:generate_test_message("refrigerator", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-6.0,maximum=20.0, step = 0.1}, unit = "C"}))
},
{
channel = "capability",
Expand Down Expand Up @@ -292,7 +292,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("freezer", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-22.0,maximum=-14.0}, unit = "C"}))
message = mock_device:generate_test_message("freezer", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-22.0,maximum=-14.0, step = 0.1}, unit = "C"}))
},
{
channel = "capability",
Expand Down Expand Up @@ -348,7 +348,7 @@ test.register_message_test(
{
channel = "capability",
direction = "send",
message = mock_device:generate_test_message("freezer", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-24.0,maximum=-12.0}, unit = "C"}))
message = mock_device:generate_test_message("freezer", capabilities.temperatureSetpoint.temperatureSetpointRange({value = {minimum=-24.0,maximum=-12.0, step = 0.1}, unit = "C"}))
},
{
channel = "capability",
Expand Down
36 changes: 36 additions & 0 deletions drivers/SmartThings/matter-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ matterManufacturer:
productId: 0x1002
deviceProfileName: switch-binary
#Lifx
- id: "5155/161"
deviceLabel: LIFX Neon Outdoor
vendorId: 0x1423
productId: 0x00A1
deviceProfileName: light-level-colorTemperature-1500k-9000k
- id: "5155/169"
deviceLabel: LIFX Color (A21)
vendorId: 0x1423
Expand Down Expand Up @@ -350,6 +355,26 @@ matterManufacturer:
vendorId: 0x1423
productId: 0x00B0
deviceProfileName: light-level-colorTemperature-1500k-9000k
- id: "5155/201"
deviceLabel: LIFX Ceiling 13x26
vendorId: 0x1423
productId: 0x00C9
deviceProfileName: light-level-colorTemperature-1500k-9000k
- id: "5155/213"
deviceLabel: LIFX Permanent Outdoor
vendorId: 0x1423
productId: 0x00D5
deviceProfileName: light-level-colorTemperature-1500k-9000k
- id: "5155/215"
deviceLabel: LIFX Candle (B10)
vendorId: 0x1423
productId: 0x00D7
deviceProfileName: light-level-colorTemperature-1500k-9000k
- id: "5155/217"
deviceLabel: LIFX Tube
vendorId: 0x1423
productId: 0x00D9
deviceProfileName: light-level-colorTemperature-1500k-9000k
#Nanoleaf
- id: "Nanoleaf NL53"
deviceLabel: Essentials BR30
Expand Down Expand Up @@ -532,6 +557,11 @@ matterManufacturer:
vendorId: 0x147F
productId: 0x0003
deviceProfileName: plug-binary
- id: "5247/4"
deviceLabel: U-tec Smart Matter Switch
vendorId: 0x147F
productId: 0x0004
deviceProfileName: switch-binary
#WiZ
- id: "WiZ A19"
deviceLabel: WiZ A19
Expand Down Expand Up @@ -2502,6 +2532,12 @@ matterGeneric:
deviceTypes:
- id: 0x000F
deviceProfileName: button-battery # err on the side of buttons having batteries, it'll get fixed in the driver
- id: "matter/dimmable/light/button"
deviceLabel: Matter Dimmable Light/Button
deviceTypes:
- id: 0x0101 # Dimmable Light
- id: 0x000F # Generic Switch
deviceProfileName: light-level-button

matterThing:
- id: SmartThings/MatterThing
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: light-level-3-button
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Light
- id: button1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: light-level-4-button
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Light
- id: button1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: light-level-5-button
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Light
- id: button1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button5
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: light-level-6-button
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Light
- id: button1
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button5
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button6
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
Loading

0 comments on commit 3b2fae8

Please sign in to comment.