Skip to content
Merged
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 @@ -3068,6 +3068,11 @@ matterGeneric:
- id: 0x0101 # Dimmable Light
- id: 0x0107 # Occupancy Sensor
deviceProfileName: light-level-motion
- id: "matter/camera"
deviceLabel: Matter Camera
deviceTypes:
- id: 0x0142 # Camera
deviceProfileName: camera

matterThing:
- id: SmartThings/MatterThing
Expand Down
128 changes: 128 additions & 0 deletions drivers/SmartThings/matter-switch/profiles/camera.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: camera
components:
- id: main
capabilities:
- id: webrtc
version: 1
optional: true
- id: videoCapture2
version: 1
optional: true
- id: videoStreamSettings
version: 1
optional: true
- id: imageCapture
version: 1
optional: true
- id: mechanicalPanTiltZoom
version: 1
optional: true
- id: hdr
version: 1
optional: true
- id: nightVision
version: 1
optional: true
- id: imageControl
version: 1
optional: true
- id: audioRecording
version: 1
optional: true
- id: sounds
version: 1
optional: true
- id: cameraPrivacyMode
version: 1
optional: true
- id: zoneManagement
version: 1
optional: true
- id: localMediaStorage
version: 1
optional: true
- id: cameraViewportSettings
version: 1
optional: true
- id: motionSensor
version: 1
optional: true
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Camera
- id: statusLed
optional: true
capabilities:
- id: switch
version: 1
optional: true
- id: mode
version: 1
optional: true
- id: speaker
optional: true
capabilities:
- id: audioMute
version: 1
optional: true
- id: audioVolume
version: 1
optional: true
- id: microphone
optional: true
capabilities:
- id: audioMute
version: 1
optional: true
- id: audioVolume
version: 1
optional: true
- id: doorbell
optional: true
capabilities:
- id: button
version: 1
optional: true
deviceConfig:
dashboard:
states:
- component: main
capability: imageCapture
version: 1
values:
- label: "{{___PO_CODE_SAMSUNGELECTRONICS.IM_DEFAULT_IMAGE_CAPTURE}}"
visibleCondition:
component: main
capability: imageCapture
version: 1
value: captureTime.value
valueType: string
operator: CONTAINS
operand: T
isOffline: false
basicPlus:
- displayType: camera
camera:
image:
component: main
capability: imageCapture
version: 1
value: image.value
detailView:
- component: main
capability: webrtc
version: 1
- component: main
capability: mechanicalPanTiltZoom
version: 1
dpInfo:
- os: ios
dpUri: "storyboard://HMVSController/HMVSViewController"
- os: android
dpUri: "plugin://com.samsung.android.plugin.camera"
metadata:
mnmn: SmartThingsEdge
vid: matter-camera
1 change: 1 addition & 0 deletions drivers/SmartThings/matter-switch/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ local matter_driver_template = {
supported_capabilities = fields.supported_capabilities,
sub_drivers = {
require("sub_drivers.aqara_cube"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lazy loading for other subdrivers is implemented in #2525

switch_utils.lazy_load_if_possible("sub_drivers.camera"),
require("sub_drivers.eve_energy"),
require("sub_drivers.third_reality_mk1")
}
Expand Down
Loading
Loading