-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Sony Bravia media player volume slider not working #26351
Comments
Hey there @robbiet480, mind taking a look at this issue as its been labeled with a integration ( |
@maartenpaauw If you have an amp connected, the slider won't work. Refer to the |
@schmittx I don't have an amp connected. I use the speakers from the television. |
@maartenpaauw have you resole the issue? I have the same |
No, unfortunately not. |
I can't set the volume nor switch the program. The rest is working fine. Any way to debug whats going on? |
I have the same issue. Slider isn't working to set volume. |
I also have the same problem, +/- buttons work but the slider doesn't. |
The problem resides in braviarc.py. We are sending a float and the tv is expecting an integer in string. 247 def set_volume_level(self, volume):
248 """Set volume level, range 0..1."""
249 self.bravia_req_json("sony/audio", self._jdata_build("setAudioVolume", {"target": "speaker",
- 250 "volume": volume * 100}))
+ 250 "volume": str(int(volume * 100))})) Now because of this #30964, I don't know how to submit a PR for this. It appears @balloob and @andrey-git are maintainers of this fork based off of this -- maybe they'll be able to implement the fix. In the mean time you can implement the fix yourself if you're feeling ambitious. |
Bravia is unmaintained. I am only on the package because I run Home Assistant. I am not involved. If someone wants to fork the original package at https://github.com/aparraga/braviarc, figure out what is different in the braviarc-homeassistant package on pypi, add those changes and start maintaining it, that would be great. Until then, all Bravia RC bugs will remain unsolved. |
BraviaRC is currently unmaintained for home-assistant. This commit swaps it out with a new fork of BraviaRC called python-bravia-tv. This captures all bug fixes from BraviaRC release 3.7 (previously linked backend) to right before BraviaRC breaks when used by home-assistant. The intent of forking is to be able to continue supporting home-assistant. This is not intended to be a one off solution; this new fork will have future updates and be maintain as needed. This initial commit of python-bravia-tv improves the import process, however overall preserves the original API. Other fixes include: * Fix set-volume slider * Better error handling * Increase input options Resolves: home-assistant#26351, home-assistant#30964 See also: home-assistant#12577, home-assistant#14843, home-assistant#17345, home-assistant#18245
BraviaRC is currently unmaintained for home-assistant. This commit swaps it out with a new fork of BraviaRC called python-bravia-tv. This captures all bug fixes from BraviaRC release 3.7 (previously linked backend) to right before BraviaRC breaks when used by home-assistant. The intent of forking is to be able to continue supporting home-assistant. This is not intended to be a one off solution; this new fork will have future updates and be maintain as needed. This initial commit of python-bravia-tv improves the import process, however overall preserves the original API. Other fixes include: * Fix set-volume slider * Better error handling * Increase input options Resolves: #26351, #30964 See also: #12577, #14843, #17345, #18245
I'm experiencing the same issue on my bravia XG series android tv. |
@Extreme79 can you open a new issue? Please answer all the questions with the new issue form; it gives us a starting point to start troubleshooting. This particular issue your posting in has been resolved. If your running Home Assistant 0.112.3 or later your issue can't be caused by this because this particular line has been fixed. |
Home Assistant release with the issue:
0.98.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Docker on Synology NAS
Component/platform:
Sony Bravia TV media player
https://www.home-assistant.io/components/braviatv/
Description of problem:
I can't set the volume via the slider. It doesn't do anything.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The TV: Sony Bravia KDL-42W805A
The text was updated successfully, but these errors were encountered: