nqkdev / home-assistant-vacuum-styj02ym

161 stars 134 forks source link

Install error #51

Open balintbuzasi opened 2 years ago

balintbuzasi commented 2 years ago

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:


vacuum:
  - platform: miio2
    host: 192.168.68.105
    token: !secret vacuum
    name: Mi hihi
dubilyer commented 2 years ago

same issue :/

kansson commented 2 years ago

Same issue.. anyone found a solution?

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

balintbuzasi commented 2 years ago

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

sguinea1989 commented 2 years ago

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 commented 2 years ago

@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?

sguinea1989 commented 2 years ago

@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.

https://github.com/nqkdev/home-assistant-vacuum-styj02ym/issues/49

iJAY86 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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

iJAY86 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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

balintbuzasi commented 2 years ago

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

iJAY86 commented 2 years ago

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

balintbuzasi commented 2 years ago

@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 commented 2 years ago

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

balintbuzasi commented 2 years ago

Did you do a restart?

BUZÁSI BÁLINT

MANAGING PARTNER

+36 20 325 8653

PROGRESSIVE

H-1024, Retek u. 33-35. 6. emelet

www.progressive.huhttps://progressive.hu/

Kérjük gondolj a fákra, mielőtt kinyomtatod ezt a levelet. Please consider the environment before printing this email.

Ez az elektronikus levél bizalmas, jogilag védett, üzleti titok típusú információkat tartalmazhat, és azokat kizárólag a címzett használhatja fel. Amennyiben nem Ön ennek a levélnek valós címzettje vagy ezt a levelet sérülten kapta meg, kérjük, haladéktalanul tájékoztassa erről a feladót (Progressive Bex Kft., @.***), és a levelet azonnal törölje rendszeréből. Az elektronikus levél engedély nélküli másolása, sokszorosítása, terjesztése, módosítása és nyilvánosságra hozatala szigorúan tiltott.

This e-mail may contain confidential and legally privileged, trade secret kind of information and should only be read solely by those persons to whom it is addressed. If you are not the intended recipient or have received this e-mail in error, please notify the sender (Progressive Studio Ltd., @.***), immediately and erase this e-mail from your system without delay. Any form of copying, dissemination, disclosure, modification, distribution and/or publication of this e-mail message without preliminary permission is strictly prohibited.


Feladó: iJAY86 @.> Elküldve: Sunday, November 14, 2021 5:14:17 PM Címzett: nqkdev/home-assistant-vacuum-styj02ym @.> Másolatot kap: Buzási Bálint @.>; Mention @.> Tárgy: Re: [nqkdev/home-assistant-vacuum-styj02ym] Install error (#51)

@balintbuzasihttps://github.com/balintbuzasi sadly I could not find that url in my core log.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/nqkdev/home-assistant-vacuum-styj02ym/issues/51#issuecomment-968320253, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARXBUDB32LMELUKSDI7TMW3UL7N5TANCNFSM5E5PAAGQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

iJAY86 commented 2 years ago

@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