andig / homebridge-fritz

Homebridge platform for Fritz!Box router and supported DECT devices
MIT License
74 stars 22 forks source link

Duplicate device with plugin Alexa #147

Open vzlgdu opened 3 years ago

vzlgdu commented 3 years ago

Hi, I'm using your plugin and the Alexa plugin; in my network I used a DECT200 that is normally discovered creating two devices: one outlet and one temperature sensor (also if I set false in the config...); the problem is that the Alexa plugin discovers two devices named DECT200 generating an error (this happen also if I rename one of this in the Alexa app). Is there a solution to avoid the error message? Thanks

BionicThomas commented 3 years ago

Hi!

This could also be configured in the Alexa Plugin configuration.

I have the situation for some cameras and for all those I have a section in the combine:

"combine": [ { "into": "Kamera Flur", "from": [ "Kamera Flur" ] },...

for the temp sensors I have disabled them, hence not the issue for Alexa

"xxxxxxx": { "TemperatureSensor": false },

vzlgdu commented 3 years ago

Hi, I’ve disabled the temp sensor, but it is always discovered:

}, "outlet-1": { "TemperatureSensor": false }

About the solution using “combine” in Alexa plugin, I don’t understand how should be configured, because two devices was discovered: Outlet and Temperature, but both with the name DECT200…

Il giorno 17 set 2020, alle ore 10:12, Thomas notifications@github.com ha scritto:

Hi!

This could also be configured in the Alexa Plugin configuration.

I have the situation for some cameras and for all those I have a section in the combine:

"combine": [ { "into": "Kamera Flur", "from": [ "Kamera Flur" ] },...

for the temp sensors I have disabled them, hence not the issue for Alexa

"xxxxxxx": { "TemperatureSensor": false },

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andig/homebridge-fritz/issues/147#issuecomment-694073118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUN66PX4XH5C6WCAMSDHK3SGHAGBANCNFSM4RP5CQ3Q.

BionicThomas commented 3 years ago

Hi!

You need to replace "outlet-1" with the ID of your device. The outlet-1 is just a placeholder. Otherwise it does not work.

Regarding Alex, this works on a name basis hence the combine would fix the issue if they have both the same name.

vzlgdu commented 3 years ago

Sorry, but if I left ”outlet-1” it is ok and the device was discovered with no issues:

[17/9/2020, 09:19:46] [My FRITZ!Box] Alarm sensors found: none [17/9/2020, 09:19:46] [My FRITZ!Box] Buttons found: none [17/9/2020, 09:19:46] [My FRITZ!Box] Outlets found: 087610048016 [17/9/2020, 09:19:47] [My FRITZ!Box] Thermostats found: none [17/9/2020, 09:19:47] [My FRITZ!Box] Sensors found: none [17/9/2020, 09:19:47] Initializing platform accessory 'DECT200'…

Il giorno 17 set 2020, alle ore 11:50, Thomas notifications@github.com ha scritto:

Hi!

You need to replace "outlet-1" with the ID of your device. The outlet-1 is just a placeholder. Otherwise it does not work.

Regarding Alex, this works on a name basis hence the combine would fix the issue if they have both the same name.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andig/homebridge-fritz/issues/147#issuecomment-694124459, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUN66MPNWAKWOJDQMJDIODSGHLU7ANCNFSM4RP5CQ3Q.

vzlgdu commented 3 years ago

About this: “Regarding Alex, this works on a name basis hence the combine would fix the issue if they have both the same name.”, could, please, explain better ho should I configure in config.json to solve my problem? Thanks

Il giorno 17 set 2020, alle ore 11:50, Thomas notifications@github.com ha scritto:

Regarding Alex, this works on a name basis hence the combine would fix the issue if they have both the same name.

BionicThomas commented 3 years ago

My cameras (like the DEC200) publish more than one feature in HomeKit. But Alexa only allows one feature per named device. Hence if you have e.g. a Temp Sensor and a switch with the same name, Alexa gets confused. So you have to tell in the configuration for the Alexa Plugin to merge those with the same name into one. This achieved by the Combine section of the Alexa configuration. for you then something like this, see more details in the Alexa homebridge plugin help.

"combine": [ { "into": "DECT200", "from": [ "DECT200" ] }

For the fritz plugin you have to replace "Outlet-1" with your device id. Like this:

 "087610048016": {
                "TemperatureSensor": false
            }

only then it really does what you want it to do.

vzlgdu commented 3 years ago

Ok, applied both configurations; problem solved!

Thanks a lot for your support!

Il giorno 17 set 2020, alle ore 14:18, Thomas notifications@github.com ha scritto:

My cameras (like the DEC200) publish more than one feature in HomeKit. But Alexa only allows one feature per named device. Hence if you have e.g. a Temp Sensor and a switch with the same name, Alexa gets confused. So you have to tell in the configuration for the Alexa Plugin to merge those with the same name into one. This achieved by the Combine section of the Alexa configuration. for you then something like this, see more details in the Alexa homebridge plugin help.

"combine": [ { "into": "DECT200", "from": [ "DECT200" ] }

For the fritz plugin you have to replace "Outlet-1" with your device id. Like this:

"087610048016": { "TemperatureSensor": false } only then it really does what you want it to do.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andig/homebridge-fritz/issues/147#issuecomment-694192589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUN66MVAJ5RHSBZSQOY3RTSGH5DFANCNFSM4RP5CQ3Q.