That’s great, I already use your custom but didn’t know about this added functionality. When is your custom component going to be integrated into the HA builds?
From your latest braviatv_psk.py, is it possible to add Num0, Num4 until Num9. Also App name like iFlix or Spotify.
# Some additional info to show specific for Sony Bravia TV
TV_WAIT = 'TV started, waiting for program info'
TV_APP_OPENED = 'App opened'
TV_NO_INFO = 'No info: TV resumed after pause'
PLAY_MEDIA_OPTIONS = ['Netflix', 'Display', 'Num1', 'Num2', 'Num3']
Thanks for your work. Unfortunately this does not seem to work properly for me with a Bravia model kdl-40w900a (2013 model). The TV has a “Wifi-direct” functionality which provides a SSID and a key for connecting to the TV, I have set such key as the pre-shared key.
Currently, all turn on/off, mute, etc service calls seem to work, but the media player entity state does not update and is stuck to off. I am also getting this error:
No data received from TV. Error message: ‘NoneType’ object is not subscriptable
Do you have any idea why this could be happening? Thanks!
Hi, very nice work dude. I’m enjoying my Bravia TV more than ever. Thanks a lot!
Also, I know this may come a little late but for those of you who don’t seem to find the IP Control options in you TV, you may need to activate the pro mode for your device. I struggled with this for a while as well.
also I checked the function using curl curl -X POST -H "x-ha-access: APIPASSWORD" -H "Content-Type: application/json" -d '{"entity_id":"media_player.sonytv","volume_level":"0.2"}' -k https://hostname:port/api/services/media_player/volume_set
returns empty response, no reaction, nothing in log
Hi, yep Im trying this on built in speakers, to set volume to 0.0 once I initiate external amp.
and again when turning tv off set volume again to ~27 in scale so Iset up 0.3 on vol_set.
curl -X POST -H “x-ha-access: API_PASS” -H “Content-Type: application/json” -d ‘{“entity_id”:“media_player.sonytv”}’ -k https://host:port/api/services/media_player/volume_down
in return I see
Thanks for the script !
I’m a newbie on Home Assistant because I just upgraded from Jeedom.
I synchronized Alexa and Google Home with Home Assistant and I can command with voice Somfy Cover etc etc, works fine ! without script, directly by addon.
But with this addons, I can just control by default switch on/off TV on Google Home. unless there are specific commands to tell Google that I do not know?
So I created one script per channel For example: Mets TF1 (to activate TF1, channel number 1), Mets France 2 (to activate France 2, channel number 2).
Is not it possible natively to tell Google to change the channel directly by taking the name of the channels of your addon in “sourcelist”, without having to create a script by channel?
Also, is there a way to put a number to the volume for example with set_volume? Because currently, it is necessary to press several times on “volumeup” or “volumedown” and thus to say several times to Google, Ok google, lower the volume for example. Which is not practical.
Error while setting up platform braviatv_psk
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/media_player/braviatv_psk.py”, line 72, in setup_platform
[BraviaTVDevice(host, psk, mac, name, amp, android, source_filter)])
File “/config/custom_components/media_player/braviatv_psk.py”, line 81, in init
from braviapsk import sony_bravia_psk
ModuleNotFoundError: No module named ‘braviapsk’