Skip to content
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

Does Fauxmo work with non-Echo emulators like Alexa AVS or Echoism.io? #22

Closed
MopheusDG opened this issue Feb 20, 2017 · 6 comments
Closed

Comments

@MopheusDG
Copy link

  • RPi3 - Pixel
  • Python updated to 3.5.3
  • Latest here using "pip3 install fauxmo"

I've been going crazy trying to make this work with Alexa AVS running on the same RPi that Fauxmo with no luck. Tried setting Fauxmo to use Wifi IP and Alexa on LAN IP but nothing.... Anyone has any idea if it's possible to get it working ? I don't have my Echo cause it's not available in my country yet but I thought this should work in the meantime.

Fauxmo seams to be running fine but can't find any smart devices.

Any ideas ? What to look for ? What can I be doing wrong ?

Thanks a lot !

@n8henrie
Copy link
Owner

Hello,

Sorry you're having trouble. Please include:

  • Specific Fauxmo version (critical for future readers of the thread, when the "latest" version has changed)
  • Your Fauxmo config
  • Your debug log

A little information about AVS would be nice -- I'm not familiar with it or how it works.

Total speculation, but I bet there's a way to get this to work, but I also bet that you'll need to be familiar with some network capture tools (tshark, tcpdump) to figure out exactly what's going wrong.

@pr3sidentspence
Copy link

I wonder if AVS ignores it because it has the same ip address? Have you considered binding the two services to different IPs?

@n8henrie
Copy link
Owner

Closing due to inactivity, feel free to re-open.

@ppirrip
Copy link

ppirrip commented Nov 14, 2017

Fauxmo not detectable by Echo simulator (reword), Amazon Alexa web site here as well as Raspberry Pi 3 with AVS installed. The Pi was tested with basic Alexa functions like time and weather as well as a TP-Link power plug. Likely the issue is b/c I am not using an actual Echo.

  • Python 3.6.3, Fauxmo 0.4.4
  • json attached
  • Fauxmo ran on Ubuntu 16* LTS

The UPnP port 1900 is not blocked by the Linksys E4200 router

Port 12340 used in the json is listening
sudo netstat -nlp | grep 12340
tcp 0 0 192.168.1.146:12340 0.0.0.0:* LISTEN 8974/python3

(venv) ppirrip@makoto:~/Workspace/hackability/fauxmo$ fauxmo -c config.json -vvv
2017-11-13 15:08:22 fauxmo:37 INFO Fauxmo v0.4.4
2017-11-13 15:08:22 fauxmo:38 DEBUG 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0]
2017-11-13 15:08:22 fauxmo:24 DEBUG Attempting to get IP address automatically
2017-11-13 15:08:22 fauxmo:37 DEBUG Using IP address: 192.168.1.146
2017-11-13 15:08:22 fauxmo:102 DEBUG plugin_vars: {}
2017-11-13 15:08:22 fauxmo:105 DEBUG device config: {'port': 12340, 'on_cmd': 'http://192.168.1.146/myserver/fakeswitches/01/on', 'off_cmd': 'http://192.168.1.146/myserver/fakeswitches/01/off', 'method': 'GET', 'name': 'fake switch one'}
2017-11-13 15:08:22 asyncio:1068 INFO <Server sockets=[<socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('192.168.1.146', 12340)>]> is serving
2017-11-13 15:08:22 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake switch one', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x7fd5de5c1ac8>}
2017-11-13 15:08:22 fauxmo:105 DEBUG device config: {'port': 12341, 'on_cmd': 'http://192.168.1.146:54321/devices/garage%20light', 'off_cmd': 'http://192.168.1.146:54321/devices/garage%20light', 'on_data': {'isOn': 1}, 'off_data': {'isOn': 0}, 'user': 'this', 'password': 'that', 'method': 'PUT', 'name': 'fake Indigo switch'}
2017-11-13 15:08:22 asyncio:1068 INFO <Server sockets=[<socket.socket fd=9, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('192.168.1.146', 12341)>]> is serving
2017-11-13 15:08:22 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake Indigo switch', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x7fd5de543208>}
2017-11-13 15:08:22 fauxmo:105 DEBUG device config: {'name': 'fake home assistant switch by REST API', 'port': 12342, 'on_cmd': 'http://192.168.1.146:8123/api/services/switch/turn_on', 'off_cmd': 'http://192.168.1.146:8123/api/services/switch/turn_off', '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-13 15:08:22 asyncio:1068 INFO <Server sockets=[<socket.socket fd=10, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('192.168.1.146', 12342)>]> is serving
2017-11-13 15:08:22 fauxmo:123 DEBUG Started fauxmo device: {'name': 'fake home assistant switch by REST API', 'plugin': <fauxmo.plugins.simplehttpplugin.SimpleHTTPPlugin object at 0x7fd5d9a15fd0>}
2017-11-13 15:08:22 fauxmo:125 INFO Starting UDP server
2017-11-13 15:08:22 asyncio:948 DEBUG Datagram endpoint remote_addr=None created: (<_SelectorDatagramTransport fd=11 read=idle write=<idle, bufsize=0>>, <fauxmo.protocols.SSDPServer object at 0x7fd5d9cca710>)

config.json.zip

@n8henrie n8henrie reopened this Nov 15, 2017
@n8henrie n8henrie changed the title Fauxmo and Alexa AVS on same Pi ? Does Fauxmo work with non-Echo emulators like Alexa AVS or Echoism.io? Nov 15, 2017
@n8henrie
Copy link
Owner

As stated before, I don't think Fauxmo works with non-echo devices. I'll try to test with Echoism, I don't have an AVS device to test with but other users have had similar reports. Anybody that gets it working with AVS is encouraged to chime in here.

Re-opened to remind me to test with Echoism, and add info to the README regarding not working with AVS / Echo emulators.

@n8henrie
Copy link
Owner

Does not seem to recognize Echoism at all.

n8henrie added a commit that referenced this issue Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants