Giter Club home page Giter Club logo

Comments (6)

alryaz avatar alryaz commented on July 27, 2024

Метод авторизации по юзернейму с паролем интегрирован, однако с ним имеются определенные трудности, поэтому он является "не вырезанным тестовым функционалом".

По поводу того, что с Яндекс Станцией не удалось авторизоваться требуется полностью читать лог; при ошибке авторизации с Яндекс Станцией любая ошибка съедается (но не забывается). Если у Вас имеются конфиденциальные данные в логах, пришлите, пожалуйста, в Телеграмм: @alryaz.

from hass-yandex-music-browser.

empty-child avatar empty-child commented on July 27, 2024

У меня нет станции, я все провернул через авторизацию в аккаунт через интеграцию AlexxIT/YandexStation (и то только для токена) и больше ничего. Проблема как раз в подсовывании в Вашу интеграцию токена. Вроде вижу поле credentials в конфигах, но заполнение подполя x_token ни к чем не приводит

from hass-yandex-music-browser.

Evgeniy-Elo avatar Evgeniy-Elo commented on July 27, 2024

У меня тоже такая ошибка, пробовал переустанавливать интеграцию, не помогло.
Эта ошибка возникла в кастомной интеграции.

Logger: custom_components.yandex_music_browser.default
Source: custom_components/yandex_music_browser/default.py:100
Integration: Браузер Яндекс Музыки (documentation, issues)
First occurred: 10:53:37 (1 occurrences)
Last logged: 10:53:37

Default authentication failed: No credentials provided

и вот такая

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/yandex_music_browser/default.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:53:37 (1 occurrences)
Last logged: 10:53:37

[139804868138608] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/config/custom_components/yandex_music_browser/default.py", line 98, in async_get_music_browser
authentication = await async_authenticate_using_config_credentials(hass)
File "/config/custom_components/yandex_music_browser/default.py", line 51, in async_authenticate_using_config_credentials
raise YandexMusicBrowserAuthenticationError("No credentials provided")
custom_components.yandex_music_browser.media_browser.YandexMusicBrowserAuthenticationError: No credentials provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/media_player/init.py", line 1180, in websocket_browse_media
payload = await player.async_browse_media(media_content_type, media_content_id)
File "/config/custom_components/yandex_music_browser/patches/generic.py", line 138, in _patch_generic_async_browse_media
yandex_browse_object = await _patch_root_async_browse_media(
File "/config/custom_components/yandex_music_browser/patches/_base.py", line 19, in _patch_root_async_browse_media
music_browser = await async_get_music_browser(self)
File "/config/custom_components/yandex_music_browser/default.py", line 102, in async_get_music_browser
raise YandexMusicBrowserAuthenticationError(
custom_components.yandex_music_browser.media_browser.YandexMusicBrowserAuthenticationError: Could not authenticate with any of the provided patches

from hass-yandex-music-browser.

dronix27 avatar dronix27 commented on July 27, 2024

У меня тоже такая ошибка, пробовал переустанавливать интеграцию, не помогло. Эта ошибка возникла в кастомной интеграции.

Logger: custom_components.yandex_music_browser.default Source: custom_components/yandex_music_browser/default.py:100 Integration: Браузер Яндекс Музыки (documentation, issues) First occurred: 10:53:37 (1 occurrences) Last logged: 10:53:37

Default authentication failed: No credentials provided

и вот такая

Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/yandex_music_browser/default.py:102 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 10:53:37 (1 occurrences) Last logged: 10:53:37

[139804868138608] Error handling message: Unknown error (unknown_error) Traceback (most recent call last): File "/config/custom_components/yandex_music_browser/default.py", line 98, in async_get_music_browser authentication = await async_authenticate_using_config_credentials(hass) File "/config/custom_components/yandex_music_browser/default.py", line 51, in async_authenticate_using_config_credentials raise YandexMusicBrowserAuthenticationError("No credentials provided") custom_components.yandex_music_browser.media_browser.YandexMusicBrowserAuthenticationError: No credentials provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/media_player/init.py", line 1180, in websocket_browse_media payload = await player.async_browse_media(media_content_type, media_content_id) File "/config/custom_components/yandex_music_browser/patches/generic.py", line 138, in _patch_generic_async_browse_media yandex_browse_object = await _patch_root_async_browse_media( File "/config/custom_components/yandex_music_browser/patches/_base.py", line 19, in _patch_root_async_browse_media music_browser = await async_get_music_browser(self) File "/config/custom_components/yandex_music_browser/default.py", line 102, in async_get_music_browser raise YandexMusicBrowserAuthenticationError( custom_components.yandex_music_browser.media_browser.YandexMusicBrowserAuthenticationError: Could not authenticate with any of the provided patches

Поставил через Hacs версию main. Заработало. Возможно, глюк Хакса.

from hass-yandex-music-browser.

tjmaru avatar tjmaru commented on July 27, 2024

тоже пробовал поставить из main, мне не помогло.
но помогло вытащить токен напрямую из yandex_station интеграции

можете попробовать также
токен искать в файле .storage/core.config_entries

{
        "entry_id": "longid",
        "version": 1,
        "domain": "yandex_station",
        "title": "your_yandex_login",
        "data": {
          "x_token": "your_token", # <- your tokent copy it to the config
          "music_token": null,
          "cookie": "verylongstring"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": "your_yandex_login",
        "disabled_by": null
      }

here is config

yandex_music_browser:
  language: ru
  credentials:
    x_token: "put_your_token_here"
  menu_options:
    - new_releases
    - genres

from hass-yandex-music-browser.

futuro135 avatar futuro135 commented on July 27, 2024

Спасибо @tjmaru и @popsodav из другой ветке. У меня заработало!

from hass-yandex-music-browser.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.