Skip to content

dreame.vacuum.p2140o not working #607

@tankerktv

Description

@tankerktv

Checklist

  • I have updated the integration to the latest version available
  • I have checked if the problem is already reported

The problem

Hello!
Can't use this component :(
All info described below.

What version of an integration has described problem?

v.3.0.0-alpha3 and others (not alpha)

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

dreame.vacuum.p2140o

What version of Home Assistant do you use?

2025.3.4

What type of installation are you running?

Home Assistant OS

Camera's configuration

For non-alpha verisons:

camera:
  - platform: xiaomi_cloud_map_extractor
    host: 172.17.1.100
    token: token
    username: username
    password: password

logger:
  default: info
  logs:
    custom_components.xiaomi_cloud_map_extractor: debug

Errors shown in the HA logs (if applicable)

Регистратор: custom_components.xiaomi_cloud_map_extractor.coordinator
Источник: helpers/update_coordinator.py:380
интеграция: Xiaomi Cloud Map Extractor (документация, проблемы)
Первое сообщение: 23:09:01 (5 сообщений)
Последнее сообщение: 23:09:29

Unexpected error fetching xiaomi_cloud_map_extractor data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 281, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_cloud_map_extractor/coordinator.py", line 35, in update_data
    return await self.connector.get_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_cloud_map_extractor/connector/__init__.py", line 65, in get_data
    await self._get_map()
  File "/config/custom_components/xiaomi_cloud_map_extractor/connector/__init__.py", line 117, in _get_map
    await self._update()
  File "/config/custom_components/xiaomi_cloud_map_extractor/connector/__init__.py", line 84, in _update
    map_data, map_saved, map_raw_data = await self._vacuum_connector.get_map()
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_cloud_map_extractor/connector/vacuums/base/vacuum_base.py", line 78, in get_map
    map_name = await self.get_map_name()
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_cloud_map_extractor/connector/vacuums/vacuum_dreame.py", line 63, in get_map_name
    _key = response["result"]["out"][1]["value"]
           ~~~~~~~~~~~~~~~~~~^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Additional information

If I can give more useful information just tell me!

Thanks in advance!

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions