wpietri / sucks

Simple command-line script for the Ecovacs series of robot vacuums
GNU General Public License v3.0
281 stars 104 forks source link

Alexa skill for Deebot N79 #30

Closed jojo3632 closed 6 years ago

jojo3632 commented 6 years ago

Hi,

Can someone help to provide instructions to use this code with Alexa, as an Alexa custom skill, including instructions with speech utterances and Lambda function?

Thanks, Jordan.

wpietri commented 6 years ago

Hi, Jordan! I personally can't, and since I'm the only person who reads these new issues, I think you're unlikely to find an answer. I see integrations like that as out of scope for this project, although it seems like a fine idea for some other project to do that using this as a library.

If that is beyond your skills, I'd suggest you find an Alexa-specific forum and post the request there.

bamminger commented 6 years ago

I've succesfully managed to run "sucks" in an Alexa lambda function. @jojo3632 if you sill need help, reach out to me on twitter @bamminger

jojo3632 commented 6 years ago

Hi, that's great news. Can you publish the skill or provide me with the zipped files and instructions to do it myself?

bamminger commented 6 years ago

https://github.com/bamminger/ecovacs-aws

wpietri commented 6 years ago

Thanks, @bamminger! That's very cool. I'm not a Lambda user, so I don't totally get the issues here. But if there are ways that the library could be better for your use case and still work for the existing ones, I'd happily accept a pull request.

bamminger commented 6 years ago

There are 2 issues which prevent to use the original version.

  1. An AWS specific limitation which seems to make troubles with the underlying Crypto package. The only way we could avoid that is to make it possible to provide the hashed values directly or find an AWS compatible way for the hashing.
  2. The scheduled pinging. Calling the default connect method kept the script running due to the repetitive pinging. What's exactly the purpose of it? In my case the script has to end after I've called the Clean or Charge actions.
EtienneMD commented 6 years ago

I’ve got a working Alexa skill right now for my Deebot Slim 2. Converted to pycrypto to fix the encryption and I disconnect the XMPP client after I’ve sent a command to end the script. I would have to make a few modifications to the script before I could publish it. Would that be okay with you William? @wpietri

EtienneMD commented 6 years ago

https://github.com/EtienneMD/Alexa-Ecovacs Just pushed the code this morning. Sorry that took a while, I've got a newborn at home, he is only two weeks old! Let know if that works on your vac.