# openHAB Integration

**URL:** https://community.garadget.com/t/openhab-integration/23
**Category:** SmartHome Integration
**Tags:** client-apps, integration, home-automation, openhab
**Created:** [March 14, 2016, 3:16am UTC](https://community.garadget.com/t/openhab-integration/23 "2016-03-14T03:16:24Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![BJU](https://community.garadget.com/letter_avatar_proxy/v4/letter/b/8e8cbc/32.png) [@BJU](https://community.garadget.com/u/BJU)
#### Post date: [January 5, 2019, 3:21pm UTC](https://community.garadget.com/t/openhab-integration/23/21 "2019-01-05T15:21:17Z")

</div>

Hi John,

would you mind to share your sitemap configuration, how you achieved such a clean overview as shown on [https://github.com/openhab/openhab1-addons/wiki/Garadget-Binding](https://github.com/openhab/openhab1-addons/wiki/Garadget-Binding) ?

---

<div class="post-metadata">

### Author: ![watou](https://community.garadget.com/user_avatar/community.garadget.com/watou/32/30_2.png) [@watou](https://community.garadget.com/u/watou)
#### Post date: [January 5, 2019, 5:55pm UTC](https://community.garadget.com/t/openhab-integration/23/22 "2019-01-05T17:55:45Z")

</div>

Glad you got the config sorted out!

I think the example items are similar to [here](https://community.garadget.com/t/openhab-integration/23/13?u=watou), and since all items were in the UI group, I had simply navigated into that group using the Classic UI and taken the screenshot there. In other words, this was the default item rendering for the items defined in the items file.

---

<div class="post-metadata">

### Author: ![gosmond](https://community.garadget.com/letter_avatar_proxy/v4/letter/g/76d3ee/32.png) [@gosmond](https://community.garadget.com/u/gosmond)
#### Post date: [May 11, 2019, 7:16pm UTC](https://community.garadget.com/t/openhab-integration/23/23 "2019-05-11T19:16:09Z")

</div>

Glad to see that Garadget finally got true off-line / no internet / no-cloud functionality via MQTT. I [posted a request for this in August 2016](https://community.garadget.com/t/using-garadget-without-an-internet-cloud-connection/284), my Garadget from the Kickstarter sale has been sitting on a shelf waiting. I’ll be integrating it with OpenHab 2.x sometime later this year.

---

<div class="post-metadata">

### Author: ![garadget](https://community.garadget.com/user_avatar/community.garadget.com/garadget/32/34_2.png) [@garadget](https://community.garadget.com/u/garadget)
#### Post date: [April 5, 2020, 12:02am UTC](https://community.garadget.com/t/openhab-integration/23/24 "2020-04-05T00:02:49Z")

</div>

For those interested in MQTT link, there is a [good discussion in OpenHAB forum](https://community.openhab.org/t/my-garadget-mqtt-openhab-setup/75092).

---

<div class="post-metadata">

### Author: ![lpcornel](https://community.garadget.com/user_avatar/community.garadget.com/lpcornel/32/1988_2.png) [@lpcornel](https://community.garadget.com/u/lpcornel)
#### Post date: [June 2, 2020, 7:01pm UTC](https://community.garadget.com/t/openhab-integration/23/25 "2020-06-02T19:01:06Z")

</div>

An issue with [particle.io](http://particle.io) still has not been resolved in openHab. Is anyone working on fixing the binding? I put a lot of work into this setup and hate to see it wasted. I do not wish to rewrite my whole setup for MQTT.

The binding is not generating a token and gives the same error, even after clearing the cache, and restarting openHab.

Next I completely uninstalled the binding, cleared the cache, then reinstalled the binding. Still no success.

```
   2020-06-01 14:26:19.329 [DEBUG] [binding.garadget.internal.Connection] - About to execute 'https://api.particle.io/oauth/token'

2020-06-01 14:26:19.679 [DEBUG] [binding.garadget.internal.Connection] - Method failed: HTTP/1.1 400 Bad Request

2020-06-01 14:26:19.681 [DEBUG] [binding.garadget.internal.Connection] - Body of response: {"error":"invalid_grant","error_description":"User credentials are invalid"}

2020-06-01 14:26:23.940 [ERROR] [b.core.service.AbstractActiveService] - Error while executing background thread Garadget Refresh Service

java.lang.NullPointerException: null

	at org.openhab.binding.garadget.internal.Connection.sendCommand(Connection.java:229) ~[?:?]

	at org.openhab.binding.garadget.internal.Connection.sendCommand(Connection.java:186) ~[?:?]

	at org.openhab.binding.garadget.internal.Connection.getDevices(Connection.java:154) ~[?:?]

	at org.openhab.binding.garadget.internal.GaradgetBinding.execute(GaradgetBinding.java:204) ~[?:?]

	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:146) ~[bundleFile:?]

	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169) [bundleFile:?]
```

---

<div class="post-metadata">

### Author: ![watou](https://community.garadget.com/user_avatar/community.garadget.com/watou/32/30_2.png) [@watou](https://community.garadget.com/u/watou)
#### Post date: [June 2, 2020, 7:30pm UTC](https://community.garadget.com/t/openhab-integration/23/26 "2020-06-02T19:30:25Z")

</div>

Particle must have changed their authentication API at some point. The binding has as you know the username and password but that probably went out of favour as too potentially insecure. I still have my Garadget device but no openHAB development environment setup. Could anyone isolate the API change that broke the binding? I would like the binding in a working state on case I put the device back into service. regards, John

---

<div class="post-metadata">

### Author: ![garadget](https://community.garadget.com/user_avatar/community.garadget.com/garadget/32/34_2.png) [@garadget](https://community.garadget.com/u/garadget)
#### Post date: [June 3, 2020, 4:43am UTC](https://community.garadget.com/t/openhab-integration/23/27 "2020-06-03T04:43:59Z")

</div>

Thanks for looking into this.  
Particle moved away from product specific authentication. I’ve provided and oAuth2 endpoint for community integrations. Please see more details in this post:

> [@401 in REST API Even With New Account](https://community.garadget.com/t/401-in-rest-api-even-with-new-account/7221):
>
> Hello, We are setting up a device in a test environment. We have successfully setup the device with multiple computers that make REST API calls to particle io. On April 1st we were running the same API call that worked many times in the past $ curl [https://api.particle.io/oauth/token](https://api.particle.io/oauth/token) -u particle:particle -d grant\_type=password -d “[username=joe@example.com](mailto:username=joe@example.com)” -d “password=SuperSecret” With our credentials, but we are new getting an error response: {“error”:“invalid\_grant”,“error\_descr…

[Previous page](https://community.garadget.com/t/openhab-integration/23.md?page=1)
