MiguelRipoll23 / homebridge-securitysystem

Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.
https://www.npmjs.com/package/homebridge-securitysystem
MIT License
151 stars 13 forks source link

logs of not triggered events #447

Closed fate8383 closed 1 year ago

fate8383 commented 1 year ago

Plugin version

latest stable

Plugin configuration

defaults

Homebridge version

latest stable

What happened?

[5/11/2023, 3:22:06 PM] [eWeLink] [Gallery left window 22a08] current state [contact not detected]. [5/11/2023, 3:22:07 PM] [Security System] Trip Night Switch (On) [5/11/2023, 3:22:07 PM] [Security System] Security System (Trip mode not set) [5/11/2023, 3:22:07 PM] [Security System] Trip Away Switch (On) [5/11/2023, 3:22:07 PM] [Security System] Security System (Trip mode not set)

as logs show above, I have automation to trigger when gallery left window opens and if mode is on night or away then trigger alarm. So now it is on home mode and it is not triggering alert, all correct but I see above logs for all window/door open/close events. this was not happening before. How do I turn these logs off?

Relevant log output

[5/11/2023, 3:22:06 PM] [eWeLink] [Gallery left window 22a08] current state [contact not detected].
[5/11/2023, 3:22:07 PM] [Security System] Trip Night Switch (On)
[5/11/2023, 3:22:07 PM] [Security System] Security System (Trip mode not set)
[5/11/2023, 3:22:07 PM] [Security System] Trip Away Switch (On)
[5/11/2023, 3:22:07 PM] [Security System] Security System (Trip mode not set)
MiguelRipoll23 commented 1 year ago

Hello @fate8383,

This was added to easily investigate reported issues without needing to ask the user to provide debug logs. I can understand that maybe it’s too noisy , if that’s the case maybe an option could be added to disable it in a new update.

fate8383 commented 1 year ago

I would appreciate that if we have the option to off this, multiple 20 plus devices and multiple times this triggers every day and it is pretty noisy. Thanks a lot

MiguelRipoll23 commented 1 year ago

Got ya, will add an option then to avoid the noise.