iot-smart-home-cloud | Sample project using Cloud IoT Core and the Google Assistant | GCP library
kandi X-RAY | iot-smart-home-cloud Summary
kandi X-RAY | iot-smart-home-cloud Summary
Sample project using Cloud IoT Core and the Google Assistant
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of iot-smart-home-cloud
iot-smart-home-cloud Key Features
iot-smart-home-cloud Examples and Code Snippets
Community Discussions
Trending Discussions on iot-smart-home-cloud
QUESTION
I have this issue open on github for 10 days: https://github.com/GoogleCloudPlatform/iot-smart-home-cloud/issues/20
I can see the devices registered in the firestore(look photo below), but they do not appear on the mobile screen or in the Angular/web application. In the latter case, the devices are correctly registered in the GCP/Cloud Iot Core Api/PubSub.
I already registered 1 device using the tutorial below, which also does not appear http://nilhcem.com/iot/cloud-iot-core-with-the-esp32-and-arduino
How to solve?
...ANSWER
Answered 2020-Aug-31 at 18:08The Device Manager sample app you are working with registers the data scanned from a device QR code to the pending
Firestore collection until until the backend can establish that the data provided matches an existing valid device in Cloud IoT Core (see the relevant code).
If you are able to successfully register a device to pending
but it's never removed from that collection, then the issue is in that code path somewhere. The cloud function logs should provide some insight into why your code is failing there (e.g. invalid credentials, bad configuration, etc.)
You might also find this blog post helpful, which overviews the architecture of the sample code's use case.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iot-smart-home-cloud
Select or create a new project in the Google Cloud Console.
Visit the Cloud IoT Core page to enable the API.
Follow these instructions to create a device registry and a new device entry. When creating a new device entry, generate an ES256 key. You can find details on creating an ES256 key pair here. Use device-events as the Default telemetry topic.
Save the project values as environment variables so you can use them later on: $ export PROJECT_ID=my-project $ export REGION=us-central1 $ export REGISTRY=my-registry $ export DEVICE_ID=my-device $ export PRIVATE_KEY_FILE=./ec_private.pem
Visit the Firebase console and click Add Project from the dashboard. Choose the name of your existing Google Cloud project under Project name, then select Add Firebase.
Navigate to the Actions console. Choose the name of your existing Google Cloud project under Project name, then select IMPORT PROJECT. Choose Home control, followed by Smart home. Select Setup → Invocation and give your action a name. Create a unique client id and secret that you will assign to Google for use during smart home account linking. NOTE: These values enable the Google Assistant to identify itself to your action during account linking. This is not used to identify any particular user.
Navigate to the Actions console.
Select Add/import project.
Choose the name of your existing Google Cloud project under Project name, then select IMPORT PROJECT.
Choose Home control, followed by Smart home.
Select Setup → Invocation and give your action a name.
Create a unique client id and secret that you will assign to Google for use during smart home account linking. $ export CLIENT_ID=my-client-id $ export CLIENT_SECRET=my-client-secret
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page