Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Haaska installation
- 1. copy haaska url from github:
- https://github.com/auchter/haaska.git
- 2. Open putty and from pi user:
- $ sudo apt-get update
- $ sudo git-clone https://github.com/auchter/haaska.git
- 3. Change to the haaska/config directory
- $ cd haaska/config
- 4. Rename the config.json.sample file
- $ mv cofig.json.sample config.json
- Edit the file to include your IP address:port and api password (for secured setups use your dns domain and port 443)
- Save it
- 5. Change back to haaska folder
- $ cd
- $ cd haaska
- 6. If necessary edit the makefile to run the install with pip3 instead of pip
- $ sudo nano makefile
- Edit the line for “pip” & change to “pip3” (in mine it was line 12)
- 7. Run the makefile
- $ sudo make
- 8. Copy zip file to your windows computer
- 9. Go to Amazon developers console -> Apps & services -> Logon with amazon
- 10. Create a new security profile. Note client id, client secret
- 11. Open a new tab -> go to amazon developers console again -> alexa –> alexa skills kit –> get started –> add a new skill
- 12. Select smart home API
- 13. Enter skill name (haaska)
- 14. Select V2
- 15. Save –> next
- 16. Note skill application id at top left under the skill name
- 17. In a new tab go to AWS.amazon.com –> sign in/create account –> asks for credit card but won’t get charged for normal use
- 18. Select N Virginia server
- 19. Select services tab –> compute –> lambda –> create a lambda function
- 20. In the filter enter ‘alexa’ –> pick the “alexa-smart-home-skill-adapter”
- 21. Enter the application id from (16) above
- 22. Click enable trigger -> next
- 23. In configuration section
- a. Enter skill name: has to be haaska
- b. Any description you want
- c. Select python 3.6
- d. Click upload and select the haaska.zip file created in (7) above
- e. handler: haaska.event_handler
- f. role: lambda_basic_execution (if it exists – if not: create a new role – in the IAM on the page that pops up:
- lambda_basic_execution – create a new policy & then click “allow” in the bottom right)
- g. next
- 24. click create function
- 25. at the top right of the next page copy the ARN #
- 26. go back to the developers console tab - in the configuration section select “north America” button & copy the ARN here
- 27. under account linking – authorization URL: https://www.amazon.com/ap/oa
- 28. enter client id & client secret from (10) above where appropriate
- 29. select client authentication scheme – credentials in request body
- 30. copy the redirect URLs. Go back to the AWS security (logon with amazon) tab & paste them into the redirect URLs in the section web settings
- 31. enter the Access Token URL: https://api.amazon.com/auth/o2/token
- 32. save –> next
- 33. ensure testing is enabled
- 34. go to the alexa app & click on skills –> your skills –> haaska –> enable skill -> you will need to enter your credentials
- 35. ensure that emulated_hue is disabled in configuration.yaml
- 36. hide any unwanted items from haaska
- haaska_hidden: true
- 37. forget all devices in the alexa app
- 38. discover all devices
- *** if using input_booleans you need to give it a “name:” otherwise discovery breaks ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement