Integration of Sony Bravia tv without a pin

I’m using the Sony Bravia TV (Pre-Shared Key) component installed by HACS. After entering the host ip address but before entering the pin, this is written to the log:

Logger: bravia_tv.braviarc
Source: /usr/local/lib/python3.9/site-packages/bravia_tv/braviarc.py:135
First occurred: 20:12:04 (1 occurrences)
Last logged: 20:12:04

Exception: HTTPConnectionPool(host='192.168.1.108', port=80): Max retries exceeded with url: /sony/accessControl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae46ea60>: Failed to establish a new connection: [Errno 113] Host is unreachable'))

In my configuration.yaml …

media_player:
  - platform: braviatv_psk
    host: 192.168.1.108
    psk: sony
    mac: 10:4F:A8:CF:46:9E
    name: KDL-49W751

I’m a long way out of my depth. Any help will be very gratefully received, thank you.

1 Like

I haven’t used braviatv_psk, but this error message looks like the IP address is incorrect, or maybe the TV/HA aren’t on the same network. Are you sure that address is right?

Hope I’m not showing my ignorance … assume host ip address is ip address of tv? My BT router tells me ip address of the tv is 192.168.1.108.

Both Raspberry Pi and tv are connected by ethernet cables to the BT router. Is this ok? I could disconnect the tv’s cable and see if the Pi and tv communicate with each other over wifi.

The custom component assumes the tv is listening on port 80? Is this valid? Can it be tested?

Thank you for helping.

Disconnected tv’s ethernet cable and setup wifi connection on tv. Changed ip address in configuration.yaml. Tried Sony Bravia integration again. Same error message (but different ip address).

Using both Telnet and Test-NetConnection I was unable to open port 80.

Does KDL-49WD751 (my tv) not provide the interface required by the Sony Bravia custom component?

Hi, it is also possible that your bravia model, like mine, is so old that it is not supported by current integrations (official or the one you can find on hacs). The IRCC protocol (used to send simulated remote key pressures) end point URL ends with /IRCC instead of /sony/IRCC. Additionally older bravia TVs doesn’t support or exposes in a different way additional functionalities needed by current integrations. A dedicated integration aimed to old bravia TV should be written.

I use Sony Bravia TV (the default one) integration with my KDL48W605B without any issues. What’s the one in HACS offering on top?

Regrettably, I think you’re right. Further research this evening has brought me to the same conclusion.

How do we find out how much support there might be for an ‘oldies’ Bravia integration?

It’s not that the custom component is better. It’s just different. It uses an alternative way of authenticating the integration’s access to the tv.

IRCC allows you to emulate a physical remote, so everything that can be done with the remote could be controlled by a dedicated integration.

Hi,
i have a similar problem to my sony bravia with android tv installed.
I integrated it with Android TV but I only risk giving the ON / OFF and volume commands.
I wanted to try to integrate it with sony bravia TV but in practice after I put the IP address the TV does not show me the PIN.
I tried again a few times but it doesn’t work.
Has it happened to someone who did not show the pairing PIN?