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

Install error #51

Open
balintbuzasi opened this issue Sep 28, 2021 · 19 comments
Open

Install error #51

balintbuzasi opened this issue Sep 28, 2021 · 19 comments

Comments

@balintbuzasi
Copy link

I follow the insturcions, but I get error when trying to restart: Platform error vacuum.miio2 - Integration 'miio2' not found.
Where do I go wrong? :(

Home Assistant 2021.8.8

Install:

  • Create the following folder structure: /config/custom_components/miio2 and place all files there 4 files there.
  • Add the configuration to configuration.yaml, example:
vacuum:
  - platform: miio2
    host: 192.168.68.105
    token: !secret vacuum
    name: Mi hihi
@dubilyer
Copy link

dubilyer commented Oct 8, 2021

same issue :/

@kansson
Copy link

kansson commented Oct 11, 2021

Same issue.. anyone found a solution?

Ended up using this integration instead https://github.com/nergal/homeassistant-vacuum-viomi

@balintbuzasi
Copy link
Author

@essarn it works, but I cannot determine the zone coordinates... did it work for you?

@harbinger-boop
Copy link

harbinger-boop commented Oct 20, 2021

I had the same error - try adding the 4 files, restarting the hass server, then adding the lines to the config yaml, then restarting the hass server again :)

@balintbuzasi
Copy link
Author

@sguinea1989 it works now, thank's!
do you have any idea how to determine zone coordinates? Or can I send the vacuum to clean a pre-defined zone?

@harbinger-boop
Copy link

@balintbuzasi Unfortunately, this is as far as I got. With my set up, I ran into the below issue soon after, and can't get the integration to load properly. If the compatibility issue is resolved, I'll see if I can help you further.

#49

@iJAY86
Copy link

iJAY86 commented Oct 29, 2021

I had same issue. This is what I did:

  1. Create the following folder structure: /config/custom_components/miio2 and placed the 4 files as stated
  2. Go to configuration and click Check configuration in Configuration validation
  3. Then click restart in server management
  4. Once restarted, Add the configuration to configuration.yaml
  5. Then repeat steps 2 and 3.
    Hopefully it works for you as it did mine.

@balintbuzasi
Copy link
Author

@iJAY86 it worked for me as well.
But, do you have any idea how to determine zone coordinates? Or can I send the vacuum to clean a pre-defined zone?

@iJAY86
Copy link

iJAY86 commented Oct 31, 2021

@balintbuzasi I have not been able to get the zone cleaning working on mine, I'm still checking if I can get help anywhere.

@balintbuzasi
Copy link
Author

@iJAY86 , thank's I do the same, but no luck yet

@iJAY86
Copy link

iJAY86 commented Nov 8, 2021

@balintbuzasi, you can check out this link: https://www.youtube.com/watch?v=-UXL4a_fmOc&t=1194s for the zone cleaning, I have not tried it yet because my map stopped working, it is displaying "two factor auth required (see log)". I'm still trying to get my map to work. Let me know if the link helps.

@balintbuzasi
Copy link
Author

@iJAY86 , unfortunately not, because the map extractor works strange wit my mop, I can onlye get "strange" coordinates:
image

The solution for two factor auth is to look for an auth URL in the log, paste the URL to a browser. All you have to do is login on this URL, and everything will work fine :)

@iJAY86
Copy link

iJAY86 commented Nov 14, 2021

@balintbuzasi how did you get the url? please throw more light, I still struggling with this. Thanks.

@balintbuzasi
Copy link
Author

@iJAY86 it was in the logs: reboot your HA the go Supervisor -> System -> Core logs

@iJAY86
Copy link

iJAY86 commented Nov 14, 2021

@balintbuzasi There are a whole bunch of info there, what should I look out for?

@balintbuzasi
Copy link
Author

@iJAY86 somethint like this:

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: 8:45:59 PM (1 occurrences)
Last logged: 8:45:59 PM

Additional authentication required. Open following URL using device that has the same public IP, as your Home Assistant instance: https://account.xiaomi.com/identity/authStart?sid=passport&context=uTqPvO6apqW6eNzYVJGlecf1IdPlwCuf7s4kyGgAEEHJu8hAtr6hDE01YlWWNPJ1tlXWDxfLVW-XaF1FEclBzxl-WYSoMPDuPiSGPQu_kJfGzvjZ78EOMaHfXz9STWfcm2RxnfWkPN22ukly0MLQ-Q8YVb7lbyzW9ZiU7GNSlQGFHX1NKVBTa15-omitted last part for security

@iJAY86
Copy link

iJAY86 commented Nov 14, 2021

@balintbuzasi sadly I could not find that url in my core log.

@balintbuzasi
Copy link
Author

balintbuzasi commented Nov 14, 2021 via email

@iJAY86
Copy link

iJAY86 commented Nov 14, 2021

@balintbuzasi
Yes I did,
Log:
021-11-14 17:20:43 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2021-11-14 17:20:53 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2021-11-14 17:20:38 WARNING (SyncWorker_4) [custom_components.miio2.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.x.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants