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
5 changes: 5 additions & 0 deletions drivers/SmartThings/matter-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ matterManufacturer:
vendorId: 0x1209
productId: 0x3016
deviceProfileName: plug-power-energy-powerConsumption
- id: 4617/12307
deviceLabel: "Motion Detector II [+M]"
vendorId: 0x1209
productId: 0x3013
deviceProfileName: light-level-battery-illuminance-motion-temperature
#Chengdu
- id: "5218/8197"
deviceLabel: Magic Cube DS001
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: light-level-battery-illuminance-motion-temperature
components:
- id: main
capabilities:
- id: motionSensor
version: 1
- id: temperatureMeasurement
version: 1
- id: illuminanceMeasurement
version: 1
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: battery
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: MotionSensor
preferences:
- preferenceId: tempOffset
explicit: true
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function DeviceConfiguration.match_profile(driver, device)
elseif generic_profile("light-color-level") and #device:get_endpoints(clusters.FanControl.ID) > 0 then
updated_profile = "light-color-level-fan"
elseif generic_profile("light-level") and #device:get_endpoints(clusters.OccupancySensing.ID) > 0 then
updated_profile = "light-level-motion"
updated_profile = switch_utils.get_product_override_field(device, "target_profile") or "light-level-motion"
elseif generic_profile("light-level-colorTemperature") or generic_profile("light-color-level") then
-- ignore attempts to dynamically profile light-level-colorTemperature and light-color-level devices for now, since
-- these may lose fingerprinted Kelvin ranges when dynamically profiled.
Expand Down
3 changes: 3 additions & 0 deletions drivers/SmartThings/matter-switch/src/switch_utils/fields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ SwitchFields.vendor_overrides = {
[0x1006] = { ignore_combo_switch_button = true, target_profile = "light-level-power-energy-powerConsumption", ep_id = 1 }, -- 3 Buttons(Generic Switch), 1 Channels(Dimmable Light)
[0x100A] = { ignore_combo_switch_button = true, target_profile = "light-level-power-energy-powerConsumption", ep_id = 1 }, -- 1 Buttons(Generic Switch), 1 Channels(Dimmable Light)
[0x2004] = { is_climate_sensor_w100 = true }, -- Climate Sensor W100, requires unique profile
},
[0x1209] = { -- Bosch
[0x3013] = {target_profile = "light-level-battery-illuminance-motion-temperature"}
}
}

Expand Down
Loading