0.0.98 • Published 2 months ago

@scrypted/google-device-access v0.0.98

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

Google Device Access Plugin for Scrypted

The Google Device Access Plugin allows you to import and control your Nest and Google devices from Scrypted.

Setup

Scrypted Cloud

Scrypted Cloud must be installed so Google can push device status changes to the plugin.

  1. Install the Scrypted Cloud plugin (@scrypted/cloud).
  2. Log in to Scrypted Cloud.

Google Account Creation

Follow steps at the link below to create your personal Google Device Access developer account Google Cloud developer account:

Google Cloud Setup

  1. Create a API & Services -> Credentials -> Create Credentials -> OAuth -> WebApplication with the following redirect URIs:
https://home.scrypted.app/web/oauth/callback
https://www.google.com
  1. Open the API Dashboard and enable the following APIs:
  • Smart Device Management API
  • Cloud Pub/Sub: You will come back to this again below.

Google Device Access Setup

  1. Create the project.
  2. Add the GCP client id.
  3. Note the pub/sub topic.

Scrypted Plugin Setup

  1. Enter the GDA project id, GCP client id, and GCP secret.
  2. Login.
  3. Note the pubsub url.

Google Cloud PubSub Setup

Create a pubsub push subscription and configure it using the previously noted GDA topic and Scrypted pubsub url.

Step by Step Guide Of The Above

  1. Browse to https://console.developers.google.com/apis/credentials
  2. In the top left bar, click the drop down
  3. Select 'New Project'
  4. Enter a project name eg NestScrypted
  5. Click 'Create'
  6. You will be taken back to the 'APIs and services' page
  7. In the top left bar, click the drop down and choose your newly created project
  8. You need to configure OAuth consent screen - click 'CONFIGURE CONSENT SCREEN' to the right of the page
  9. Select 'External' and click 'Create'
  10. Complete all mandatory fields
  11. Click 'Save and continue' for the next 3 screens
  12. Click 'BACK TO DASHBOARD'
  13. In the left column, select 'Credentials'
  14. At the top of the screen, click '+ CREATE CREDENTIALS'
  15. Choose 'OAuth client ID'
  16. From the drop down, choose 'Web application' as the application type
  17. Enter a name eg Scrypted OAuth
  18. Under 'Authorised redirect URIs' click '+ ADD URI' and enter https://home.scrypted.app/web/oauth/callback
  19. Click '+ ADD URI' and add https://www.google.com
  20. Make a note of the OAuth 'Your Client ID' and 'Your Client Secret' - these are to be entered into Scrypted plugin Google Device Access settings
  21. Click 'Create'
  22. On the left column, select 'OAuth consent screen'
  23. Scroll down to '+ ADD TEST USERS'
  24. Add your gmail email addresss as a test user
  25. In the left column click 'Enable APIs and services'
  26. At the top of the page, click '+ ENABLE APIS AND SERVICES'
  27. Search for 'Smart Device Management API'
  28. Click the result and select 'ENABLE'
  29. In the left column click 'Enable APIs and services'
  30. At the top of the page, click '+ ENABLE APIS AND SERVICES'
  31. Search for 'Cloud pub/sub api'
  32. Select 'Cloud pub/sub api'
  33. Click 'ENABLE'
  34. Browse to https://console.nest.google.com/device-access/project-list
  35. Create a project
  36. Enter a name for the project
  37. Click 'Next'
  38. Enter the OAuth Client ID from step 20 (the same details you recorded on the Scrypted plugin Google D9vice Access settings page)
  39. Select 'Enable' and click 'Create Project'
  40. Make a note of the Project ID - this is to be entered into Scrypted plugin Google Device Access settings page for Project ID
  41. Make a note of the 'Pub/Sub Topic'
  42. Go back to the Scrypte plugin and choose 'Login'
  43. Select your email address
  44. Select all the relevant devices you wish to access in Scrypted, wait for 10 seconds to allow any other options to become active to select
  45. Select 'Next'
  46. Choose your email account again
  47. Click 'Continue' when prompted even though the app has not been verified
  48. Click 'Continue' on the page stating 'scrypted.app wants to access your Google Account'
  49. Your new devices will be added to Scrypted.
  50. Now we need to setup the Google Cloud Pub/Sub - browse to https://console.cloud.google.com/cloudpubsub/subscription/list
  51. Click on ‘Create Subscription’
  52. In ‘Subscription ID’ field enter any value, eg ‘Scrypted’
  53. Click the drop down title ‘Select a Cloud Pub/Sub topic’
  54. Click on ‘ENTER TOPIC MANUALLY’
  55. Enter the noted pub/sub topic from step 42 and click 'Save'
  56. Change 'Delivery type' to Push
  57. Enter the URL from Scrypted Google Device Access Settings page (bottom box - 'Pub/Sub Address') in the 'Endpoint URL'
  58. Change ‘Message Retention’ to 1 hour rather than 7 days otherwise the system can get overloaded
  59. Click ‘Create’
0.0.98

2 months ago

0.0.97

10 months ago

0.0.96

1 year ago

0.0.95

2 years ago

0.0.94

2 years ago

0.0.90

2 years ago

0.0.91

2 years ago

0.0.92

2 years ago

0.0.93

2 years ago

0.0.84

2 years ago

0.0.85

2 years ago

0.0.86

2 years ago

0.0.87

2 years ago

0.0.88

2 years ago

0.0.44

2 years ago

0.0.89

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.80

2 years ago

0.0.81

2 years ago

0.0.82

2 years ago

0.0.83

2 years ago

0.0.73

2 years ago

0.0.74

2 years ago

0.0.75

2 years ago

0.0.76

2 years ago

0.0.77

2 years ago

0.0.78

2 years ago

0.0.79

2 years ago

0.0.70

2 years ago

0.0.71

2 years ago

0.0.72

2 years ago

0.0.62

2 years ago

0.0.63

2 years ago

0.0.64

2 years ago

0.0.66

2 years ago

0.0.67

2 years ago

0.0.68

2 years ago

0.0.69

2 years ago

0.0.61

2 years ago

0.0.59

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.55

2 years ago

0.0.56

2 years ago

0.0.58

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.36

2 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago