Neato Integration needs to be reconfigured after updating HA from 2020.12.1 to 2021.1.1 ?!?

I was having the same problem until I followed dshokouhi’s suggestion listed above.

I opened a new browser window and in the address bar pasted in my external URL, I then logged into Home Assistant using my normal Home Assistant username and password. I was then able to add the Neato integration successfully.

I tried as you said,
I still have this problem of

An error has occurred
The redirection URL is not valid.

Here’s the URL I’m receiving that looks correct to me:
https://apps.neatorobotics.com/oauth2/authorize?response_type=code&client_id=470a19765962c765c33093ba517bed9c192d65aafxxxxxxxxxxxxxxx&redirect_uri=https://xxxxxxxxx.duckdns.org:8123/auth/external/callback&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbG93X2lkIjoiZTdkOWE2YTliMzQ5NDMzYjg4NmU3YjExNmM3ZWY0MTgiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2Rxxxxxxxxxxxxxxcy5vcmc6ODEyMy9hdXRoL2V4dGVybmFsL2NhbGxiYWNrIn0.8qYNuhGaZ_Y04eo-KSgBpYi4sxUBjtiqradgS868-xU&client_secret=a0b035905752e5293536d5298d6b3b92bbc61f7xxxxxxxxxxxxxxxxxxx&scope=public_profile+control_robots+maps

I am about to throw my Neato out the window.
What a waste of time for a stupid hoover when everything was working fine 2 weeks ago.

I’m sorry, that you have these issues with your instance. It seems, that HA prefers the internal URL in your case. For the moment you could set your internal URL to the one with https to setup your robot. Switch it back afterwards. This should be fine.

EDIT:

I did some research. In fact HA chooses the current URL to build the redirect URI upon:

Therefore you can solve your problem by setting up your integration via your external URL as @cletus said.

1 Like

i tried as @cletus said.
but I still have the same message:

An error has occurred
The redirect URL is not valid.

my url when I run the first request for the Neato integration is strange.

https://apps.neatorobotics.com/oauth2/authorize?client_id=470a19765962c765c33093ba517bed9c192d65aafc51cca0cd2883c30826eac5&client_secret=a0b035905752e5293536d5298d6b3b92bbc61f70567fae5452f062603b6f03e6&redirect_uri=https%3A%2F%2Fdixxxxur.duckdns.org%3A8123%2Fauth%2Fexternal%2Fcallback&response_type=code&scope=public_profile+control_robots+maps&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbG93X2lkIjoiNTU0ZTE5ODU0NDYzNDRmMzg4NTllNTVhZTQwNDc1ZWMiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2RpZHNlcnZldXIuZHVja2Rucy5vcmc6ODEyMy9hdXRoL2V4dGVybmFsL2NhbGxiYWNrIn0.YERyPbw7POkT03sepPeFnNFi9lDGImCPqtDChhXhgw0

I’m new to the world of Home assistant, I don’t know anything.
Thank you for your help.
I hope we will find a solution because there, I do not understand anything. why is it right with me that it does not work?

As you can see, it has now changed the redirect_uri part to

https%3A%2F%2Fdixxxxur.duckdns.org%3A8123%2Fauth%2Fexternal%2Fcallback

which is the encoded form of

https://dixxxxur.duckdns.org:8123/auth/external/callback

Am I right that your instance is available via this URL and you used this URL to set up your application at https://developers.neatorobotics.com/ ?
Please double check, that you used exactly this URL there.

And please remove the client_secret from your post as we should not know that :wink:

the strange url appears after emptying the firefox cache.
when I redo the request without clearing the cache, this is how it is written: c30826eac5 & redirect_uri = https: //di.duckdns.org: 8123 / auth / external / callback & state = eyJ0eXAiOiJKV1QiLCJhbGciOiJI

I do not know why

Miracle, I copy paste your link: https://dixxxxur.duckdns.org:8123/auth/external/callback on https://developers.neatorobotics.com/applications and now it works !!!
thank you very much for your help :wink:

1 Like

Maybe go back to the Neato Developer Network page, delete your app and create a new one. This will give you a new Client ID and Client Secret. Enter the new ID and Secret into your Configuration.yaml

I don’t know if the Client ID and Client Secret are in any way tied to the external URL, but it’s worth a try.

This video helped me to get duckdns setup. https://www.youtube.com/watch?v=AK5E2T5tWyM

thank you to you Santobert and to you Cletus !! it works

Having issues with the same integration…
Callback:
https:// ***************** .ui.nabu.casa/auth/external/callback
config.yaml has the following copy-pasted from the app created at ‘developers . neatorobotics . com’
#NEATO
neato:
client_id: 96c89248c37178bcba208a79e8e9c104************************* 33b
client_secret: d3097****************************************** cd33961591c6******

Defined scopes are
scopes:
public_profile
control_robots
maps

When authenticating i get the following error:

500 Internal Server Error

Server got itself in trouble

Respons is from:
’ https:// ****************** .ui.nabu.casa/auth/external/callback?code= *************************** 78004bc644555ebfd4d108&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmbG93X*****************jYWViOThmYTBmZWQiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2oyNDRmaTF4a2ZweHE3MG03ZjV2azYyd3ozaXc3aXVrLnVpLm5hYnUuY2FzYS9hdXRoL2V4dGVybmFsL2NhbGxiYWNrIn0.8RtLXo6U2T0Rl6HSW8jPNf4_w2QX7byTLJmPc2BPQDM ’

I have a working spotify integration with the same callback, so I don’t know why this is not working…

I got this working by adding the port number in the Neato Application setup

In the application setup I used: https://myname.duckdns.org:443/auth/external/callback

This resolved the redirect URL error for me.

Hi all,

I’m also trying to get this integration in place but not working, I have the Nabu Casa subscription and I’m not using duckdns, I have the provided nabu casa URL setup as my external URL and I’m getting the error that the redirection URL is not valid.

Not sure what I’ve misconfigured here, is the use of duckdns mandatory or the use of nabu casa allows not having to use duckdns?

Thanks

Hello,

Anyone able to advise on the above please?

Thanks

make sure you access home assistant using the nabu casa URL and not hte internal URL so it matches with the redirect when you setup the integration.

1 Like

Hi Dshokouhi,

That worked, thanks

this worked for me too! I came here with the same symptoms and frustration :slight_smile:

Hello,

sorry to re-open an old thread, but I just updated my HA installation after several months without any problem and now I get an issue with my Neato installation.

I followed all the hints above, but I still get the error message “The redirect uri included is not valid.”.

My external URL is reachable and I have used the new https://domain:port/redirect/oauth address to configure the Neato Dev App entry.

My internal and external URLs in HA are properly configured.

I see however that the link returned by HA when configuring the Neato integration contains this address ...redirect_uri=https://my.home-assistant.io/redirect/oauth&state=... which is strange.
Why that address and not the one I used in the Neato Dev App entry?

Thanks for any help.

1 Like

Same problem here on a fresh HA install.

Make sure you guys refer to the updated documentation and breaking changes mentioned in releases

I have solved the issue. :slight_smile:
I was trying to use my external link for the redirect, while it needs to be literally https://my.home-assistant.io!

2 Likes