nassir-malik / IOT-Pi3-Alexa-Automation

Use Raspberry Pi 3 as home automation device with Alexa
108 stars 107 forks source link

Not working with Raspberry Pi zero W #11

Open SourabhKanth opened 6 years ago

SourabhKanth commented 6 years ago

Nassir, you've done a tremendous job and the script is working flawlessly with Pi 3, but it is not working with Pi zero W. In Pi zero, after running the script, it goes into polling mode but Echo Dot 2nd Gen is unable to detect it.

nassir-malik commented 6 years ago

It should work with PI zero. What do you see in terminal window with voice command? -Thanks

Nassir

On Wed, Jun 20, 2018 at 10:31 PM SourabhKanth notifications@github.com wrote:

Nassir, you've done a tremendous job and the script is working flawlessly with Pi 3, but it is not working with Pi zero W. In Pi zero, after running the script, it goes into polling mode but Echo Dot 2nd Gen is unable to detect it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nassir-malik/IOT-Pi3-Alexa-Automation/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1FGan9_Cxzbd-o8kQCzs27zRyyTx7Wks5t-xOdgaJpZM4UxWDP .

controllermarko commented 6 years ago

Hi Nassir, I have the same error as describe above: TypeError: cannot concatenate 'str' and 'tuple' objects. I tested all python codes, eben the example-minimal.py generates this error. The script starts fine, but if I say "search for devices" this error appears. Do you have an idea?

nassir-malik commented 6 years ago

Replace all appearances of 'urn:Belkin:device:**' to 'upnp:rootdevice' in the fauxmo.py script. Let me know if this works.

controllermarko commented 6 years ago

Hi Nassir, I have replaced urn:Beldin:device two times.But unfortunately Alexa Echo cannot find new devices. I found one more line containing urn:Belin… shall ich replace something here? urn:Belkin:service:basicevent:1#SetBinaryState

ThanksRegardsMarko Am ‎Montag‎, ‎12‎. ‎November‎ ‎2018‎ ‎01‎:‎18‎:‎25‎ ‎CET hat Nassir Malik notifications@github.com Folgendes geschrieben:

Replace all appearances of 'urn:Belkin:device:**' to 'upnp:rootdevice' in the fauxmo.py script. Let me know if this works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

nassir-malik commented 6 years ago

Sorry! for misunderstanding. You only need to change it if you are using echo plus. If it is working for pi 3 it should work for pi zero just make sure GPIO is correct in code when using with pi zero.

controllermarko commented 6 years ago

Hello again, I have the Alexa Echo but when let Alexa search for new devices I get this error message:   File "RPi_name_port_gpio_8_Relays2.py", line 85, in     logging.critical("Critical exception: " + e.args  ) TypeError: cannot concatenate 'str' and 'tuple' objects

Do you have an idea? Am ‎Montag‎, ‎12‎. ‎November‎ ‎2018‎ ‎16‎:‎13‎:‎17‎ ‎CET hat Nassir Malik notifications@github.com Folgendes geschrieben:

Sorry! for misunderstanding. You only need to change it if you are using echo plus. If it is working for pi 3 it should work for pi zero just make sure GPIO is correct in code when using with pi zero.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

SourabhKanth commented 5 years ago

Hi Nassir,

Echo 3rd Gen is not able to discover devices on Pi Zero. As you mentioned, have replaced all appearances of 'urn:Belkin:device:**' to 'upnp:rootdevice' in the fauxmo.py script. This solved the issue with discovery, but now "turn on/off" command is not working "says server is unresponsive".

I found one more line containing urn:Belkin:service, shall I replace something here? urn:Belkin:service:basicevent:1#SetBinaryState

Is there anything else which needs to be changed?

nassir-malik commented 5 years ago

It does not work 3rd gen. -Thanks

Nassir

On Sat, Dec 8, 2018 at 10:46 AM SourabhKanth notifications@github.com wrote:

Hi Nassir,

Echo 3rd Gen is not able to discover devices on Pi Zero. As you mentioned, have replaced all appearances of 'urn:Belkin:device:**' to 'upnp:rootdevice' in the fauxmo.py script. This solved the issue with discovery, but now "turn on/off" command is not working "says server is unresponsive".

I found one more line containing urn:Belkin:service, shall I replace something here? urn:Belkin:service:basicevent:1#SetBinaryState

Is there anything else which needs to be changes?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nassir-malik/IOT-Pi3-Alexa-Automation/issues/11#issuecomment-445472424, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1FGc8vMjyplVscCQkq4J5oRObDUeF3ks5u2-zVgaJpZM4UxWDP .

GadgetAngel commented 5 years ago

see see #20, for a solution and/or #16

If you are getting the tuple problem use may be using the python and not python3 to run your script