@@ -97,15 +97,14 @@ export class CameraAccessory {
97
97
} )
98
98
. onSet ( ( status ) => {
99
99
this . log . debug ( `Setting alarm to ${ status ? "on" : "off" } ` ) ;
100
- this . camera . setAlertConfig ( Boolean ( status ) )
101
- . catch ( err => {
102
- this . log . error (
103
- `[${ this . config . name } ]` ,
104
- "Error at 'setAlertConfig'." ,
105
- err
106
- ) ;
107
- this . cameraStatus = undefined ; // Home.app shows 'No Response'
108
- } ) ;
100
+ this . camera . setAlertConfig ( Boolean ( status ) ) . catch ( ( err ) => {
101
+ this . log . error (
102
+ `[${ this . config . name } ]` ,
103
+ "Error at 'setAlertConfig'." ,
104
+ err
105
+ ) ;
106
+ this . cameraStatus = undefined ; // Home.app shows 'No Response'
107
+ } ) ;
109
108
} ) ;
110
109
}
111
110
@@ -128,15 +127,14 @@ export class CameraAccessory {
128
127
} )
129
128
. onSet ( ( status ) => {
130
129
this . log . debug ( `Setting privacy to ${ status ? "on" : "off" } ` ) ;
131
- this . camera . setLensMaskConfig ( ! status )
132
- . catch ( err => {
133
- this . log . error (
134
- `[${ this . config . name } ]` ,
135
- "Error at 'setLensMaskConfig'." ,
136
- err
137
- ) ;
138
- this . cameraStatus = undefined ; // Home.app shows 'No Response'
139
- } ) ;
130
+ this . camera . setLensMaskConfig ( ! status ) . catch ( ( err ) => {
131
+ this . log . error (
132
+ `[${ this . config . name } ]` ,
133
+ "Error at 'setLensMaskConfig'." ,
134
+ err
135
+ ) ;
136
+ this . cameraStatus = undefined ; // Home.app shows 'No Response'
137
+ } ) ;
140
138
} ) ;
141
139
}
142
140
@@ -188,7 +186,11 @@ export class CameraAccessory {
188
186
189
187
const eventEmitter = await this . camera . getEventEmitter ( ) ;
190
188
eventEmitter . addListener ( "motion" , ( motionDetected ) => {
191
- this . log . info ( `[${ this . config . name } ]` , "Motion detected" , motionDetected ) ;
189
+ this . log . debug (
190
+ `[${ this . config . name } ]` ,
191
+ "Motion detected" ,
192
+ motionDetected
193
+ ) ;
192
194
193
195
this . motionService ?. updateCharacteristic (
194
196
this . api . hap . Characteristic . MotionDetected ,
0 commit comments