-
Notifications
You must be signed in to change notification settings - Fork 544
Support additional Camera device types #2590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nickolas-deboom
wants to merge
2
commits into
main
Choose a base branch
from
support-additional-camera-device-types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
159 changes: 159 additions & 0 deletions
159
drivers/SmartThings/matter-switch/profiles/av-doorbell.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| name: av-doorbell | ||
| 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: vision.clipAnalysis | ||
| version: 1 | ||
| optional: true | ||
| - id: firmwareUpdate | ||
| version: 1 | ||
| - id: refresh | ||
| version: 1 | ||
| categories: | ||
| - name: DoorBell | ||
| - 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 | ||
| overlayIcons: | ||
| - iconUrl: "res://ic_camera_motion_detected" | ||
| visibleCondition: | ||
| component: main | ||
| capability: motionSensor | ||
| version: 1 | ||
| value: motion.value | ||
| valueType: string | ||
| operator: EQUALS | ||
| operand: "active" | ||
| detailView: | ||
| - component: main | ||
| capability: webrtc | ||
| version: 1 | ||
| - component: main | ||
| capability: mechanicalPanTiltZoom | ||
| version: 1 | ||
| - component: main | ||
| capability: motionSensor | ||
| version: 1 | ||
| automation: | ||
| conditions: | ||
| - component: main | ||
| capability: motionSensor | ||
| version: 1 | ||
| - component: doorbell | ||
| capability: button | ||
| version: 1 | ||
| actions: | ||
| - component: main | ||
| capability: videoCapture2 | ||
| version: 1 | ||
| - component: main | ||
| capability: imageCapture | ||
| version: 1 | ||
| dpInfo: | ||
| - os: ios | ||
| dpUri: "storyboard://HMVSController/HMVSViewController" | ||
| - os: android | ||
| dpUri: "plugin://com.samsung.android.plugin.camera" | ||
| metadata: | ||
| mnmn: SmartThingsEdge | ||
| vid: matter-av-doorbell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: chime | ||
| components: | ||
| - id: main | ||
| capabilities: | ||
| - id: sounds | ||
| version: 1 | ||
| - id: audioMute | ||
| version: 1 | ||
| - id: firmwareUpdate | ||
| version: 1 | ||
| - id: refresh | ||
| version: 1 | ||
| categories: | ||
| - name: DoorBell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: doorbell | ||
| components: | ||
| - id: main | ||
| capabilities: | ||
| - id: button | ||
| version: 1 | ||
| - id: firmwareUpdate | ||
| version: 1 | ||
| - id: refresh | ||
| version: 1 | ||
| categories: | ||
| - name: DoorBell |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A device that supports Camera and Chime would equally match to the generic fingerprint for both
Matter CameraandMatter Chime, so it is ambiguous which profile would be used initially. I know we would expect this to be fixed by the match profile logic, but could you add an additional fingerprint that matches on both the Camera and Chime device types and uses the camera profile? Also, this would allow us to set the default name to "Matter Camera" for these devices.