PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.13k stars 122 forks source link

No RepositoryFile.MAINIFEST_JSON file found 'custom_components/xiaomi_cloud_map_extractor/RepositoryFile.MAINIFEST_JSON' #469

Closed philharmonie closed 10 months ago

philharmonie commented 10 months ago

Checklist

The problem

I try to install the repo using hacs. The UI gives me just "Unknown Error" and the logs give me:

2023-09-30 14:05:52.836 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2525935464] Error handling message: Unknown error (unknown_error) admin from 192.168.188.111 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 40, in hacs_repository_info
    await repository.update_repository(ignore_issues=True, force=True)
  File "/config/custom_components/hacs/utils/decorator.py", line 28, in wrapper
    result = await function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/repositories/integration.py", line 110, in update_repository
    if manifest := await self.async_get_integration_manifest():
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/repositories/integration.py", line 157, in async_get_integration_manifest
    raise HacsException(f"No {RepositoryFile.MAINIFEST_JSON} file found '{manifest_path}'")
custom_components.hacs.exceptions.HacsException: No RepositoryFile.MAINIFEST_JSON file found 'custom_components/xiaomi_cloud_map_extractor/RepositoryFile.MAINIFEST_JSON'

What version of an integration has described problem?

latest

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

vacuum.roborock_q8_max

What version of Home Assistant do you use?

Home Assistant 2023.8.4

What type of installation are you running?

Home Assistant Container

Camera's configuration

none yet

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

PiotrMachowski commented 10 months ago

This is a problem with HACS https://github.com/hacs/integration/issues/3228

philharmonie commented 10 months ago

Thank you @PiotrMachowski. After setting everything up fresh, it works. If you don't mind asking here: I used the Roborock app before. Now to generate the token with the token extractor, I needed to pair the vacuum with the Xiaomi Home app. Before that, the official roborock integration generates the vacuum entity. Now it's not working anymore. Even when I try to use the Xiaomi Integration it's not initialising the vacuum.

PiotrMachowski commented 10 months ago

You can't use both Roborock integration when you use Xiaomi Home. I suggest going back to Roborock application and using this integration - you won't have to use Map Extractor