NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
446 stars 77 forks source link

Feature Request: support various Logging Levels #457

Closed steveredden closed 2 years ago

steveredden commented 2 years ago

Problem: Every refresh amount of min I get the following warnings:

[26/07/2021, 16:24:17] [Alexa] WARNING: Duplicate device name Bedroom Plug
[26/07/2021, 16:24:17] [Alexa] WARNING: Duplicate device name Den Plug

This is a known configuration of mine, particularly using the dummy-contact plugin to create a contact sensor associated with dummy switches (that end up with the same name). Ultimately, I use it to enable control of Amazon plugs.

Request: Hoping for a configuration option to suppress these messages.

NorthernMan54 commented 2 years ago

You would need to change the dummy device name to suppress the message. Ie change the name

steveredden commented 2 years ago

That makes sense. I can get that fixed on the other end.

On this end can you add a log level config? I started using the deviceList and don't need to see the INFO logs. WARNING+ is prefered.

[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - The following devices are deny => [ '\\sFireTV\\s', 'Home Occupied' ]
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Home Occupied Home Occupied
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Home Occupied Home Occupied
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Master FireTV BE80
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Theater FireTV F490
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Theater FireTV Playback Sensor EDAB
[05/08/2021, 08:15:19] [Alexa] INFO: DeviceList - deny => Living Room FireTV 9E70