Open jenniferannegluck opened 5 years ago
well, it seems you have done everything correctly.
2.try creating a new device with a new name(one you have not used before)
On Thu, 27 Sep 2018 at 2:52 AM jenniferannegluck notifications@github.com wrote:
Ok -- so, I'm switching over to using sinric instead of the wemos switch code.
I think I followed all the steps. I logged in, copied the API, added two switches. Then I copied your switch code and modified it for my 2 devices. Compiled ok, and uploaded onto a WeMos D1 board. Also, I enabled sinric on alexa. I looked at my alexa and saw that my devices are there (with the name and comment that I typed into the sinric interface.)
I re-set WeMos so I could watch output (also, I changed serial output to 9600). Output shows that Wifi is connected and it is waiting for sinric commands...
I tell Alexa to turn on door and ..... nothing.... she says "Door isn't responding. Please check it's connection and power supply". Also, there is nothing written to the serial output.
When I hit test on the sinric interface the wemos prints out that it got the test.
I'm hoping it's a simple fix !!!!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kakopappa/sinric/issues/121, or mute the thread https://github.com/notifications/unsubscribe-auth/AHIM5p6SJEYyt14aYXkoSql5bqB2UjXmks5ue9sTgaJpZM4W7XhF .
I don't know if it was changing the name -- or being in the correct Alexa account that did the trick (or maybe both), but it is now working. I wonder if the wemo-switch wasn't working because I was in the wrong alexa account. Oh, well, doesn't matter now that I'm switched over to sinric. Thank you - thank you - thank you.
I am this close to getting you a beer... 2 more questions:
And a bonus question -- if you can answer--- I'll send you 2 beers
How would I get this to work for all the accounts on alexa? Do they all need sinric enabled?
I have not tried on two accounts. Try adding all devices to one account and check whether that works first. If not, create another sinric account and handle them
But, how do you associate it with the same device and API? One API key can be used on one or more devices. For an example, when you ask alexa to turn on/off a device, this command will be broadcasted all the connected devices that's using this API key (the account you used to Link Alexa Skill). If you have more than one device, you have to handle each device by device id. Here is an example https://github.com/kakopappa/sinric/blob/master/arduino_examples/light_example.ino#L25
If I have a second WeMos on the same wifi, do I use the same API key, or do I need another one? You can use the same API KEY. again you have to handle each device by device id.
Why does my Arduino IDE only upload to the WeMos once. If I make a change and try to upload again (no compilation errors) -- it says exit... error loading to board wemos. I have to reboot and then it uploads fine. (I turn McAffee off, so that is not it)
Not sure why. Could be a board issue. I do not have this problem.
Try updating to the latest version of Arduino / ESP framework
Use PlatformIO. (I use PlatformIO)
Ok -- so, I'm switching over to using sinric instead of the wemos switch code.
I think I followed all the steps. I logged in, copied the API, added two switches. Then I copied your switch code and modified it for my 2 devices. Compiled ok, and uploaded onto a WeMos D1 board. Also, I enabled sinric on alexa. I looked at my alexa and saw that my devices are there (with the name and comment that I typed into the sinric interface.)
I re-set WeMos so I could watch output (also, I changed serial output to 9600). Output shows that Wifi is connected and it is waiting for sinric commands...
I tell Alexa to turn on door and ..... nothing.... she says "Door isn't responding. Please check it's connection and power supply". Also, there is nothing written to the serial output.
When I hit test on the sinric interface the wemos prints out that it got the test.
I'm hoping it's a simple fix !!!!