Skip to content

Commit aa630fa

Browse files
authored
Merge pull request #2674 from SmartThingsCommunity/matter-camera/motion-sensor-condition
Add motionSensor condition, and imageCapture action
2 parents 9e92a6f + 7b099ca commit aa630fa

File tree

1 file changed

+20
-0
lines changed
  • drivers/SmartThings/matter-switch/profiles

1 file changed

+20
-0
lines changed

drivers/SmartThings/matter-switch/profiles/camera.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,38 @@ deviceConfig:
111111
capability: imageCapture
112112
version: 1
113113
value: image.value
114+
overlayIcons:
115+
- iconUrl: "res://ic_camera_motion_detected"
116+
visibleCondition:
117+
component: main
118+
capability: motionSensor
119+
version: 1
120+
value: motion.value
121+
valueType: string
122+
operator: EQUALS
123+
operand: "active"
114124
detailView:
115125
- component: main
116126
capability: webrtc
117127
version: 1
118128
- component: main
119129
capability: mechanicalPanTiltZoom
120130
version: 1
131+
- component: main
132+
capability: motionSensor
133+
version: 1
121134
automation:
135+
conditions:
136+
- component: main
137+
capability: motionSensor
138+
version: 1
122139
actions:
123140
- component: main
124141
capability: videoCapture2
125142
version: 1
143+
- component: main
144+
capability: imageCapture
145+
version: 1
126146
dpInfo:
127147
- os: ios
128148
dpUri: "storyboard://HMVSController/HMVSViewController"

0 commit comments

Comments
 (0)