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
72.4k stars 30.3k forks source link

Unable to change volume on yamaha musiccast #127639

Open sidgames5 opened 6 days ago

sidgames5 commented 6 days ago

The problem

I can't change the volume of my Yamaha Musiccast receiver. Home assistant correctly displays the current volume and i can mute it from home assistant but the volume slider does not work. I am able to change the volume using the Yamaha AV controller app and I found an API to change the volume that I included in the additional info section.

What version of Home Assistant Core has the issue?

core-2024.7.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Yamaha Musiccast

Link to integration documentation on our website

https://www.home-assistant.io/integrations/yamaha_musiccast/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I would open a PR but I am not familiar with the home assistant code. I have found these API requests to work:

Get status http://ip/YamahaExtendedControl/v1/main/getStatus Music info http://ip/YamahaExtendedControl/v1/netusb/getPlayInfo

Power on http://ip/YamahaExtendedControl/v1/main/setPower?power=on Power off http://ip/YamahaExtendedControl/v1/main/setPower?power=standby

Play http://ip/YamahaExtendedControl/v1/netusb/setPlayback?playback=play Pause http://ip/YamahaExtendedControl/v1/netusb/setPlayback?playback=pause Stop http://ip/YamahaExtendedControl/v1/netusb/setPlayback?playback=stop Next http://ip/YamahaExtendedControl/v1/netusb/setPlayback?playback=next Previous http://ip/YamahaExtendedControl/v1/netusb/setPlayback?playback=previous

Play http://ip/YamahaExtendedControl/v1/main/setVolume?volume=100 Mute http://ip/YamahaExtendedControl/v1/main/setMute?enabled=true

Input http://ip/YamahaExtendedControl/v1/main/setInput?input=hdmi1

home-assistant[bot] commented 6 days ago

Hey there @vigonotion, @micha91, mind taking a look at this issue as it has been labeled with an integration (yamaha_musiccast) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `yamaha_musiccast` 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 yamaha_musiccast` 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)


yamaha_musiccast documentation yamaha_musiccast source (message by IssueLinks)

micha91 commented 6 days ago

Unfortunately I cannot reproduce this issue in the current 2024.10 release. We are actually using the APIs described in the additional information (see here). So if that API call is working for you, it should also be working via HA, too.

@sidgames5 Have you tried to use the media_player.set_volume service via the developer tools? image

sidgames5 commented 6 days ago

I tried the service and that doesnt work. If it helps the model is Yamaha TSR-5810.

micha91 commented 5 days ago

That model should work.

Please update to the latest HA release, enable debug logging and provide the logging file.

sidgames5 commented 5 days ago

I am on the latest version of HA and i found this in the logs: Logger: homeassistant.components.yamaha_musiccast.coordinator Source: helpers/update_coordinator.py:386 integration: MusicCast (documentation, issues) First occurred: October 5, 2024 at 4:57:56 PM (1 occurrences) Last logged: October 5, 2024 at 4:57:56 PM

Error fetching yamaha_musiccast data: