-
-
Notifications
You must be signed in to change notification settings - Fork 78
Device Not Discovered #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
(venv) C:\Users\310093198\AppData\Local\Programs\Python\Python36\venv\Scripts>python -V |
Find Devices Alexa commad verbose 2017-11-12 13:54:10 asyncio:1380 INFO poll took 18922.000 ms: 1 events |
Please use the issue template, it's provided for a reason. I won't be able to help you unless you provide the requested info, such as what problem you're having and what you've tried. I'm not sure that I understand what problem you're having, and posting your logs without telling me what problem you're having doesn't help. Please include the below info from the issue template like I asked yesterday. My IssueWHYTPlease make sure you've taken these steps before submitting a new issue:
|
I have similar issue. EDIT: Moved |
@ppirrip -- please start a new issue, or continue in this (likely) related issue. I suspect your problem is because you're not using an actual Echo device. |
Thx @n8henrie I have a feeling that is the case (not using an actual Echo device). |
I think I know what the problem is. I am facing similar problems for my project that is based on fauxmo. In the new Amazon Echo Plus they changed something. In the new version, they don't do a "ST: urn:Belkin:device:**" SSDP-request anymore. They just issue a ''ST: ssdp:all'' request. And that doesn't work for fauxmo. |
So if i change the search option will it work ? |
Huh? What search option? Can you please confirm that you have a Echo Plus? |
I have Echo version. Is there way to do work around method? |
As far as I know there is no work around. To me it appears to be a change in the firmware of the echo that is affecting support for wemo-devices. What firmware version does your echo have? You can look it up in the alexa app. 2nd gen Echos should have Version 591448720... |
592452720 |
https://bitbucket.org/xoseperez/fauxmoesp Using this on ESP8266 for me it is working |
That's very helpful to know. Thank you. In this esp8266 project, they have a better coverage of the SSDP-Requests sent by Alexa. They are listinging for one of these requests: And thats why fauxmo is failing and fauxmoesp is working. |
In the new Amazon Echo Plus they changed something. In the new version, they don't do a "ST: urn:Belkin:device:**" SSDP-request anymore. They just issue a ''ST: ssdp:all'' request.
Huh, that’s interesting (and unfortunate). If you’re familiar with WireShark or tcpdump, can you send me a pcap of what you’re seeing with the new Echo?
|
@n8henrie 192.168.178.35 is this IP of his Alexa Plus device. I don't own this one. |
My echo is running 591448720 and working fine with Fauxmo. I'll have to wait and see if more Echo Plus users can chime in on whether they're having issues as well. |
@n8henrie see I am starting to incorporate code from the above mentioned Xose Pérez project into my code to get a broader compatibilty. |
If I want to give it a try to incorporate fauxmoesp, is that only protocols.py needed to change? Specifically this line?
|
Glad to hear it's working for you. Yes, it very well may change -- while I admire your work to future-proof your project, I think I'm going to wait until I know exactly what the changes are before I invest my time. In other news, I'm pushing out several days of work onto the dev branches of both n8henrie/fauxmo and n8henrie/fauxmo-plugins today -- Fauxmo devices can now properly respond to Alexa queries regarding their state, which is nice. I'll keep an eye out, both my echo and my dot are running 591448720, so I wonder if @gkrananth's 592452720 firmware is causing his issue. If I'm able to reproduce it, it should be a fairly easy fix (as long as it's just fixing the |
I'm not sure if that's the case. All three of those examples have |
I am playing with |
@ppirrip |
I am not sure is this related. From protocols.py, I don't see the following in
I will take a look at the _onTCPData() also |
I think my problem is that there is no "ssdp:discover" msg from the Echo simulator or the AVS device. The other home device (e.g. TP-Link Smart Plug) worked must be b/c of the device cloud from the vendor, and that requires a Home Skill, and maybe that's why |
I successfully integrated the code from the other esp8266-project in this change: Apperantly it seems to be working. My issue-reporter says the devices are now beeing discovered by his Echo Plus. |
Good to know. We'll see if I end up with the same issue when my Echo updates. |
I can confirm that my RPi with AVS and Echosim.io are not compatible with Fauxmo. Echo dot (firmware ver 519452520) is able to detect the Fauxmo with my sample config.json. I have issue with Alexa not able to turn the fauxmo on/off, but likely is b/c I haven't set it up correctly. |
Fair enough. I've added lack of AVS / Echoism support to the FAQ, closing. |
I’m not sure why you closed this... my echo also stopped recognizing my “devices” presented by fauxmo and was following this to see if there would be a fix published. It was working fine up until a few days ago... should I open a new issue? |
@lombarke sorry, this thread has gotten a little muddled, to the point that I’m not entirely sure what’s being tracked here. It would definitely be helpful if others such as yourself would chime in if you think you’re having a related issue, so I can get an idea of the scope of the problem. Can you reply here with your firmware version, your debug output, and a brief description of what is going on (ie what you mean by “stopped recognizing”)? |
@n8henrie yes, absolutely! however i can help... but please understand, i'm nowhere near advanced as a lot of your reporters, so if there's more info i can provide just let me know (and possibly how?). here's my situation: i've got an amazon echo, firmware version 595457420. i installed fauxmo last week (Nov. 14) and everything has been working fine until a day or two(?) ago. today, when i say "alexa, turn 't.v.' off" i'm met with "sorry, i didn't find 't.v.'", despite the fact that i've got a virtual device called 't.v.' via fauxmo (and this had been working pretty flawlessly). probably worth noting i don't think anything's changed on my server at all (macOS 10.12.6). the virtual devices that were working fine are now alternating between being discovered and listed as "offline" (screenshots attached), and i seem to be getting hung up on a line:
followed by:
when it's hung there, the devices are no longer discoverable, and no longer controllable. Anyway, here's a dump of my -vvv:
|
Thanks for the quick response. This looks like it may be a different
problem, so please go ahead and start a new issue for it. Also please make
sure you include your config, and upgrade to the most recent Fauxmo version
(`v0.4.5`) and include debug output from that version.
|
will do! thanks! |
Closing as I think these are different issues. @lombarke is using yet a different firmware version, but seems like his search requests are being responded to and devices are being discovered. |
This is still an issue for me. Alexa Echo dot v1 and v2 and Echo in use. Running fauxmo on raspberry pi zero w with python3.6.1 and Raspbian Stetch lite. I also have a Raspberry Pi 3 that still works for discovery that was built 6 months ago and for some reason if I remove and readd devices those are still discovered but no new PIs running fauxmo will work. The working raspberry pi uses: |
Windows 10 Machine
Python 3.6.7
Fauxmo : 0.4.4
Please find below the verbose
(venv) C:\Users\310093198\AppData\Local\Programs\Python\Python36\venv\Scripts>fauxmo -c config.json -vvv
2017-11-12 12:27:30 fauxmo:37 INFO Fauxmo v0.4.4
2017-11-12 12:27:30 fauxmo:38 DEBUG 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
2017-11-12 12:27:30 fauxmo:37 DEBUG Using IP address: 192.168.1.33
2017-11-12 12:27:30 fauxmo:102 DEBUG plugin_vars: {}
2017-11-12 12:27:30 fauxmo:105 DEBUG device config: {'port': 12345, 'on_cmd': 'http://192.168.1.33:8000/get?switch=on', 'off_cmd': 'http://192.168.1.33:8000/get?switch=off', 'method': 'GET', 'name': 'fake switch one'}
2017-11-12 12:27:30 asyncio:1068 INFO <Server sockets=[<socket.socket fd=416, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.33', 12345)>]> is serving
2017-11-12 12:27:30 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake switch one', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x0000029AA6276940>}
2017-11-12 12:27:30 fauxmo:105 DEBUG device config: {'port': 12346, 'on_cmd': 'http://127.0.0.1:8000/digest-auth/auth/fauxmouser/fauxmopass', 'off_cmd': 'http://127.0.0.1:8000/digest-auth/auth/fauxmouser/fauxmopass', 'user': 'fauxmouser', 'password': 'fauxmopass', 'name': 'fake Indigo switch'}
2017-11-12 12:27:30 asyncio:1068 INFO <Server sockets=[<socket.socket fd=780, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.33', 12346)>]> is serving
2017-11-12 12:27:30 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake Indigo switch', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x0000029AA554C8D0>}
2017-11-12 12:27:30 fauxmo:105 DEBUG device config: {'port': 12347, 'on_cmd': 'http://192.168.1.33:8000/put', 'off_cmd': 'http://192.168.1.33:8000/put', 'on_data': {'isOn': 1}, 'off_data': {'isOn': 0}, 'method': 'PUT', 'name': 'fake Indigo switch'}
2017-11-12 12:27:30 asyncio:1068 INFO <Server sockets=[<socket.socket fd=640, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.33', 12347)>]> is serving
2017-11-12 12:27:30 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake Indigo switch', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x0000029AA6331A20>}
2017-11-12 12:27:30 fauxmo:105 DEBUG device config: {'name': 'fake post request', 'port': 12348, 'on_cmd': 'http://192.168.1.33:8000/post', 'off_cmd': 'http://192.168.1.33:8000/post', 'method': 'POST', 'headers': {'x-ha-access': 'your_hass_password'}, 'on_data': {'entity_id': 'switch.fake_hass_switch'}, 'off_data': {'entity_id': 'switch.fake_hass_switch'}}
2017-11-12 12:27:30 asyncio:1068 INFO <Server sockets=[<socket.socket fd=812, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.33', 12348)>]> is serving
2017-11-12 12:27:30 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake post request', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x0000029AA63319E8>}
2017-11-12 12:27:30 fauxmo:105 DEBUG device config: {'name': 'test https request', 'port': 12349, 'on_cmd': 'https://httpbin.org/post', 'off_cmd': 'https://httpbin.org/post', 'method': 'POST', 'headers': {'x-ha-access': 'your_hass_password'}, 'on_data': {'entity_id': 'switch.fake_hass_switch'}, 'off_data': {'entity_id': 'switch.fake_hass_switch'}}
2017-11-12 12:27:30 asyncio:1068 INFO <Server sockets=[<socket.socket fd=816, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.1.33', 12349)>]> is serving
2017-11-12 12:27:30 fauxmo:123 DEBUG Started fauxmo device: {'name': 'test https request', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x0000029AA6331A90>}
2017-11-12 12:27:30 fauxmo:125 INFO Starting UDP server
2017-11-12 12:27:30 asyncio:948 DEBUG Datagram endpoint remote_addr=None created: (<_SelectorDatagramTransport fd=756 read=idle write=<idle, bufsize=0>>, <fauxmo.protocols.SSDPServer object at 0x0000029AA6276748>)
2017-11-12 12:27:46 asyncio:1380 INFO poll took 16297.000 ms: 1 events
2017-11-12 12:27:46 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:46 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: upnp:rootdevice\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:46 asyncio:1380 DEBUG poll took 0.000 ms: 1 events
2017-11-12 12:27:46 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:46 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: ssdp:all\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:47 asyncio:1380 DEBUG poll took 515.000 ms: 1 events
2017-11-12 12:27:47 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:47 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: ssdp:all\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:47 asyncio:1380 DEBUG poll took 407.000 ms: 1 events
2017-11-12 12:27:47 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:47 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: upnp:rootdevice\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:47 asyncio:1380 DEBUG poll took 0.000 ms: 1 events
2017-11-12 12:27:47 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:47 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: ssdp:all\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:48 asyncio:1380 DEBUG poll took 516.000 ms: 1 events
2017-11-12 12:27:48 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:48 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: upnp:rootdevice\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
2017-11-12 12:27:48 asyncio:1380 DEBUG poll took 0.000 ms: 1 events
2017-11-12 12:27:48 fauxmo:170 DEBUG Received data below from ('192.168.1.22', 50000):
2017-11-12 12:27:48 fauxmo:171 DEBUG b'M-SEARCH * HTTP/1.1\r\nMX: 3\r\nST: ssdp:all\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\n\r\n'
confg.json file
{
"FAUXMO": {
"ip_address": "192.168.1.33"
},
"PLUGINS": {
"SimpleHTTPPlugin": {
"DEVICES": [
{
"port": 12345,
"on_cmd": "http://192.168.1.33:8000/get?switch=on",
"off_cmd": "http://192.168.1.33:8000/get?switch=off",
"method": "GET",
"name": "fake switch one"
},
{
"port": 12346,
"on_cmd": "http://127.0.0.1:8000/digest-auth/auth/fauxmouser/fauxmopass",
"off_cmd": "http://127.0.0.1:8000/digest-auth/auth/fauxmouser/fauxmopass",
"user": "fauxmouser",
"password": "fauxmopass",
"name": "fake Indigo switch"
},
{
"port": 12347,
"on_cmd": "http://192.168.1.33:8000/put",
"off_cmd": "http://192.168.1.33:8000/put",
"on_data": {"isOn": 1},
"off_data": {"isOn": 0},
"method": "PUT",
"name": "fake Indigo switch"
},
{
"name": "fake post request",
"port": 12348,
"on_cmd": "http://192.168.1.33:8000/post",
"off_cmd": "http://192.168.1.33:8000/post",
"method": "POST",
"headers": {"x-ha-access": "your_hass_password"},
"on_data": {"entity_id": "switch.fake_hass_switch"},
"off_data": {"entity_id": "switch.fake_hass_switch"}
},
{
"name": "test https request",
"port": 12349,
"on_cmd": "https://httpbin.org/post",
"off_cmd": "https://httpbin.org/post",
"method": "POST",
"headers": {"x-ha-access": "your_hass_password"},
"on_data": {"entity_id": "switch.fake_hass_switch"},
"off_data": {"entity_id": "switch.fake_hass_switch"}
}
]
}
}
}
Please help what went wrong. Trying with Echo 2
The text was updated successfully, but these errors were encountered: