Sony Bravia TV component with Pre-Shared Key

You have to check 2 things:
i. is the IP address correct
ii. the psk is the Pre-Shared Key which you need to configure on your TV, so that’s not by default the same as on your other TV. Did you setup the PSK on the Android TV. If not you can follow the instructions.

Ho Gerard and thank you forse your reply.

The ip is static and it’s correct.
I set up a custom psk (different for other TV) in the TV menu.

The TV is Android TV. I can’t control It…

Stil love this project.
Is it possible to use the custom updater with this component?

That’s certainly possible.
As a matter of fact it’s already available there for some months now :wink:

1 Like

Hi! This component dosent work after I updated to 89.0, is there something I need to change?

It’s working fine here with 0.89.1. Can you share the error?
And is the component name and folder like below?
custom_components\braviatv_psk\media_player.py

i don´t understand what to do. i changed name of folders and files back and forth. no change. what am i supposed to do after updating to 0.89?? i cant see the issue but i dont eiter see the error here.

BR Mathias

Make sure you have this version and place it in custom_components\braviatv_psk\media_player.py.
It should either work or you should have an error.

yes, i have tried that.

i get this

Sat Mar 09 2019 00:03:00 GMT+0100 (centraleuropeisk normaltid)
Testing configuration at /config
Failed config
General Errors:
- Platform not found: media_player.braviatv_psk
- Platform not found: media_player.samsung_multi_room
- Platform not found: media_player.alexa

Successful config (partial)

regadles of what i trie.

Share your config so we can have look. And did you actually restart HA, because I sometimes have errors in the test, but not when actually restarting.

the thing is that all my custom components failed after my update to 0.89. i have read the update notes and on the forum but i cant find what to change to get the components working. from the info i can find i have tried that already,

#Sony Bravia

media_player:

  • platform: braviatv_psk
    name: MyBraviaTV
    host: 192.168.1.106
    psk: —
    mac: MAC:Adresss
    amp: True
    android: True
    sourcefilter:
    • HDMI

That looks good. Can you share a screenshot of the custom components folder including the py file?

Mine works fine with same configuration as above on both 0.89 and 0.89.1.

i updated from 87

even if i re copied from repository i get this

Testing configuration at /config
Failed config
General Errors:
- Platform not found: media_player.braviatv_psk
- Platform not found: media_player.samsung_multi_room
- Platform not found: media_player.alexa

59

Allright, I would start with deleting (or renaming) the media_player folder.

I what’s inside the folder braviatv_psk? If there is a folder __pycache__ please delete it.

still get this

Testing configuration at /config
Failed config
General Errors:
- Platform not found: media_player.samsung_multi_room
- Platform not found: media_player.alexa

home assistant dosent seam to see my custom compoments regardless of what i change. ps i upgraded from 0.86 but still…

Well the braviatv_psk error disappeared :relieved:. Just restart HA now and if that works repeat the steps for the other platforms, probably deleting the cache folder.

Hi,

I’ve renamed the folder and the .py file as described above. Also copied the most recent version of media_player.py to my RPI. Restarted HA and I’m getting this error.

Mon Mar 11 2019 17:46:01 GMT+0800 (Australian Western Standard Time)
Error while setting up platform braviatv_psk
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/braviatv_psk/media_player.py”, line 88, in setup_platform
[BraviaTVDevice(host, psk, mac, name, amp, android, source_filter)])
File “/config/custom_components/braviatv_psk/media_player.py”, line 97, in init
from braviapsk import sony_bravia_psk
ModuleNotFoundError: No module named ‘braviapsk’