home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.42k stars 30.66k forks source link

Squeezebox (LMS): call_query action slow to update results in player attributes #129880

Open ResteNarquois opened 2 hours ago

ResteNarquois commented 2 hours ago

The problem

Since upgrading to HA 2011.11.0b2 and above, using the squeezebox.call_query action sees a signfiicant delay (between 3-5 seconds) before results appear in the player's attributes (as query_result).

In versions prior to HA 2011.11.0, results appeared instantaneously. I have a number of scripts that make a sequence of query calls, and then work on the returned attribute before proceeding to the next call. These now only function with the addition of at least 5 seconds delay between action calls, making some of these scripts impractical.

I have restarted both the LMS and HA servers, and tested against different types of player.

What version of Home Assistant Core has the issue?

core-2024.11.0b5

What was the last working version of Home Assistant Core?

core-2024.10.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Squeezebox (Lyrion Music Server)

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/squeezebox

Diagnostics information

No response

Example YAML snippet

- alias: "Search for genre ids"
  action: squeezebox.call_query
  target:
    entity_id: media_player.study_touch
  data:
    command: genres
    parameters:
      - "0"
      - "50"

- alias: "Find menu id for 'My Bandcamp' item"
  action: squeezebox.call_query
  target: 
    entity_id: media_player.study_touch
  data:
    command: bandcamp
    parameters:
      - items
      - 0
      - 10

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 hours ago

Hey there @rajlaud, @pssc, @petes-uk, mind taking a look at this issue as it has been labeled with an integration (squeezebox) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `squeezebox` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign squeezebox` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


squeezebox documentation squeezebox source (message by IssueLinks)