Advertisement
finity69x2

Haaska installation in Home Assistant

Aug 7th, 2017
2,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. Haaska installation
  2.  
  3. 1. copy haaska url from github:
  4.  
  5. https://github.com/auchter/haaska.git
  6.  
  7. 2. Open putty and from pi user:
  8.  
  9. $ sudo apt-get update
  10. $ sudo git-clone https://github.com/auchter/haaska.git
  11.  
  12. 3. Change to the haaska/config directory
  13.  
  14. $ cd haaska/config
  15.  
  16. 4. Rename the config.json.sample file
  17.  
  18. $ mv cofig.json.sample config.json
  19. Edit the file to include your IP address:port and api password (for secured setups use your dns domain and port 443)
  20. Save it
  21.  
  22. 5. Change back to haaska folder
  23.  
  24. $ cd
  25. $ cd haaska
  26.  
  27. 6. If necessary edit the makefile to run the install with pip3 instead of pip
  28.  
  29. $ sudo nano makefile
  30. Edit the line for “pip” & change to “pip3” (in mine it was line 12)
  31.  
  32. 7. Run the makefile
  33.  
  34. $ sudo make
  35.  
  36. 8. Copy zip file to your windows computer
  37.  
  38. 9. Go to Amazon developers console -> Apps & services -> Logon with amazon
  39.  
  40. 10. Create a new security profile. Note client id, client secret
  41.  
  42. 11. Open a new tab -> go to amazon developers console again -> alexa –> alexa skills kit –> get started –> add a new skill
  43.  
  44. 12. Select smart home API
  45.  
  46. 13. Enter skill name (haaska)
  47.  
  48. 14. Select V2
  49.  
  50. 15. Save –> next
  51.  
  52. 16. Note skill application id at top left under the skill name
  53.  
  54. 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
  55.  
  56. 18. Select N Virginia server
  57.  
  58. 19. Select services tab –> compute –> lambda –> create a lambda function
  59.  
  60. 20. In the filter enter ‘alexa’ –> pick the “alexa-smart-home-skill-adapter”
  61.  
  62. 21. Enter the application id from (16) above
  63.  
  64. 22. Click enable trigger -> next
  65.  
  66. 23. In configuration section
  67.  
  68. a. Enter skill name: has to be haaska
  69. b. Any description you want
  70. c. Select python 3.6
  71. d. Click upload and select the haaska.zip file created in (7) above
  72. e. handler: haaska.event_handler
  73. f. role: lambda_basic_execution (if it exists – if not: create a new role – in the IAM on the page that pops up:
  74. lambda_basic_execution – create a new policy & then click “allow” in the bottom right)
  75. g. next
  76.  
  77. 24. click create function
  78.  
  79. 25. at the top right of the next page copy the ARN #
  80.  
  81. 26. go back to the developers console tab - in the configuration section select “north America” button & copy the ARN here
  82.  
  83. 27. under account linking – authorization URL: https://www.amazon.com/ap/oa
  84.  
  85. 28. enter client id & client secret from (10) above where appropriate
  86.  
  87. 29. select client authentication scheme – credentials in request body
  88.  
  89. 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
  90.  
  91. 31. enter the Access Token URL: https://api.amazon.com/auth/o2/token
  92.  
  93. 32. save –> next
  94.  
  95. 33. ensure testing is enabled
  96.  
  97. 34. go to the alexa app & click on skills –> your skills –> haaska –> enable skill -> you will need to enter your credentials
  98.  
  99. 35. ensure that emulated_hue is disabled in configuration.yaml
  100.  
  101. 36. hide any unwanted items from haaska
  102.  
  103. haaska_hidden: true
  104.  
  105. 37. forget all devices in the alexa app
  106.  
  107. 38. discover all devices
  108.  
  109. *** if using input_booleans you need to give it a “name:” otherwise discovery breaks ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement