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

Can not retrieve xiaomi map #213

Closed
wajo666 opened this issue Jan 1, 2022 · 14 comments
Closed

Can not retrieve xiaomi map #213

wajo666 opened this issue Jan 1, 2022 · 14 comments

Comments

@wajo666
Copy link

wajo666 commented Jan 1, 2022

This error originated from a custom integration.

Logger: custom_components.xiaomi_cloud_map_extractor.camera
Source: custom_components/xiaomi_cloud_map_extractor/camera.py:288
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 21:04:58 (65 occurrences)
Last logged: 21:15:46

Failed to retrieve model

@derretro
Copy link

derretro commented Jan 1, 2022

Same here, the Xiaomi token extractor says „Unauthorized“. Seems like something was changed by Xiaomi. Probably only the EU/German servers are affected.

@tigger1972
Copy link

Same here!

@tars-domoticz
Copy link

Same error here (Spain). Token extractor says "Unable to get devices". I also think that Xiaomi has changed something.

@TTLucian
Copy link

TTLucian commented Jan 1, 2022

Same here:

Logger: custom_components.xiaomi_cloud_map_extractor.camera
Source: custom_components/xiaomi_cloud_map_extractor/camera.py:288
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 18:13:00 (4737 occurrences)
Last logged: 23:11:39

Failed to retrieve model

@mateuszdrab
Copy link

mateuszdrab commented Jan 1, 2022

Here was me waiting all day to see if it resolves itself, glad to see I'm not the only one.
Xiaomi must have definitely made a change, during the time the component stopped working, I was also unable to get the map in the official app - this now works, but the component remains dead.


Logger: homeassistant.helpers.entity
Source: custom_components/xiaomi_cloud_map_extractor/camera.py:299
Integration: xiaomi_cloud_map_extractor (documentation, issues)
First occurred: 31 December 2021, 23:04:23 (4 occurrences)
Last logged: 18:10:59

Update for camera.xiaomi_cloud_map_extractor fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 193, in send
    data, addr = s.recvfrom(4096)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 193, in send
    data, addr = s.recvfrom(4096)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 193, in send
    data, addr = s.recvfrom(4096)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 699, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/xiaomi_cloud_map_extractor/camera.py", line 252, in update
    map_name = self._handle_map_name(counter)
  File "/config/custom_components/xiaomi_cloud_map_extractor/camera.py", line 299, in _handle_map_name
    map_name = self._vacuum.map()[0]
  File "/usr/local/lib/python3.9/site-packages/miio/click_common.py", line 187, in _wrap
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/miio/integrations/vacuum/roborock/vacuum.py", line 365, in map
    return self.send("get_map_v1")
  File "/usr/local/lib/python3.9/site-packages/miio/device.py", line 103, in send
    return self._protocol.send(
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 233, in send
    return self.send(
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 233, in send
    return self.send(
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 233, in send
    return self.send(
  File "/usr/local/lib/python3.9/site-packages/miio/miioprotocol.py", line 194, in send
    m = Message.parse(data, token=self.token)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 288, in parse
    return self.parse_stream(io.BytesIO(data), **contextkw)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 300, in parse_stream
    return self._parsereport(stream, context, "(parsing)")
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 1981, in _parse
    subobj = sc._parsereport(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 2439, in _parse
    return self.subcon._parsereport(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 4265, in _parse
    obj = self.subcon._parsereport(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 1981, in _parse
    subobj = sc._parsereport(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 312, in _parsereport
    obj = self._parse(stream, context, path)
  File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 2511, in _parse
    raise ConstError("parsing expected %r but parsed %r" % (self.value, obj), path=path)
construct.core.ConstError: Error in path (parsing) -> header
parsing expected 8497 but parsed 47645

@tmjo
Copy link

tmjo commented Jan 2, 2022

Same for me.

@dth97410
Copy link

dth97410 commented Jan 2, 2022

Same fail for me

@Tamsy
Copy link

Tamsy commented Jan 2, 2022

The problem has already been reported here.

@Rhylthus
Copy link

Rhylthus commented Jan 2, 2022

Same ! Thanks.

@axcs axcs mentioned this issue Jan 2, 2022
@axcs
Copy link

axcs commented Jan 2, 2022

For those who do not want to wait for the official fix, a file is available here that corrects the situation for now #214

@PiotrMachowski
Copy link
Owner

Problem should be solved in v2.1.2

@tmjo
Copy link

tmjo commented Jan 3, 2022

Great! The new version seems to have solved the issue for me. Thanks!!

@wajo666
Copy link
Author

wajo666 commented Jan 3, 2022

Worked for me, thanks

@mateuszdrab
Copy link

Confirmed working here too, thank you for a quick fix @PiotrMachowski

Szczęśliwego Nowego Roku!

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