Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions drivers/SmartThings/zigbee-window-treatment/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ zigbeeManufacturer:
model: SOMBRA/Z-M
deviceProfileName: window-treatment-powerSource

- id: "_TZE200_cirjrpxe/TS0301"
deviceLabel: Zemismart ZM25Z Roller Shade Motor
manufacturer: _TZE200_cirjrpxe
model: TS0301
deviceProfileName: window-treatment-profile

zigbeeGeneric:
- id: "genericShade"
deviceLabel: Zigbee Window Treatment
Expand Down
1 change: 1 addition & 0 deletions drivers/SmartThings/zigbee-window-treatment/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ local zigbee_window_treatment_driver_template = {
capabilities.windowShadePreset,
capabilities.windowShadeLevel,
capabilities.statelessWindowShadeLevelStep,
capabilities.refresh,
capabilities.powerSource,
capabilities.battery
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

local lazy_load_if_possible = require "lazy_load_subdriver"
local sub_drivers = {
lazy_load_if_possible("zemismart"),
lazy_load_if_possible("vimar"),
lazy_load_if_possible("aqara"),
lazy_load_if_possible("feibit"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ end

test.set_test_init_function(test_init)

test.register_coroutine_test(
"Driver switched accepts the window treatment profile with refresh",
function()
test.socket.device_lifecycle:__queue_receive({ mock_device.id, "driverSwitched" })
mock_device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
end,
{
min_api_version = 14
}
)

test.register_coroutine_test(
"State transnsition from opening to partially open",
function()
Expand Down
Loading
Loading