NorthernMan54 / homebridge-alexa

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

Duplicate devices warning #727

Closed mariomaz87 closed 1 month ago

mariomaz87 commented 1 month ago

Analysis

In the log I get a warning for duplicate devices, even if in the config I have only one entry for each devices

Expected Behavior

No warnings

Steps To Reproduce

Please see logs below

Logs

[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - The following devices are allow => [
'Dummytvspentaalexa',
'Dummytv',
'DummyluceAmbrogio',
'DummyEmergenza',
'DummyPioggiaLenticchia',
'DummyLuciSera',
'Finestra Bagno Vasca',
'Luce Studio',
'Lampada Bottiglia',
'Luce Cameretta',
'Lampada Isola',
'LED Salone Destro',
'LED Salone Sinistro',
'Striscia Lenticchia',
'Striscia Camera',
'Luce Camera',
'Hue Corto',
'Hue Lungo',
'Finestra Camera',
'Finestra Cameretta',
'Faretti Cucina',
'Porta Finestra Cameretta',
'Luce Balconcino'
]
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => DummyEmergenza
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => DummyLuciSera
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => DummyPioggiaLenticchia
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => DummyluceAmbrogio
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Dummytv
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Dummytvspentaalexa
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Lampada Bottiglia
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Faretti Cucina
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Finestra Bagno Vasca
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Finestra Camera
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Finestra Cameretta
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Porta Finestra Cameretta
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Luce Balconcino
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Luce Studio
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Hue Corto
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Hue Corto
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Hue Lungo
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Hue Lungo
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => LED Salone Destro
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => LED Salone Sinistro
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Lampada Isola
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Luce Camera
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Luce Cameretta
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Striscia Camera
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Striscia Lenticchia
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Finestra Bagno Vasca
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Porta Finestra Camera
[10/6/2024, 3:19:14 PM] [Alexa] INFO: DeviceList - allow => Porta Finestra Cameretta
[10/6/2024, 3:19:14 PM] [Alexa] WARNING: Duplicate device name Hue Corto
[10/6/2024, 3:19:14 PM] [Alexa] WARNING: Duplicate device name Hue Lungo
[10/6/2024, 3:19:14 PM] [Alexa] WARNING: Duplicate device name Finestra Bagno Vasca
[10/6/2024, 3:19:14 PM] [Alexa] WARNING: Duplicate device name Porta Finestra Cameretta
[10/6/2024, 3:19:14 PM] [Alexa] alexaDiscovery - returned 28 devices

Configuration

{
    "name": "Alexa",
    "username": "xxx",
    "password": "xxx",
    "pin": "xxx",
    "routines": false,
    "blind": true,
    "door": false,
    "debug": false,
    "refresh": 900,
    "keepalive": 10,
    "CloudTransport": "mqtts",
    "deviceListHandling": "allow",
    "deviceList": [
        "Dummytvspentaalexa",
        "Dummytv",
        "DummyluceAmbrogio",
        "DummyEmergenza",
        "DummyPioggiaLenticchia",
        "DummyLuciSera",
        "Finestra Bagno Vasca",
        "Luce Studio",
        "Lampada Bottiglia",
        "Luce Cameretta",
        "Lampada Isola",
        "LED Salone Destro",
        "LED Salone Sinistro",
        "Striscia Lenticchia",
        "Striscia Camera",
        "Luce Camera",
        "Hue Corto",
        "Hue Lungo",
        "Finestra Camera",
        "Finestra Cameretta",
        "Faretti Cucina",
        "Porta Finestra Cameretta",
        "Luce Balconcino"
    ],
    "platform": "Alexa"
}

Environment

Process Supervisor

Docker (Mention image name in Additional Context)

Additional Context

Image: homebridge/homebridge:ubuntu

NorthernMan54 commented 1 month ago

There duplicate device warning is triggered when the plugin see's two accessories or devices with the same name. This is to let you know that you may have devices in Alexa that have the same name, so you can go into the app and change the name if required.

The device_list allow option just filters the names so that only one's that match the option to be passed for further processing. So as long as the names are the same, they pass the filter.

mariomaz87 commented 1 month ago

Ok thanks, so no bug.