Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve map data #180

Closed
PiotrasHASS opened this issue Nov 1, 2021 · 57 comments
Closed

Unable to retrieve map data #180

PiotrasHASS opened this issue Nov 1, 2021 · 57 comments

Comments

@PiotrasHASS
Copy link

Logger: custom_components.xiaomi_cloud_map_extractor.camera
Source: custom_components/xiaomi_cloud_map_extractor/camera.py:333
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 15:20:02 (1 occurrences)
Last logged: 15:20:02

Unable to retrieve map data

@PiotrMachowski
Copy link
Owner

Model?

@PiotrasHASS
Copy link
Author

PiotrasHASS commented Nov 1, 2021 via email

@PiotrMachowski
Copy link
Owner

Was it a single occurrence? Does the map work despite error? Please paste your config

@fi-sch
Copy link

fi-sch commented Nov 2, 2021

I also experience some problem with authentication. Not sure when it started, but it was working last friday for sure. I get following error in the HA log:

Logger: custom_components.xiaomi_cloud_map_extractor.common.xiaomi_cloud_connector
Source: custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py:86 
Integration: xiaomi_cloud_map_extractor (documentation, issues) 
First occurred: 17:35:42 (1 occurrences) 
Last logged: 17:35:42

Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance: https://account.xiaomi.com/xxxxxxx

When I try to open the page I get:
image
No content loading, unfortunately. I disabled AdGuard and other ad/content/privacy-blockers.

@pixeldublu
Copy link

I also experience some problem with authentication. Not sure when it started, but it was working last friday for sure. I get following error in the HA log:

Logger: custom_components.xiaomi_cloud_map_extractor.common.xiaomi_cloud_connector
Source: custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py:86 
Integration: xiaomi_cloud_map_extractor (documentation, issues) 
First occurred: 17:35:42 (1 occurrences) 
Last logged: 17:35:42

Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance: https://account.xiaomi.com/xxxxxxx

When I try to open the page I get: image No content loading, unfortunately. I disabled AdGuard and other ad/content/privacy-blockers.

Got the exact same issue...

@ZebastianBjorkqvist
Copy link

Im also having the same issue.
Disabled AdGuard and other ad blocking services, tried different browsers and devices.

@PiotrMachowski
Copy link
Owner

I have an idea for a potential fix, but it will take some time for me to implement it

@luka6000
Copy link

luka6000 commented Nov 2, 2021

same here. Two factor url is not working

@agustusbotti
Copy link

Same problem. After update to 2021.10.7 and OS 6.6

@LeandroIssa
Copy link

I also experience some problem with authentication. Not sure when it started, but it was working last friday for sure. I get following error in the HA log:

Logger: custom_components.xiaomi_cloud_map_extractor.common.xiaomi_cloud_connector
Source: custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py:86 
Integration: xiaomi_cloud_map_extractor (documentation, issues) 
First occurred: 17:35:42 (1 occurrences) 
Last logged: 17:35:42

Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance: https://account.xiaomi.com/xxxxxxx

When I try to open the page I get: image No content loading, unfortunately. I disabled AdGuard and other ad/content/privacy-blockers.

I have the same problem, the log link doesn't work and Xiaomi's page is blank.

Captura de tela 2021-11-03 021722
Captura de tela 2021-11-03 021704
Captura de tela 2021-11-03 021632

@mcfly2283-ai
Copy link

The Link is only working for short time. After try to catch the Link instantly after a reboot, it was possible to MFA to my phone. Also deactivated my AdGuard-Protection for that time, i dont know if it cares.

@fi-sch
Copy link

fi-sch commented Nov 3, 2021

The Link is only working for short time. After try to catch the Link instantly after a reboot, it was possible to MFA to my phone. Also deactivated my AdGuard-Protection for that time, i dont know if it cares.

Thanks, I will try that later today. Maybe I was not quick enough.

@sabouarthur
Copy link

sabouarthur commented Nov 3, 2021

After a hard reset of HA it comes back without any action from my side
image

@gogenzuller
Copy link

I have the same problem. Disabled adguard. Restarted HA. Refreshed the page with the log until a message appeared about the need to re-authorize. I immediately opened the link, got to the account confirmation page. Confirmed via sms. On the page I received the answer "OK". But in HA the error still remained, the map is not displayed and after restarting HA again requires to follow the link for autorize.

@sagitt
Copy link

sagitt commented Nov 3, 2021

same here.

@mcfly2283
Copy link

I have the same problem. Disabled adguard. Restarted HA. Refreshed the page with the log until a message appeared about the need to re-authorize. I immediately opened the link, got to the account confirmation page. Confirmed via sms. On the page I received the answer "OK". But in HA the error still remained, the map is not displayed and after restarting HA again requires to follow the link for autorize.

After that everything was fine to me...

@gogenzuller
Copy link

After that everything was fine to me...

Yes, it worked. It's just that my HA connects via VPN to Oracle VPS and it has different IP addresses for incoming and outgoing traffic. At first I tried to authorize from a VPS public IP for incoming connections, but it was necessary from an IP of HA host (for outgoing requests).

@rvalentinis
Copy link

Same here

@Rhylthus
Copy link

Rhylthus commented Nov 3, 2021

same here

@pixeldublu
Copy link

Ok... apparently link works ok just make sure no ad blocker is running :)

After link confirmation and HA restart. Works fine again!🥳

Thanks a lot! 👍

@diogodias24
Copy link

diogodias24 commented Nov 3, 2021

Same here. I copy paste the URL on logs after 2 minutes of reboot and it open the "Dicas" page.
Is there any way to deactivate 2nd factor on xiaomi just for diagnose porposes?

@sagitt
Copy link

sagitt commented Nov 3, 2021

open it on mobile phone.

@bellini666
Copy link

Hey guys,

Trying to make this work. I can open the link, validate my login through either phone or email, I get the "ok" screen, but nothing happens on HA. No matter if I wait for some time or force it to reload right after, it still presents me the "open this URL" log the next time it starts.

And yes, I'm on the same public ip as all of my devices.

@StWiesi
Copy link

StWiesi commented Nov 4, 2021

I have the same problem. Disabled adguard. Restarted HA. Refreshed the page with the log until a message appeared about the need to re-authorize. I immediately opened the link, got to the account confirmation page. Confirmed via sms. On the page I received the answer "OK". But in HA the error still remained, the map is not displayed and after restarting HA again requires to follow the link for autorize.

After that everything was fine to me...

worked also for me.

@Pivek
Copy link

Pivek commented Nov 4, 2021

Unfortunately, for me two-factor authentication doesn't work as well... I tried separately with link provided by token extractor. And same issue...

@gogenzuller
Copy link

gogenzuller commented Nov 4, 2021

Unfortunately, for me two-factor authentication doesn't work as well

Maybe you need to enable it in your account settings?
2021-11-04_14-36-15-433`

And yes, I'm on the same public ip as all of my devices.

To pass authorization you need:

  1. Check if two-factor authentication is enabled in your xiaomi account (I don't know if it's necessary or not)
  2. Disable ad blockers and other similar services on the device from which you will be authorized, which can change your ip or http request.
  3. Check the ip address of your browser, for example, on the website https://www.myip.com/
  4. Check the public ip address of your host with HA for example from the HA console or in SSH & Web Terminal add-on with the bash command curl ifconfig.me
  5. If the addresses match, go to the 'Configuration' > 'Server controls' > 'YAML configuration reloading' tab in the HA web interface and click the XIAOMI_CLOUD_MAP_EXTRACTOR button.
    You can just restart HA but it takes a long time.
  6. Immediately after that, check the log and follow the link from error massage. Apparently, the link works no more than 0.5-1.5 minutes, so this should be done quickly.
  7. After that, go through the confirmation of the account in any available way.
  8. After confirming, refresh the page with the map, it should appear almost immediately, but there will be no calibration points, so you need to restart HA, everything should work.

@cubedube
Copy link

cubedube commented Nov 4, 2021

hi gogenzuller

i just did all of your steps and still get no map. tried twice now :(

@gogenzuller
Copy link

i just did all of your steps and still get no map. tried twice now :(

Then I don't know how to help. It sound unbelievable, but maybe you have authorized the wrong xiaomi account?

@Pivek
Copy link

Pivek commented Nov 4, 2021

i just did all of your steps and still get no map. tried twice now :(

Then I don't know how to help. It sound unbelievable, but maybe you have authorized the wrong xiaomi account?

It all seems to be very strange. I was able to make that two-factor authentication month ago. Now I just repeated all these steps and simply no success.

@bellini666
Copy link

@gogenzuller just tried your exact steps and no success. It get the "ok" page after the login but after refreshing HA I still get the same log and no map :(

@JaCoLJcL
Copy link

JaCoLJcL commented Nov 4, 2021

I tried with chrome and allready logged to my xiaomi account and no use :/ I see a "Porady" / "Tips" page .... Hope to get quick fix !

@diogodias24
Copy link

8. esh the page with the map, it should appear almost immediately, but there will be no calibration points, so you need to restart HA, everything should work.

That got me further on the process.
I oppened the link in incognito mode really fast after restarting the HA, and successfully validate the 2nd factor. After that received a 'OK', but error persists (Two factor auth required(see logs)). even with a restart on HA and a full restart on host.
Any ideas?

@gogenzuller
Copy link

Try it without incognito mode

Repository owner deleted a comment from gogenzuller Nov 4, 2021
@bellini666
Copy link

It doesn't work at all. Tried other times, from my desktop (no incognito mode), from my cellphone. When validating my account tried either to receive the code from email and also from phone, with both works and sends me to a page with "ok" in it. Then going back to the map or even trying to restart HA doesn't do anything...

I can't even try anymore because xiaomi said I exceeded the number of times I can do that in 24h.

@agustusbotti
Copy link

Unfortunately, for me two-factor authentication doesn't work as well

Maybe you need to enable it in your account settings? 2021-11-04_14-36-15-433`

And yes, I'm on the same public ip as all of my devices.

To pass authorization you need:

  1. Check if two-factor authentication is enabled in your xiaomi account (I don't know if it's necessary or not)
  2. Disable ad blockers and other similar services on the device from which you will be authorized, which can change your ip or http request.
  3. Check the ip address of your browser, for example, on the website https://www.myip.com/
  4. Check the public ip address of your host with HA for example from the HA console or in SSH & Web Terminal add-on with the bash command curl ifconfig.me
  5. If the addresses match, go to the 'Configuration' > 'Server controls' > 'YAML configuration reloading' tab in the HA web interface and click the XIAOMI_CLOUD_MAP_EXTRACTOR button.
    You can just restart HA but it takes a long time.
  6. Immediately after that, check the log and follow the link from error massage. Apparently, the link works no more than 0.5-1.5 minutes, so this should be done quickly.
  7. After that, go through the confirmation of the account in any available way.
  8. After confirming, refresh the page with the map, it should appear almost immediately, but there will be no calibration points, so you need to restart HA, everything should work.

Worked for me, Thanks!

@Fannangir
Copy link

Same issue, the method above didn't work.
Receive ok message, but still no map :(.

@polo1469
Copy link

polo1469 commented Nov 5, 2021

Same issue, the method above didn't work for me.
Receive ok message, with two-factor authentication, but still no map :(

I have a roborock s7
HA Core version 2021.11.1 and supervisor version 2021.10.8

@kikofhm
Copy link

kikofhm commented Nov 5, 2021

I'm with the same problem. From couple days ago the map it's STOP working.

the card shows: "two factor auth required (see logs)"
I restart HA and in logs Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance: https://account.xiaomi.com/ident... sometimes the page only shows Mi logo and Tips but nothing more, othertimes I can get the login page fill the form receive the code to my email and the page shows "ok" in left upper corner"

in my mi account in 2 step auth menu it's disable...

@kaizersoje
Copy link

Same here

@baggein
Copy link

baggein commented Nov 6, 2021

I went through all the steps and got "Ok", but it still doesn't work ...

add: I restarted the kernel HA - and it did not work. I rebooted a fully computer with HA - and it still did not work. However, opening a window with a map in a couple of hours, I saw that the card ... works :)
Thanks.

@digitalit
Copy link

Following

@wanti00
Copy link

wanti00 commented Nov 7, 2021

Same problem, following

@vikdb
Copy link

vikdb commented Nov 7, 2021

The Link is only working for short time. After try to catch the Link instantly after a reboot, it was possible to MFA to my phone. Also deactivated my AdGuard-Protection for that time, i dont know if it cares.

This is the FIX!

@wanti00
Copy link

wanti00 commented Nov 7, 2021

it help to get map but vacuum card couldnt ger data for remaing time for bursh etc.

@PiotrMachowski
Copy link
Owner

@wanti00 this is a problem with vacuum card, not with this integration

@Fannangir
Copy link

Tried multiple times, from the phone as well.
Ends up with ok, but integration keeps the same message, unfortunately 😟

@PiotrMachowski
Copy link
Owner

@Fannangir have you tried reloading extractor domain after that?

@Fannangir
Copy link

I guess you mean XIAOMI_CLOUD_MAP_EXTRACTOR reload.
If this is the meaning, I did. After reload, same message appears, additional authentication required…

@Subia75
Copy link

Subia75 commented Nov 8, 2021

Hi, I also have the same problem since the upgrade to 2021.11 I tried a few times to authenticate but it does not load the map.

@dbloom86
Copy link

dbloom86 commented Nov 8, 2021

Hi, I have the exact same issue. Everything that is mentioned does not work. It has worked before, and it just stopped out of nowhere.

@stylab
Copy link

stylab commented Nov 9, 2021

following

@PiotrMachowski
Copy link
Owner

@stylab You can do it without adding comments
image

@stylab
Copy link

stylab commented Nov 9, 2021

@PiotrMachowski thanks for the info I did not know that :) always a great day when you learn something new :)

@PiotrMachowski
Copy link
Owner

Time for some cleaning up. There are 3 issues for the same problem (#157, #180, #181), so I will move all discussion to the first one: #157

Repository owner locked and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests