google-home / smarthome-local

https://codelabs.developers.google.com/codelabs/smarthome-local
Apache License 2.0
28 stars 17 forks source link

Unable to debug with chrome:inspect #8

Closed chadstick closed 3 years ago

chadstick commented 4 years ago

I see my devices using chrome:inspect and I am able to successfully issue commands to GA devices, but I can't see any devices in my console and get the error pictured below.

image

devunwired commented 4 years ago

Please clarify at which step of the codelab you are seeing this error. Also, please clarify what you mean by "devices" in each of the instances above. Home/Nest device? Virtual device?

chadstick commented 4 years ago

I encountered this at step 8: "Debug the Typescript App." I meant that I could see my Google Home show up on the chrome:inspect page and the same GH recognizes the "start washer" command, but I am unable to see my virtual washer and its device id in the console.

devunwired commented 4 years ago

From the codelab steps:

You should see a list of devices on the page and your app URL should appear under the name of your Google Home device.

You indicated that you can see your Home device listed, but is your app URL also visible there with a blue "inspect" link? Is this how you entered the console when you saw that error?

Successfully sending commands means your cloud fulfillment is properly connected, but if you do not see the local app URL showing up in chrome://inspect then there is an issue loading the local fulfillment code.

chadstick commented 4 years ago

Now I am unable to see my Home device listed via chrome://inspect. In the instructions it advises:

Important: If the URL does not appear, then unlink and relink the Actions on Google project, and then reboot your Google Home device. It can take up to 20 minutes for your settings in the Actions console to take effect.

How/where can I accomplish the unlink and relink step referenced above?

devunwired commented 4 years ago

Now I am unable to see my Home device listed via chrome://inspect.

If the Home device is not visible at all, this is not an issue with your project. Verify the devices are on the same local network. In some cases you may need to reboot Chrome on your development machine.

How/where can I accomplish the unlink and relink step referenced above?

You should only attempt this if you can see the Home device, but not the local app inspect link below it. This is the same process as described in the Link to Google Assistant section as part of Step 3. To unlink, you'll see your [test] app listed under Linked services instead.

Note that the 20 minutes referenced in the description is only the time it can take the first time you save your testing URL in the console to propagate to the devices.

proppy commented 3 years ago

Closing as obsolete.