home-assistant-vacuum-styj02ym icon indicating copy to clipboard operation
home-assistant-vacuum-styj02ym copied to clipboard

Install error

Open balintbuzasi opened this issue 2 years ago • 19 comments

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

balintbuzasi avatar Sep 28 '21 13:09 balintbuzasi

same issue :/

dubilyer avatar Oct 08 '21 16:10 dubilyer

Same issue.. anyone found a solution?

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

kansson avatar Oct 11 '21 22:10 kansson

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

balintbuzasi avatar Oct 12 '21 08:10 balintbuzasi

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 :)

sguinea1989 avatar Oct 20 '21 12:10 sguinea1989

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

balintbuzasi avatar Oct 23 '21 06:10 balintbuzasi

@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

sguinea1989 avatar Oct 23 '21 06:10 sguinea1989

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.

iJAY86 avatar Oct 29 '21 15:10 iJAY86

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

balintbuzasi avatar Oct 30 '21 15:10 balintbuzasi

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

iJAY86 avatar Oct 31 '21 08:10 iJAY86

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

balintbuzasi avatar Nov 04 '21 05:11 balintbuzasi

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

iJAY86 avatar Nov 08 '21 19:11 iJAY86

@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 :)

balintbuzasi avatar Nov 14 '21 09:11 balintbuzasi

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

iJAY86 avatar Nov 14 '21 14:11 iJAY86

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

balintbuzasi avatar Nov 14 '21 14:11 balintbuzasi

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

iJAY86 avatar Nov 14 '21 15:11 iJAY86

@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

balintbuzasi avatar Nov 14 '21 15:11 balintbuzasi

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

iJAY86 avatar Nov 14 '21 16:11 iJAY86

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.

balintbuzasi avatar Nov 14 '21 16:11 balintbuzasi

@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

iJAY86 avatar Nov 14 '21 16:11 iJAY86