Google Nest Device Access Console now available

Can you confirm that you don’t have a thing called “Nest Device Access”?

Yes correct!

I now removed the “Nest Device Access” and also the “Nest Device Thermostat” Things, both was previously manually added by me because nothing was auto-discovered.

Now without them on PaperUI if I go trough discovery (scan icon on top right) and then select “Nest Device Access Binding” it doesn’t find anithing, nothing is discovered. Openhab.log shows nothing about thath.

I don’t know if is possible and/or useful to set a debug level for the binding to check

Of course my access data in nestdeviceaccess.cfg is OK

Just to be sure… I’m using you supplied Jar file from yesterday correct?

Thank you again

I use Zwave. Plenty of Smoke sensors are avaiable. Nest one has the best quality and features so far. I will be unhappy if it wolud be discontinued. So I hope you have right and it will appear in the API soon

I’m having a problem similar to McFLy:

==> /var/log/openhab2/openhab.log <==
2020-10-27 12:55:30.824 [ERROR] [nternal.DiscoveryServiceRegistryImpl] - Cannot trigger scan for thing types '[nestdeviceaccess:nest-device-access, nestdeviceaccess:nest-device-thermostat]' on 'nestdeviceaccessDiscovery'!
java.lang.NullPointerException: null
        at org.openhab.binding.nestdeviceaccess.internal.nesthelper.NestUtility.refreshAccessToken(NestUtility.java:155) ~[?:?]
        at org.openhab.binding.nestdeviceaccess.internal.discovery.nestdeviceaccessDiscovery.startScan(nestdeviceaccessDiscovery.java:139) ~[?:?]
        at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:209) ~[bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:382) [bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScans(DiscoveryServiceRegistryImpl.java:367) [bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:216) [bundleFile:?]
        at org.eclipse.smarthome.io.rest.core.internal.discovery.DiscoveryResource.scan(DiscoveryResource.java:97) [bundleFile:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) [bundleFile:?]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [bundleFile:?]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [bundleFile:?]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [bundleFile:?]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [bundleFile:?]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) [bundleFile:?]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) [bundleFile:?]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) [bundleFile:?]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [bundleFile:?]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.Server.handle(Server.java:494) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:426) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:320) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:158) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
^C
jolcese@NUC1:/etc/openhab2/services$ openhab-cli console

Logging in as openhab
Password:

                          __  _____    ____
  ____  ____  ___  ____  / / / /   |  / __ )
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
    /_/                        2.5.10-SNAPSHOT
                               Build #239

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

openhab> config:list "(service.pid=org.openhab.nestdeviceaccess)"
----------------------------------------------------------------
Pid:            org.openhab.nestdeviceaccess
BundleLocation: null
Properties:
   '# There is general project information for Google that must be provided in order to discover Nest products '# The configuration data is a per project configuration and can be changed by the user. '# A sandbox project created by Brian Higginbotham @BHigg was created and listed below for testing purposes only '# Use the project at your own risk for testing or create your own project through Google and enable the SDM APIs for individual use '# Note this project is limited in nature as a sandbox project to 30 API calls/min by Google. '# '# '#projectId is the Google project provided through the project creation process projectId =
   '#authorizationToken is used to authorize your devices with the project and provide the user with a unique refresh and first time access token. authorizationToken =
   '#clientId is the Google clientId for your application clientId =
   '#clientSecret is the Google clientSecret used to fetch the initial and refresh accessTokens clientSecret =
   '#refreshToken is used to get accessTokens from the application refreshToken =
   authorizationToken =
   clientId = xxx
   clientSecret = xxxx
   projectId = xxx
   refreshToken = xxx
   service.pid = org.openhab.nestdeviceaccess
openhab>

I have got the binding online, but the items don’t get updated, I’m not able to see anything in the logs.
Checking the console in GCP doesn’t seem that any refresh (60 sec) is reaching the service, (or maybe is not actually neither triggered), any suggestion on where I could be stuck?

2020-10-28 15:17:10.706 [DEBUG] [nal.thermostat.NestThermostatHandler] - Start initializing!

==> /var/log/openhab2/events.log <==

2020-10-28 15:17:10.725 [me.event.ThingUpdatedEvent] - Thing 'nestdeviceaccess:nest-device-thermostat:AVPHwEu6fqAeOYTLaWQKKwkI0v6uobdqa8ReX6HWx_7v7iY8OgdvsItb09X90qevSpIp_TF8N0MjMhOU9xjCkF3TXqqc4g' has been updated.

2020-10-28 15:17:10.734 [hingStatusInfoChangedEvent] - 'nestdeviceaccess:nest-device-thermostat:AVPHwEu6fqAeOYTLaWQKKwkI0v6uobdqa8ReX6HWx_7v7iY8OgdvsItb09X90qevSpIp_TF8N0MjMhOU9xjCkF3TXqqc4g' changed from ONLINE to UNKNOWN

2020-10-28 15:17:12.540 [hingStatusInfoChangedEvent] - 'nestdeviceaccess:nest-device-thermostat:AVPHwEu6fqAeOYTLaWQKKwkI0v6uobdqa8ReX6HWx_7v7iY8OgdvsItb09X90qevSpIp_TF8N0MjMhOU9xjCkF3TXqqc4g' changed from UNKNOWN to ONLINE

I worked with @McFly offline and got the binding working for him. Some of the issues dealt with configurations in the nestdeviceaccess.cfg file not being setup and there were some bugs in the JAR file that I posted that dealt with European localization for thermostats…

To summarize here:
Make sure that you have the configurations in Karaf (openhab-cli console.) This is done by placing the nestdeviceaccess.cfg and updating the “authorizationToken or refreshToken” (Not both, preference is refreshToken but if you only have an authorizationToken, you can use it..)

You can verify in Karaf with the following statement if the configurations are present:
config:list “(service.pid=org.openhab.nestdeviceaccess)”

If you do not have properties listed, then the nestdeviceaccess.cfg was not copied correctly into the services directory. You can add the properties manually but that is not recommended:
config:edit org.openhab.nestdeviceaccess
config:property-append projectId inputprojectId
config:property-append clientId inputclientId
config:property-append clientSecret inputclientSecret
config:property-append authorizationToken inputauthorizationToken
config:property-append refreshToken inputrefreshToken
config:update

You can verify the config it present again with the following command:
config:list “(service.pid=org.openhab.nestdeviceaccess)”

Also, you can enable debug logging on the binding for more information (Note: remove any token
information.. i.e. refresh or accessTokens when posting from the debug log..) If in doubt, you can send me a direct message :wink:

log:set DEBUG org.openhab.binding.nestdeviceaccess

I’ve made a series of changes to the binding as well:
HEATCOOL mode was not working as expected. This has been resolved
European localization for missing some JSON properties (Namely timerMode. Thank McFly for this one)

The new JAR is available here:

New code is here:

Hello Jose,
Can you make sure that you don’t have a thing called “Nest Device Access” or anything manually added? I may need to fix manual adds. I’ll look into this.. Also, enable debug on the binding and shoot over the logs..

It looks like this deals with getting the refreshToken during discovery. If set properly in Karaf, this should be OK. The debug log entries will help. Thanks

This issue happened with @McFly.. If it is the same issue, it dealt with the binding reading properties in the JSON that didn’t exist as a result of localization or configuration. In McFly’s example, he does NOT have a “timerMode” and the binding expected for it to be present. I fixed this bug in the latest binding by verifying the property exists before reading it..

Can you update to the latest binding JAR and retry. Worst case, enable debug logging and then shoot the exception over where the error occurred? Thanks

Thanks Brian!
I don’t have any thing added manually.

I tried the latest JAR and getting the same result even with DEBUG logs

11:33:01.185 [ERROR] [internal.DiscoveryServiceRegistryImpl] - Cannot trigger scan for thing types '[nestdeviceaccess:nest-device-access, nestdeviceaccess:nest-device-thermostat]' on 'nestdeviceaccessDiscovery'!
java.lang.NullPointerException: null
        at org.openhab.binding.nestdeviceaccess.internal.nesthelper.NestUtility.refreshAccessToken(NestUtility.java:162) ~[?:?]
        at org.openhab.binding.nestdeviceaccess.internal.discovery.nestdeviceaccessDiscovery.startScan(nestdeviceaccessDiscovery.java:139) ~[?:?]
        at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:209) ~[bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:382) [bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScans(DiscoveryServiceRegistryImpl.java:367) [bundleFile:?]
        at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:216) [bundleFile:?]
        at org.eclipse.smarthome.io.rest.core.internal.discovery.DiscoveryResource.scan(DiscoveryResource.java:97) [bundleFile:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) [bundleFile:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) [bundleFile:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) [bundleFile:?]
        at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [bundleFile:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [bundleFile:?]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [bundleFile:?]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) [bundleFile:?]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) [bundleFile:?]
        at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) [bundleFile:?]
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) [bundleFile:?]
        at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) [bundleFile:?]
        at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) [bundleFile:?]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [bundleFile:?]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.Server.handle(Server.java:494) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:426) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:320) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:158) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]

Working, perfectly!!
I had that “timerMode” entry on my log but was a “warning” and I just ignored it.

Hi All - Thanks for all the work put into this. I’m running openhab 3 (Windows, Java 11) and getting the below error.

12:33:18.889 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/C:/Openhab/addons/org.openhab.binding.nestdeviceaccess-2.5.5-SNAPSHOT%20(1).jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.nestdeviceaccess [239]
Unresolved requirement: Import-Package: org.eclipse.smarthome.config.core

    at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]

Thanks Daniel. I would need the entire stack bundle to be absolutely sure but I’m pretty sure this is a result of not running mvn clean install and having dependencies added for an openhab 3 instance.. I actually haven’t tested this binding against openhab 3 yet.. A todo for now..

I’ll see if I can get that going this weekend and report back..

Thank you very much!

If the code is stable/working now I can do that while adding it to the existing Nest Binding. :slight_smile:

Oh, that would be awesome. The thermostat code is good right now..

I just bought a Nest Hello and I’m going to get started on the doorbell class.. I already committed a teaser to the 2.5.x branch on my github that allows Nest Doorbells to be discovered and added as a thing.. Not much more than that right now because I need to get the eventing logic coded in the NestUtility class.

Great to hear… let me know if I can support testing

Thanks to everyone who is working on this! Dumb question I am sure- I am kindof a novice… but just to be safe: I’ve been avoiding migrating my old Nest account to Google because I was worried I might lose access should the old Nest binding become active again. Sounds like with recent changes, migrating the old Nest account to Google is now necessary to utilize this binding? I am hoping to have some time to devote to understanding/setting up the new binding this weekend, but haven’t attempted yet. Sounds like it could be beyond my skill level honestly but I would be really excited to get my thermostats working with OH.

The new SDM API implementation will be added to the existing Binding so you can still choose which one to use SDM or WWN. Not all features and devices are available in the new SDM API. So I think its best to only remove it when the WWN API is killed by Google or when the SDM API has feature parity.

I’ve now ported @BHigg’s code to OH3 and added it to my PR for adding the SDM API support in OH3:

There’s also a org.openhab.binding.nestdeviceaccess-3.0.0-SNAPSHOT.jar for those already on OH3.

I haven’t given it a lot of testing but I see the SDM Thing Types etc. :slight_smile: . Next I’ll start refactoring the code so it becomes part of the same binding as well as add some improvements and fix any errors I encounter.

Great news on the port… Hopefully the 3.0 JAR helps @Daniel101. I got the Pubsub notification working now.. I’m going to move the asynchronous refreshChannel polling, 60s, to Pubsub notifications (Near realtime updates.) The refreshChannel will still be used to handle Pubsub synch issues but this change will overhaul the property/channel settings to ensure the most updated values are set. The Pubsub was a requirement for event notification on camera and doorbell event processing. Once that is done, I should be able to move pretty quick on the Doorbell class.

More to come..

Dump the JAR file in and looks good. Now to setup my project. Thank you everyone!