Skip to content

Commit 054364c

Browse files
Support additional Camera device types
This adds support for the following device types: * 0x0140 Intercom * 0x0141 Audio Doorbell * 0x0142 Camera * 0x0143 Video Doorbell * 0x0144 Floodlight Camera * 0x0145 Snapshot Camera * 0x0146 Chime * 0x0148 DoorBell
1 parent 42a6a23 commit 054364c

11 files changed

Lines changed: 958 additions & 187 deletions

File tree

drivers/SmartThings/matter-switch/fingerprints.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4279,11 +4279,6 @@ matterGeneric:
42794279
- id: 0x0101 # Dimmable Light
42804280
- id: 0x0107 # Occupancy Sensor
42814281
deviceProfileName: light-level-motion
4282-
- id: "matter/camera"
4283-
deviceLabel: Matter Camera
4284-
deviceTypes:
4285-
- id: 0x0142 # Camera
4286-
deviceProfileName: camera
42874282
- id: "matter/on-off/fan/light"
42884283
deviceLabel: Matter OnOff Fan Light
42894284
deviceTypes:
@@ -4332,6 +4327,50 @@ matterGeneric:
43324327
- id: 0x002B # Fan
43334328
- id: 0x0110 # Mounted Dimmable Load Control
43344329
deviceProfileName: fan-modular
4330+
- id: "matter/camera"
4331+
deviceLabel: Matter Camera
4332+
deviceTypes:
4333+
- id: 0x0142 # Camera
4334+
deviceProfileName: camera
4335+
- id: "matter/intercom"
4336+
deviceLabel: Matter Intercom
4337+
deviceTypes:
4338+
- id: 0x0140 # Intercom
4339+
deviceProfileName: camera
4340+
- id: "matter/audio/doorbell"
4341+
deviceLabel: Matter Audio DoorBell
4342+
deviceTypes:
4343+
- id: 0x0141 # Audio DoorBell
4344+
- id: 0x0142 # Camera
4345+
- id: 0x0148 # DoorBell
4346+
deviceProfileName: av-doorbell
4347+
- id: "matter/video/doorbell"
4348+
deviceLabel: Matter Video DoorBell
4349+
deviceTypes:
4350+
- id: 0x0143 # Video DoorBell
4351+
- id: 0x0142 # Camera
4352+
- id: 0x0148 # DoorBell
4353+
deviceProfileName: av-doorbell
4354+
- id: "matter/floodlight/camera"
4355+
deviceLabel: Matter Floodlight Camera
4356+
deviceTypes:
4357+
- id: 0x0144 # Floodlight Camera
4358+
deviceProfileName: camera
4359+
- id: "matter/snapshot/camera"
4360+
deviceLabel: Matter Snapshot Camera
4361+
deviceTypes:
4362+
- id: 0x0145 # Snapshot Camera
4363+
deviceProfileName: camera
4364+
- id: "matter/chime"
4365+
deviceLabel: Matter Chime
4366+
deviceTypes:
4367+
- id: 0x0146 # Chime
4368+
deviceProfileName: chime
4369+
- id: "matter/doorbell"
4370+
deviceLabel: Matter DoorBell
4371+
deviceTypes:
4372+
- id: 0x0148 # DoorBell
4373+
deviceProfileName: doorbell
43354374

43364375
matterThing:
43374376
- id: SmartThings/MatterThing
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
name: av-doorbell
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: vision.clipAnalysis
51+
version: 1
52+
optional: true
53+
- id: firmwareUpdate
54+
version: 1
55+
- id: refresh
56+
version: 1
57+
categories:
58+
- name: DoorBell
59+
- id: statusLed
60+
optional: true
61+
capabilities:
62+
- id: switch
63+
version: 1
64+
optional: true
65+
- id: mode
66+
version: 1
67+
optional: true
68+
- id: speaker
69+
optional: true
70+
capabilities:
71+
- id: audioMute
72+
version: 1
73+
optional: true
74+
- id: audioVolume
75+
version: 1
76+
optional: true
77+
- id: microphone
78+
optional: true
79+
capabilities:
80+
- id: audioMute
81+
version: 1
82+
optional: true
83+
- id: audioVolume
84+
version: 1
85+
optional: true
86+
- id: doorbell
87+
optional: true
88+
capabilities:
89+
- id: button
90+
version: 1
91+
optional: true
92+
deviceConfig:
93+
dashboard:
94+
states:
95+
- component: main
96+
capability: imageCapture
97+
version: 1
98+
values:
99+
- label: "{{___PO_CODE_SAMSUNGELECTRONICS.IM_DEFAULT_IMAGE_CAPTURE}}"
100+
visibleCondition:
101+
component: main
102+
capability: imageCapture
103+
version: 1
104+
value: captureTime.value
105+
valueType: string
106+
operator: CONTAINS
107+
operand: T
108+
isOffline: false
109+
basicPlus:
110+
- displayType: camera
111+
camera:
112+
image:
113+
component: main
114+
capability: imageCapture
115+
version: 1
116+
value: image.value
117+
overlayIcons:
118+
- iconUrl: "res://ic_camera_motion_detected"
119+
visibleCondition:
120+
component: main
121+
capability: motionSensor
122+
version: 1
123+
value: motion.value
124+
valueType: string
125+
operator: EQUALS
126+
operand: "active"
127+
detailView:
128+
- component: main
129+
capability: webrtc
130+
version: 1
131+
- component: main
132+
capability: mechanicalPanTiltZoom
133+
version: 1
134+
- component: main
135+
capability: motionSensor
136+
version: 1
137+
automation:
138+
conditions:
139+
- component: main
140+
capability: motionSensor
141+
version: 1
142+
- component: doorbell
143+
capability: button
144+
version: 1
145+
actions:
146+
- component: main
147+
capability: videoCapture2
148+
version: 1
149+
- component: main
150+
capability: imageCapture
151+
version: 1
152+
dpInfo:
153+
- os: ios
154+
dpUri: "storyboard://HMVSController/HMVSViewController"
155+
- os: android
156+
dpUri: "plugin://com.samsung.android.plugin.camera"
157+
metadata:
158+
mnmn: SmartThingsEdge
159+
vid: matter-av-doorbell
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: chime
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: sounds
6+
version: 1
7+
- id: audioMute
8+
version: 1
9+
- id: firmwareUpdate
10+
version: 1
11+
- id: refresh
12+
version: 1
13+
categories:
14+
- name: DoorBell
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: doorbell
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: button
6+
version: 1
7+
- id: firmwareUpdate
8+
version: 1
9+
- id: refresh
10+
version: 1
11+
categories:
12+
- name: DoorBell

0 commit comments

Comments
 (0)