n8henrie / fauxmo

Emulated Belkin WeMo devices that work with the Amazon Echo
https://n8henrie.com/2016/02/fauxmo-home-automation-with-the-amazon-echo-raspberry-pi-and-homeassistant/
Other
370 stars 78 forks source link

Echo 2 f/w 599473420 not finding devices #49

Closed wingett closed 6 years ago

wingett commented 6 years ago

My Issue

Echo 2nd gen not discovering devices Firmware version : 599473420

WHYT

Python 3.6.1 and 3.6.4 on Raspberry PI 3 (using pyenv) Fauxmo 0.4.5 master and dev branch Used SimpleHTTPPlugin & CommandLinePlugin

Can see another device retrieving setup.xml from fauxmo but cannot see Echo requesting a response during the discovery phase. I can however see the request going out, so assume that the Echo is not recognising our response string.

My config.json is as below:


{
  "FAUXMO": {
    "ip_address": "auto"
  },
  "PLUGINS": {
    "CommandLinePlugin": {
      "path": "/opt/pyenv/versions/3.6.1/lib/python3.6/site-packages/fauxmo-plugins/commandlineplugin.py",
      "DEVICES": [
        {
            "name": "Lounge lights",
            "port": 42131,
            "on_cmd": "/home/pi/bin/socket 1 on",
            "off_cmd": "/home/pi/bin/socket 1 off",
            "state_cmd": "ls testfile.txt"
        }
      ]
    }
  }
}

The log file is attached below:

fauxmo.log

For info, the IP address of the Echo is 192.168.3.50 The .91 address is another Raspberry Pi running "an open source media player" :) There are two Sky TV boxes which are also using DLNA - not sure if these other devices are causing an issue in the discovery process, but will try later with everything else unplugged to see if the results are any different.


Please make sure you've taken these steps before submitting a new issue:

n8henrie commented 6 years ago

Huh, that's odd. I was using CRLF previously but went to LF after a fair amount of testing didn't make any difference with my (early gen) echo devices. I wonder if something changes or is different with the Echo Plus.

@GlennPegden2 A PR sounds great! Make sure it's against the dev branch, thanks!

n8henrie commented 6 years ago

@GlennPegden2 @wingett can you guys install the latest dev branch and see how it works after incorporating the changes discovered / discussed above?

Will plan on closing the issue in 10 days or so if I don't hear back.

wingett commented 6 years ago

Nate,

will grab it tonight and test over the weekend. Been reluctant to test it before now as I had it working with the Dot :)

Cheers

Andrew

On 27 Apr 2018, at 02:18, Nathan Henrie notifications@github.com<mailto:notifications@github.com> wrote:

@GlennPegden2https://github.com/GlennPegden2 @wingetthttps://github.com/wingett can you guys install the latest dev branch and see how it works after incorporating the changes discovered / discussed above?

Will plan on closing the issue in 10 days or so if I don't hear back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/n8henrie/fauxmo/issues/49#issuecomment-384834824, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADnyTivLLiOtdJYJkCjktalArwOZksMYks5tsnHwgaJpZM4R1wf5.

deepam1982 commented 6 years ago

Guys, I installed latest dev branch and tested most of the above discussed scenarios. It is working satisfactorily for both echo dot (old device) and echo (new 2nd gen firmware).

n8henrie commented 6 years ago

This is great news, thanks.