armzilla / amazon-echo-ha-bridge

emulates philips hue api to other home automation gateways
Apache License 2.0
721 stars 168 forks source link

No devices discovered after recent changes in Alexa #111

Open jaroslawhartman opened 4 years ago

jaroslawhartman commented 4 years ago

Hi,

After recent changes in Alexa software, no devices are discovered. One difference I've identified is that now Alexa sends M-SEARCH SSDP discovery with header containing Man:

image

That's easy to fix, in UpnpListener.java change line 106 to:

                if(body != null && body.startsWith("M-SEARCH * HTTP/1.1") && ( body.contains("MAN: \"ssdp:discover\"") || body.contains("Man: \"ssdp:discover\""))){

But even after sending a response, Alexa does not see new devices.

Any thoughts from anybody?

Thank you, Jarek