Devices created with smart-home-java sample always offline - google-smart-home

I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?

As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline from a QUERY. You can also comment out or remove this line to debug the issue.

Related

React Native localhost Another debugger is already connected

Not sure if anyone had this problem, since I could not look it up anywhere but I cannot see any logs for react native app because the browser console tells me that "Another debugger is already connected" its a warning that keeps looping.
Metro bundler is telling me that I have to see the javascript logs in the browser. I cannot work on my app without debugging it, can anyone help ?
This happens if you have another tab opened at http://localhost:8081/debugger-ui as you can only have one instance of the debugger running.
You could either go back to the already running tab and see the logs there or close the other tab and refresh this one.

Oracle ADF - Redirect link is not working

I am developing a simple application using ADF comes with basic CRUD operations (create, read, update, delete). In this case, as you can see, I have dragged a link to the 1st column which is highlighted in yellow.
So whenever I deploy it and click that, it is supposed to redirect me to the Edit page where client will allow to make commit:
I did make sure the Action of link is associated with the Edit page (as highlighted in yellow above). However, the link wouldn't redirect me anywhere, no response.This is the unbounded task flow:
Okay so I have found out the solution. Due to the default setting, the application will be deployed on IE and this message will prompt out. As you can see, the message is mentioning about browser's compatibility. My IE is version 11.6, I'm not sure what's the issue here since my IE is kinda latest version but this message still pops out and affects the redirect link from working. However, simply copy the application URL to Google Chrome and run should fix this issue. Hope this helps in future.
If the two pages in the Unbounded Task Flow, then Add WildCard Control Flow Rule
and connect the two pages with the WildCard.
Or you can use the Popup instead of opening a new page for edit

Google Developer Console for Identity Toolkit is unavailable

Google's Identity Toolkit developer's console requires use of the "original console" when managing the API. I was using it with no issues for the past few days but starting yesterday it became unavailable.
Clicking on the "original console" link now brings up a mostly blank screen (only the general menu headers remain). If I go into the original console to manage other aspects and then click on "Identity Toolkit" then a yellow "Loading..." box appears but the screen doesn't change and the API console is not loaded.
If I go into another project I own I am able to get to the screen with no problem.
Has anyone else seen this or know of a work-around or solution?
I spent the past few days with Google Support - it's a bug in the console. They entered my configuration information for me.
They either fixed the bug or the act of entering the information was a sufficient work-around as I now have access to the console.

AngularJS app not saving data in IE 9,10 and 11

I have an application in AngularJS. We are about to launch it and QA just discovered that no data gets saved with IE versions 9,10 and 11. I see in network tab in console that the get request and post are sending the right data, but as soon as the user navigates away from the page and then goes back that data is no longer there. If the user logs out then logs back in the data displays correctly. In all other browsers there isn't any problem, only in IE 9,10 and 11.
Is there a plugin I need to be using to solve this? Anyone else ever have this problem and if so how to solve.
I solved this problem with Internet Explorer cacheing all the get requests by installing this module:
angular-cache-buster
If anyone else has this issue its an easy fix!!!

Google Glass Mirror Api Playground not inserting correctly

I have run the Glassware starter project and been able to add cards to my timeline and see them on my glass hardware. That site url is:
https://glass-java-starter-demo.appspot.com/
But when I go to the Mirror API Playground and follow the directions, authorizing and push the blue insert button, nothing gets inserted on Glass. I have waited as long as 12 hours and still nothing.
Further, something is being inserted as you can see in this API Console screen capture:
Does anyone have any suggestions, I have recreated my client id many times being very careful to include the javascript origin, I have tried making my client id set up look like the one in the cat demo project instructions. But no luck.
The playground gives no error and based on the console feedback I believe it is going somewhere just not to my glass hardware. Its supposed to insert into my glass hardware right? This is how we are supposed to test rendering of timeline items, correct?
I don't know why, but this can no longer be reproduced. One suggestion from Alain was to always start fresh in a new incognito window and to be sure you are logged in as the same user the glass hardware is registered with. My working Client Id has two "Redirect URIs" and one "JavaScript origins".

Resources