Skip to content

Commit eb90b37

Browse files
Add driver support for Matter Cameras (#2503)
1 parent 9fd228d commit eb90b37

File tree

14 files changed

+3690
-4
lines changed

14 files changed

+3690
-4
lines changed

drivers/SmartThings/matter-switch/fingerprints.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,6 +3068,11 @@ matterGeneric:
30683068
- id: 0x0101 # Dimmable Light
30693069
- id: 0x0107 # Occupancy Sensor
30703070
deviceProfileName: light-level-motion
3071+
- id: "matter/camera"
3072+
deviceLabel: Matter Camera
3073+
deviceTypes:
3074+
- id: 0x0142 # Camera
3075+
deviceProfileName: camera
30713076

30723077
matterThing:
30733078
- id: SmartThings/MatterThing
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
name: camera
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: webrtc
6+
version: 1
7+
optional: true
8+
- id: videoCapture2
9+
version: 1
10+
optional: true
11+
- id: videoStreamSettings
12+
version: 1
13+
optional: true
14+
- id: imageCapture
15+
version: 1
16+
optional: true
17+
- id: mechanicalPanTiltZoom
18+
version: 1
19+
optional: true
20+
- id: hdr
21+
version: 1
22+
optional: true
23+
- id: nightVision
24+
version: 1
25+
optional: true
26+
- id: imageControl
27+
version: 1
28+
optional: true
29+
- id: audioRecording
30+
version: 1
31+
optional: true
32+
- id: sounds
33+
version: 1
34+
optional: true
35+
- id: cameraPrivacyMode
36+
version: 1
37+
optional: true
38+
- id: zoneManagement
39+
version: 1
40+
optional: true
41+
- id: localMediaStorage
42+
version: 1
43+
optional: true
44+
- id: cameraViewportSettings
45+
version: 1
46+
optional: true
47+
- id: motionSensor
48+
version: 1
49+
optional: true
50+
- id: firmwareUpdate
51+
version: 1
52+
- id: refresh
53+
version: 1
54+
categories:
55+
- name: Camera
56+
- id: statusLed
57+
optional: true
58+
capabilities:
59+
- id: switch
60+
version: 1
61+
optional: true
62+
- id: mode
63+
version: 1
64+
optional: true
65+
- id: speaker
66+
optional: true
67+
capabilities:
68+
- id: audioMute
69+
version: 1
70+
optional: true
71+
- id: audioVolume
72+
version: 1
73+
optional: true
74+
- id: microphone
75+
optional: true
76+
capabilities:
77+
- id: audioMute
78+
version: 1
79+
optional: true
80+
- id: audioVolume
81+
version: 1
82+
optional: true
83+
- id: doorbell
84+
optional: true
85+
capabilities:
86+
- id: button
87+
version: 1
88+
optional: true
89+
deviceConfig:
90+
dashboard:
91+
states:
92+
- component: main
93+
capability: imageCapture
94+
version: 1
95+
values:
96+
- label: "{{___PO_CODE_SAMSUNGELECTRONICS.IM_DEFAULT_IMAGE_CAPTURE}}"
97+
visibleCondition:
98+
component: main
99+
capability: imageCapture
100+
version: 1
101+
value: captureTime.value
102+
valueType: string
103+
operator: CONTAINS
104+
operand: T
105+
isOffline: false
106+
basicPlus:
107+
- displayType: camera
108+
camera:
109+
image:
110+
component: main
111+
capability: imageCapture
112+
version: 1
113+
value: image.value
114+
detailView:
115+
- component: main
116+
capability: webrtc
117+
version: 1
118+
- component: main
119+
capability: mechanicalPanTiltZoom
120+
version: 1
121+
dpInfo:
122+
- os: ios
123+
dpUri: "storyboard://HMVSController/HMVSViewController"
124+
- os: android
125+
dpUri: "plugin://com.samsung.android.plugin.camera"
126+
metadata:
127+
mnmn: SmartThingsEdge
128+
vid: matter-camera

drivers/SmartThings/matter-switch/src/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ local matter_driver_template = {
296296
supported_capabilities = fields.supported_capabilities,
297297
sub_drivers = {
298298
require("sub_drivers.aqara_cube"),
299+
switch_utils.lazy_load_if_possible("sub_drivers.camera"),
299300
require("sub_drivers.eve_energy"),
300301
require("sub_drivers.third_reality_mk1")
301302
}

0 commit comments

Comments
 (0)