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

AugustLock - Smartthings #1

Open
Vicbanyan opened this issue Mar 18, 2018 · 51 comments
Open

AugustLock - Smartthings #1

Vicbanyan opened this issue Mar 18, 2018 · 51 comments

Comments

@Vicbanyan
Copy link

Installed AugustLock Conttroller in Smartthings. All I get is "Lock is waiting." any thoughts?

@curzondax79
Copy link

I just followed the instructions and after some trial and error, I did get it to work. I was stuck in the exact same spot as you. What ultimately got it to work for me was manually copying and pasting the correct offline key in my config.json file. When I typed it in manually, I must have made a mistake that I did not notice.

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 21, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 21, 2018 via email

@Vicbanyan
Copy link
Author

I have no luck, copy and pasted again. One question please, I have Comcast and for some strange reason I am unable to open ports, any port (have spent 48 days it seems on the phone with them with no results), does not being able to open ports, for example 80, effect the results.

@robson83
Copy link
Owner

@Vicbanyan can you please share details like:

  • Operating system
  • What's your node version
  • Your lock model

From there, I'll try to guide you. Comcast doesn't influence, as your computer will listen to the local network, not to the internet.

Usually, the problem is related to getting the correct offline key. How did you get it?

Thanks

@curzondax79
Copy link

curzondax79 commented Mar 21, 2018 via email

@Vicbanyan
Copy link
Author

Gentlemen you have caught me and I apologize. To say I am a beginner in doing this kind of stuff would be a gross exaggeration. I got into SmartThings after I retired and explore what I can do. i have downloaded several device drivers from GitHub (ie Nest) and to my great surprise they worked perfectly. Your questions regarding nodes, etc are beyond my feeble mind. I sincerely do not want you to spend much time and effort with me because it would show up pretty quickly how dumb I am about this things. Thanks again for your help and on to finding out what a node is. Vic

@curzondax79
Copy link

curzondax79 commented Mar 21, 2018 via email

@Vicbanyan
Copy link
Author

Congratulations and best of luck in the future. Now please do not forget my preamble from my last message but I am doing this on a Mac (os 10.13.3) not a raspberry pi. Told you I was a beginner.

@Vicbanyan
Copy link
Author

I did just start getting into the pi and if you think that is easier I can try.

@curzondax79
Copy link

curzondax79 commented Mar 21, 2018 via email

@Vicbanyan
Copy link
Author

I'm going to try to do it on the pi. May take a little while to get it set up, I can not thank you enough for your help and patients. Will be back to you soon and I clearly understand if you decide to raise the white flag and surrender. Thanks again, Vic

@Vicbanyan
Copy link
Author

great life's lesson:
We progress from process.

@curzondax79
Copy link

curzondax79 commented Mar 21, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 22, 2018

Will do, please feel free to give me a shout out if you need anything! Here's a summary of the things that I had the most difficulty with and how I solved it.

In installing node, I found the nvm install wasn't very necessary, nor was installing the version he recommended. In fact, I ended up installing node.js, which worked well for me. Follow the instructions on the following page. http://weworkweplay.com/play/raspberry-pi-nodejs/

When you install node.js like this and you try to run the server.js file, you'll get several error messages (or at least I did). This was due to a few components not being installed. I looked on the internet for installation instructions for each. In the end, all that was needed to install the missing components was apt-get install "name of missing component" I think there were about three or four things I needed to install. One had to do with my bluetooth setup, and I can't remember what the other ones dealt with. If you knock these out one by one, you should finally be able to run the server.js file

After I did this, this is the part I got to regarding my first reply. I did not have my config.json file right insomuch as I must have had a typo that I didn't see. I took the time to copy and paste the output from my android device to my config.json using putty from my windows pc to my raspberry pi. (Putty is the program I use to SSH from my computer to my raspberry pi to get a terminal on my windows pc so I don't have to be at a pi connected to my machine) Once the pi was set up correctly, I started seeing actual output on my screen from my json file and the smartthings app was working correctly with the lock.

If you launch this from a terminal window, it has to stay open for it to continue to listen to requests from smartthings. I'm going to get around this by eventually putting a startup command in at boot to launch this from the pi itself without a terminal window being opened, but I haven't done this yet.

I hope these instructions help you get through some of the hangups I had in installing this project. Also, thank you for liking my "We progress from process." quote. It's a Dr. Dan original!

Dr. Dan A.

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 22, 2018 via email

@Vicbanyan
Copy link
Author

Dan, process update, copy and pasted AugustLock Controller program into pi (Python 3) and have many syntax errors, trying to clean those up although it is difficult because Python is not a strength for sure. Node version is v4.8.2. Process continues hopefully followed by some progress.

@Vicbanyan
Copy link
Author

Dr Dan ... I fear I have reached the end of the road on this project. I finally got the syntax correct but then I got all sorts of statements like "no definition" and many more. I learned a lot and met a very nice Doctor in the process. Thanks again for your help and the very best in the future. Vic

@curzondax79
Copy link

curzondax79 commented Mar 23, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 23, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 23, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 23, 2018 via email

@Vicbanyan
Copy link
Author

No I only did the smartthings one, do you both?

@Vicbanyan
Copy link
Author

I did not do the august-api part, if that is required it is a little over my head for sure.

@curzondax79
Copy link

curzondax79 commented Mar 23, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

No worries!

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

so the next thing you'll probably run into is when you try to run nodejs server per the readme, it will return an error saying it can't find something. Let me know what it says.

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018

I just put the file in the augustctl directory. I've attached a screenshot of the launch command and some json output.
capture

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@curzondax79
Copy link

curzondax79 commented Mar 25, 2018 via email

@curzondax79
Copy link

As above, you've noted the link to the project is a bit broken. Here's the real link

https://github.com/robson83/augustlock-smartthings

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 25, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Mar 26, 2018 via email

@Vicbanyan
Copy link
Author

Dan, in closing out this project I wanted to thank you one more time for helping me. Your patience and understanding in dealing with my ignorance in this work was truly outstanding. I sincerely wish you the best in your career and if ever I'm in the area I'm definitely going to look you up and say hello. Vic

@curzondax79
Copy link

curzondax79 commented Apr 6, 2018 via email

@Vicbanyan
Copy link
Author

Vicbanyan commented Apr 6, 2018 via email

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

3 participants