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

error while loading media_player #6

Open
Sokwva opened this issue Sep 11, 2024 · 1 comment
Open

error while loading media_player #6

Sokwva opened this issue Sep 11, 2024 · 1 comment

Comments

@Sokwva
Copy link

Sokwva commented Sep 11, 2024

2024-09-11 16:33:10.969 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up qsys_qrc platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/qsys_qrc/media_player.py", line 45, in async_setup_entry
    await async_setup_entry_safe(hass, entry, async_add_entities)
  File "/config/custom_components/qsys_qrc/media_player.py", line 129, in async_setup_entry_safe
    get_controls_result = await core.component().get_controls(component_name)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/qsys_qrc/qsys/qrc.py", line 198, in get_controls
    return await self._core.call("Component.GetControls", params={"Name": name})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/qsys_qrc/qsys/qrc.py", line 151, in call
    result = await future
             ^^^^^^^^^^^^
custom_components.qsys_qrc.qsys.qrc.QRCError: {'code': -32601, 'message': 'Method not found'}

device is 110f.

@nkvoll
Copy link
Owner

nkvoll commented Jan 19, 2025

So it looks like it's failing listing the controls for the media player-like component you're trying to add. The error message from the core seems to indicate that there is no such method -- it's unclear to me whether it's trying to say that Component.GetControls cannot be found, or whether it's the specific media player. Can you confirm the component name in q-sys designer, the version you're running and the type of component on the Q-Sys side?

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

2 participants