# Neato Botvac Binding

**URL:** <https://community.openhab.org/t/neato-botvac-binding/50406>\
**Category:** Bindings\
**Tags:** binding\
**Created:** [August 29, 2018, 9:50pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406 "2018-08-29T21:50:58Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![jensflorian](https://community.openhab.org/user_avatar/community.openhab.org/jensflorian/32/54039_2.png) [@jensflorian](https://community.openhab.org/u/jensflorian)\
**Post date:** [November 26, 2020, 11:50am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/41 "2020-11-26T11:50:30Z")

</div>

Welcome to OpenHab!  
I filed a bug and a fix has been merged and might be included in the next release: [[neato] Fixed NPE in discovery by J-N-K · Pull Request #8931 · openhab/openhab-addons · GitHub](https://github.com/openhab/openhab-addons/pull/8931)

---

<div class="post-metadata">

**Author:** ![Graad](https://community.openhab.org/user_avatar/community.openhab.org/graad/32/60880_2.png) [@Graad](https://community.openhab.org/u/Graad)\
**Post date:** [November 29, 2020, 11:08pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/42 "2020-11-29T23:08:36Z")

</div>

Awesome! Thanks a bunch for the info! 🤩  
So… a noob question: to get this change should I start using OpenHab 3? Or is there a way to upgrade just the openhab-addons only (or just the binding maybe)?

---

<div class="post-metadata">

**Author:** ![jensflorian](https://community.openhab.org/user_avatar/community.openhab.org/jensflorian/32/54039_2.png) [@jensflorian](https://community.openhab.org/u/jensflorian)\
**Post date:** [November 30, 2020, 7:14am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/43 "2020-11-30T07:14:18Z")

</div>

See this announcement: [openHAB 2.5.x Patch Releases - #263 by Kai](https://community.openhab.org/t/openhab-2-5-x-patch-releases/90248/263)  
I expect that the fix will be included.

Edit: Tested OH3M4 - Scan now runs without crashing, however doesn’t detect any bot (probably some relevant data are not found in the account). Did Neato change anything so this no longer works?

---

<div class="post-metadata">

**Author:** ![johannesbonn](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/b782af/32.png) [@johannesbonn](https://community.openhab.org/u/johannesbonn)\
**Post date:** [December 13, 2020, 8:18pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/44 "2020-12-13T20:18:08Z")

</div>

I have exactly the same problem with oh3 M5. After the scan…no results and I have no secret to add the cleaner manually.  
In earlier version (oh2) I made a scan for the thing to read the cleaner thing and after some days the cleaner thing changed to offline with the error message: Status: OFFLINE - COMMUNICATION\_ERROR Could not find robot\_serial for specified vendor\_name. Tried the same steps with no success for Oh3, can not find the cleaner thing with a scan.

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [December 24, 2020, 8:54am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/45 "2020-12-24T08:54:33Z")

</div>

Hello dear Neato owners.  
I was maintaining a fork of this binding, supporting Vorwerk vendor.  
This year Vorwerk switched to OAuth with a email confirmation, which broke my fork. As I see, Neato binding in its latest OH3 version offer no support for OAuth.  
Do you know whether this binding is still maintained actively or are you having same issues?  
BR Pav

---

<div class="post-metadata">

**Author:** ![jensflorian](https://community.openhab.org/user_avatar/community.openhab.org/jensflorian/32/54039_2.png) [@jensflorian](https://community.openhab.org/u/jensflorian)\
**Post date:** [December 27, 2020, 7:48am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/46 "2020-12-27T07:48:39Z")

</div>

Same problem with authentification, see

> <https://github.com/openhab/openhab-addons/issues/9392>
>
> \## Expected Behavior
> After starting "Scan" a neato:vacuumcleaner (in my case a …BotVac D7) should be added to the inbox.
> \## Current Behavior
> No item is created by scan although item can be created manually.
> 
> \## Possible Solution
> 
> Add Vacuumcleaner manually, this however requires a secret key (not implemented so far, see: https://github.com/openhab/openhab-addons/issues/4185 so you have to use external scripts such as pybotvac). 
> 
> 
> \## Steps to Reproduce (for Bugs)
> 
> 
> 1. Set up your cleaner with the neato app and have a working account at neatorobotics.com
> 2. Install neato binding and set up neato account and wait until account is online.
> 3. Set log to TRACE
> 4. Start search. In the UI nothing is added.
> 
> \`2020-12-15 20:05:51.575 \[DEBUG\] \[internal.handler.NeatoAccountHandler\] - Attempting to find robots tied to account
> 2020-12-15 20:06:06.582 \[DEBUG\] \[internal.handler.NeatoAccountHandler\] - Error when sending Authentication request to Neato.
> java.io.IOException: java.lang.InterruptedException
> at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:260) ~\[bundleFile:?\]
> at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~\[bundleFile:?\]
> at org.openhab.core.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~\[bundleFile:?\]
> at org.openhab.binding.neato.internal.handler.NeatoAccountHandler.sendAuthRequestToNeato(NeatoAccountHandler.java:125) ~\[bundleFile:?\]
> at org.openhab.binding.neato.internal.handler.NeatoAccountHandler.authenticate(NeatoAccountHandler.java:109) \[bundleFile:?\]
> at org.openhab.binding.neato.internal.handler.NeatoAccountHandler.getRobotsFromNeato(NeatoAccountHandler.java:92) \[bundleFile:?\]
> at org.openhab.binding.neato.internal.discovery.NeatoAccountDiscoveryService.findRobots(NeatoAccountDiscoveryService.java:56) \[bundleFile:?\]
> at org.openhab.binding.neato.internal.discovery.NeatoAccountDiscoveryService.lambda$0(NeatoAccountDiscoveryService.java:73) \[bundleFile:?\]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) \[?:?\]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) \[?:?\]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) \[?:?\]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) \[?:?\]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) \[?:?\]
> at java.lang.Thread.run(Thread.java:834) \[?:?\]
> Caused by: java.lang.InterruptedException
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1040) ~\[?:?\]
> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1345) ~\[?:?\]
> at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232) ~\[?:?\]
> at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:100) ~\[bundleFile:9.4.20.v20190813\]
> at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:685) ~\[bundleFile:9.4.20.v20190813\]
> at org.openhab.core.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:251) ~\[bundleFile:?\]
> ... 13 more\`
> 
> \## Context
> 
> 
> 
> \## Your Environment
> 
> \* OH3 RC1
> \* Safari
> \* OSX Catalina

@johannesbonn

> and I have no secret to add the cleaner manually.

Use an external script to obtain the secret. This one works for me

> **[GitHub - tomrosenback/botvac: PHP library for Neato Botvac](https://github.com/tomrosenback/botvac)**
>
> PHP library for Neato Botvac

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [December 28, 2020, 8:18pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/47 "2020-12-28T20:18:12Z")

</div>

I’ve updated my Vorwerk/Neato fork to OH3.0 and want to thank this binding’s developer and maintainer. I’d also like to share my thoughts on this binding (based on Vorwerk fork but assumingly applying to Neato):

- Vacuum Things _must_ have both `secret` and `serial` specified. In that case no Bridge is needed and Things can be created directly (via .things or UI). No further authentication is required.
- Because of this, the Bridge is strictly spoken unnecessary and is used for automatic detection only. In my fork I’ve implemented an automatic discovery using oAuth token. It must be entered instead of email / password and is used for obtaining vacuum list and getting their `secret` and `serial`
- For Vorwerk two simple `curl` commands are necessary to obtain the token. I assume similar script could be composed for Neato vacuums ([https://developers.neatorobotics.com/guides/oauth-flow](https://developers.neatorobotics.com/guides/oauth-flow)). This could be noted in readme for new users.
- Both Vorwerk and Neato are using the same API but different server. What are your thoughts on supporting Vorwerk?

You can find further info and full fork diff in my release notes [here](https://github.com/Pavion/openhab2-addons/releases/tag/3.1.0.202012271551).

---

<div class="post-metadata">

**Author:** ![jjlauterbach](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@jjlauterbach](https://community.openhab.org/u/jjlauterbach)\
**Post date:** [December 29, 2020, 12:47am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/48 "2020-12-29T00:47:57Z")

</div>

> [@Pavion](#):
>
> Both Vorwerk and Neato are using the same API but different server. What are your thoughts on supporting Vorwerk?

@Pavion - Please consider contributing your work to support Vorwerk to the Neato binding. I’m happy to work with you on verifying its works equally well for Neato and Vorwerk.

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [December 29, 2020, 3:47pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/49 "2020-12-29T15:47:15Z")

</div>

Thanks for your reply @jjlauterbach

Until now I’ve tried to stay low with my fork as I don’t have much time for a full-scale support. If I’m to contribute I do need a contact person on Neato side. I also have some questions you could perhaps help me with:

- this binding is Neato-centered, in an unofficial fork I’ve ignored it, but if merging “officially” many labels, descriptions and readme would have to be rewritten _[e.g. Neato/Vorwerk Binding]_. Would it pose a problem?
- I don’t think I can implement 2-factor-authentication myself and I’m not sure it’s really necessary. My proposal is using autodetection with provided oAuth token. I’d like some feedback on that.
- I _would_ need some support with Neato testing and - if possible - with supplying and testing a routine for obtaining oAuth Token from Neato.
- In any case I’d like just an additional pair of eyes to look (or frown) upon my changes and to dispute them.
- Can I contribute as @Pavion or is the real name policy still active? I’m rather fond of my alias 🙂.

BR Pav

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [December 29, 2020, 4:25pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/50 "2020-12-29T16:25:18Z")

</div>

I’ve now checked some Neato API and came to following solution for someone daring to test:

- call this URL:

```auto
https://apps.neatorobotics.com/oauth2/authorize?response_type=token&client_id=da77e826f90d2aaf5a5f008e988d6acd1f6bf4d9d770f745aeb079a706a6045d&redirect_uri=https://myapp.example.com/callback&scope=control_robots+maps&state=3fa5d15a3389c9ecc1da623ffb0c61c3

```

Note, this is a test app I’ve created with no action and dummy callback (you can also change it if you wish). Upon calling this URL you will have to authenticate yourself with Neato and allow this app to access your robots.

- a new browser window pointing at dummy URL

`https://myapp.example.com/callback`

will be opened. This URL will contain similar string:

```auto
access_token=123456789012345678901234567890123456789012345678901234567890123

```

Note this token.

- You can now call following `curl` command:

```auto
curl --location --request GET 'https://beehive.neatocloud.com/users/me/robots' \
--header 'Authorization: Bearer 123456789012345678901234567890123456789012345678901234567890123'

```

and you should see all your robots with their `serial` and `secret`.

_Edit: you can also use curl for Windows 10, please note its full path_

```auto
C:\Windows\SysWOW64\curl.exe --silent --request "GET" "https://beehive.neatocloud.com/users/me/robots" --header "Authorization: Bearer 123456789012345678901234567890123456789012345678901234567890123"

```

Note: this access can be revoked later and I’m not becoming any of your data (thus dummy callback). Still it’s up to you to try it out.  
Source documentation: [Neato oAuth](https://developers.neatorobotics.com/guides/oauth-flow), [Neato Beehive](https://developers.neatorobotics.com/api/beehive).

Hope to have helped!

---

<div class="post-metadata">

**Author:** ![jjlauterbach](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@jjlauterbach](https://community.openhab.org/u/jjlauterbach)\
**Post date:** [December 29, 2020, 10:58pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/51 "2020-12-29T22:58:32Z")

</div>

@Pavion - What is the expiration period for the tokens you are retrieving? If they expire too quickly, it will be tedious for users to continually have to grab a new token through through one of the user auth grant types. Ideally Neato would provide a grant type that is more suitable for machine to machine usage such as client credentials.

I have not seen any issues yet with the current auth mechanisms in the neato binding which uses a sessions url that I believe the neato UIs use as well.

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [December 30, 2020, 6:16am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/52 "2020-12-30T06:16:19Z")

</div>

As already stated here: you _only_ need a token once for autodiscovery (for obtaining `serial` and `secret`). After that it is not needed anymore (ever). My proposal was addressing following issue:

> [@Neato Botvac Binding](https://community.openhab.org/t/neato-botvac-binding/50406/46):
>
> Same problem with authentification, see [https://github.com/openhab/openhab-addons/issues/9392](https://github.com/openhab/openhab-addons/issues/9392)@johannesbonn and I have no secret to add the cleaner manually. Use an external script to obtain the secret. This one works for me [https://github.com/tomrosenback/botvac](https://github.com/tomrosenback/botvac)

---

<div class="post-metadata">

**Author:** ![jjlauterbach](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@jjlauterbach](https://community.openhab.org/u/jjlauterbach)\
**Post date:** [December 31, 2020, 1:20pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/53 "2020-12-31T13:20:12Z")

</div>

Got it. Thanks Pavion.

I have not yet seen any issues with the auth mechanism to retrieve the token. Perhaps they have forced oauth for some accounts but not all or perhaps its only enforced with Vorwerk accounts right now.

I just upgraded to OH3 and I did hit one issue with account discovery but I’ve fixed it and created a PR to incorporate into OH. See [[neato] NPE on discovery · Issue #9561 · openhab/openhab-addons · GitHub](https://github.com/openhab/openhab-addons/issues/9561)

If Neato does in fact force users to use oauth authentication, then I think your method of retrieving a token and manually configuring that with the bridge to allow discovery seems good enough. Ideally Neato would better support machine to machine use cases. I did have a email discussion with Neato Developers on this a few years ago. They did not seem to have any interest in support this but they did mention they may eventually support longer lived tokens but this was far down on their roadmap.

---

<div class="post-metadata">

**Author:** ![lavirott](https://community.openhab.org/user_avatar/community.openhab.org/lavirott/32/80100_2.png) [@lavirott](https://community.openhab.org/u/lavirott)\
**Post date:** [January 16, 2021, 11:18am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/54 "2021-01-16T11:18:47Z")

</div>

I have a problem with the neato binding.If I program the robot to start at a given time with the Neato Android Mobile Application and the Openhab Neato binding is active, then the start message is well received by the robot (little ring), but the cleaning stops instantly.  
If I deactivate the neato binding, everything goes normally and the robot starts and clean the house  
Am I the only one to have this problem?  
I also confirm that the binding is correctly configured and allows me to control my Botvac D3 robot from Openhab (which is now my only way to control it when the binding is active).

---

<div class="post-metadata">

**Author:** ![NCO](https://community.openhab.org/user_avatar/community.openhab.org/nco/32/55938_2.png) [@NCO](https://community.openhab.org/u/NCO)\
**Post date:** [February 20, 2021, 7:26am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/55 "2021-02-20T07:26:01Z")

</div>

I use successfully the Neato binding, but have troubles getting the map.  
See here please:

> [@Neato BotVac Vacuum Cleaner Widget for HABPanel](https://community.openhab.org/t/neato-botvac-vacuum-cleaner-widget-for-habpanel/60994/14):
>
> I used your script before (on OH2.5), and on OH3 I wanted to revive it. So I installed pybotvac and imported the robot. But when I run get last map I get: openhabian@homer:~/pybotvac $ python3 /etc/openhab/scripts/neato-botvac-getlastmap.py Traceback (most recent call last): File "/etc/openhab/scripts/neato-botvac-getlastmap.py", line 12, in \<module\> account = Account(email, password) TypeError: \_\_init\_\_() takes 2 positional arguments but 3 were given The script looks like (and worked…

I tried to move to OAuth, but don’t know what to set as Redirect URI

Did anyone make the map download work?  
Wouldn’t it be awesome to integrate this feature into the binding 😉

Thanks in advance

EDIT:  
Never mind - I solved it myself (see other thread).

---

<div class="post-metadata">

**Author:** ![Sten](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@Sten](https://community.openhab.org/u/Sten)\
**Post date:** [March 22, 2021, 12:28pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/56 "2021-03-22T12:28:07Z")

</div>

Hi, I’m asking, this issue isn’t fixed until now - right?

I have the same issue with OH 2.5:

- Version: openHAB 2.5.12-1
- Neato Account is “online”
- Searching for things: [Nothing] (the Robot Botvac D6 is not found)
- Add Manually: … I don’t have a secret ☹

Log Outputs:

```auto
org.openhab.binding.neato.internal.discovery.NeatoAccountDiscoveryService.addThing(NeatoAccountDiscoveryService.java:90) ~[?:?]

org.openhab.binding.neato.internal.discovery.NeatoAccountDiscoveryService.findRobots(NeatoAccountDiscoveryService.java:59) ~[?:?]

org.openhab.binding.neato.internal.discovery.NeatoAccountDiscoveryService.lambda$0(NeatoAccountDiscoveryService.java:73) ~[?:?]

```

I know, that this was working in early version of OH 2.5. So, how is this issue going on. Does anyone has information about that?

Thanks

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [March 29, 2021, 6:16pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/57 "2021-03-29T18:16:13Z")

</div>

Hi Sten and welcome to this forum! If you still haven’t found a solution, you may want to try my proposal from [Neato Botvac Binding - #50 by Pavion](https://community.openhab.org/t/neato-botvac-binding/50406/50) for obtaining your secret.  
If you have already resolved your issue, please consider to share your solution.  
_(if you’ve tried my solution already and received an ‘invalid scope’ error, i’ve fixed it above)_  
BR Pav

---

<div class="post-metadata">

**Author:** ![Sten](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@Sten](https://community.openhab.org/u/Sten)\
**Post date:** [May 2, 2021, 11:23am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/58 "2021-05-02T11:23:47Z")

</div>

Hi, I’m not sure if I want to put in my authentication credentials in a non-offical Web-Page.

Can you please explain, what will be the difference between the Link posted on [Neato Botvac Binding - #50 by Pavion](https://community.openhab.org/t/neato-botvac-binding/50406/50) and a Phishing-Page?

---

<div class="post-metadata">

**Author:** ![Pavion](https://community.openhab.org/user_avatar/community.openhab.org/pavion/32/15602_2.png) [@Pavion](https://community.openhab.org/u/Pavion)\
**Post date:** [May 2, 2021, 12:03pm UTC](https://community.openhab.org/t/neato-botvac-binding/50406/59 "2021-05-02T12:03:39Z")

</div>

Hi @Sten, I appreciate your healthy skepticism 🙂  
You can reproduce it by yourself:

- create a dev account [https://developers.neatorobotics.com/](https://developers.neatorobotics.com/)
- create a dummy app with [control\_robots] + [maps] scope
- voilà

BR Pav

---

<div class="post-metadata">

**Author:** ![Sten](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@Sten](https://community.openhab.org/u/Sten)\
**Post date:** [May 10, 2021, 7:57am UTC](https://community.openhab.org/t/neato-botvac-binding/50406/60 "2021-05-10T07:57:58Z")

</div>

Hi Pavion,  
thanks a lot for your dedication. But this solution doesn’t convince me. The steps you’ve described is no evidence, that the app you’ve created wouldn’t save my authentication credentials.

I’m sorry, I will not try your suggestion.  
KR Sten

[Previous page](https://community.openhab.org/t/neato-botvac-binding/50406.md?page=2)

[Next page](https://community.openhab.org/t/neato-botvac-binding/50406.md?page=4)
