So my PR is not really useful for that as that one sends commands to /sony/IRCC. Both sony_bravia_ha and sony_bravia_psk packages would probably have to be extended to support that.
Yep, fully agree.
Btw did you found any workable solution for volume_set problem. Both Bravia and Bravia-psk plug-ins do dot manage this function correctly
Hi thanks for that
Im not an expert with building *py packages. Can you share me a corected version of braviatv_psk.py or
guide me how I can rebuild fixed lib from local clone of repo pls. ?
Dzieki z góry:)
Edit , manually updated res files
~/homeassistant/lib/python3.6/site-packages/braviarc/braviarc.py
~/homeassistant/lib/python3.6/site-packages/braviapsk/sony_bravia_psk.py
indeed
a) volume_set works
b) volume app slider reflect changes
Thanks !
now I can focus on shell cmds to run kod/addin/incursion/ and integrate this with google home
Thanks.
But in my file braviatv_psk.py from https://github.com/gerard33/home-assistant i don’t find the same line.
If i find similar line, i have line 276 :
def set_volume_level(self, volume):
“”“Set volume level, range 0…1.”""
self._braviarc.set_volume_level(volume)
Can you tell me what to modify on these lines, if it’s good?
thanks in advance
You would have to modify the sony_bravia_psk.py file instead, which is a dependency of braviatv_psk.py.
I’m not sure where you can find it in your installation. For me it’s in /usr/share/hassio/homeassistant/deps/lib/python3.6/site-packages/braviapsk/(I’m running Hassio in docker container).
It would of course be much simpler if @gerard33 would merge the pull request and release new versions
You should find it somewhere unless the file is in a docker container but if you are running RPI with Hassio as your distro then I think files should not be in a container.
Oh thanks all works fine !
And I can control now volume of the TVs by Google Home
For information :
/config/deps/lib/python3.6/site-packages/sony_bravia_psk/sony_bravia_psk.py
/config/deps/lib/python3.6/site-packages/braviapsk/sony_bravia_psk.py
Ok so volume_set works for 2 Sony Android TV without sound bar
But on my main TV with sound bar connect in HDMI Arc, volume_set not changing the sound level.
But Volume_up and volume_down works
does anyone know how to make volume_set work with the soundbar? Or there isn’t really solution. thank you
But when I look at your script, your soundbar is managed directly in Home Assistant?
Because me my bar Samsung K450 is not wifi. Only HDMI ARC, Optical and Bluetooth. So I can not control it I think by TV and not by Home Assistant. So in this case, unless I’m mistaken, I can not apply your script?