The device needs to be in the same subnet as the Home Assistant software. This is a limitation of the Sony Firmware, the device will not react properly to requests if the client is in a different subnet.
To get started put /custom_components/sony/media_player.py
here: <config_directory>/custom_components/sony/media_player.py
When using home assistant supervised put the contents of this repo into /usr/share/hassio/homeassistant/
Using custom_updater (optional, and deprecated)
custom_updater
from here: https://github.com/custom-components/custom_updatercustom_updater:
track:
- components
component_urls:
- https://raw.githubusercontent.com/alexmohr/media_player.sony/master/tracker.json
To add a device to your installation, add the following to your configuration.yaml
file:
media_player:
- platform: sony
host: 192.168.0.10
Configuration variables
Key | Description |
---|---|
platform (Required) | The platform name (sony ) |
host (Required) | IP Address or hostname of the device |
name (Required) | Descriptive name for the device |
broadcast (Optional) | The broadcast ip of the subnet |
app_port (Optional) | The app port, defaults to 50202, |
dmr_port (Optional) | The dmr port, defaults to 52323, |
ircc_port (Optional) | The ircc port, defaults to 50001 |
Devices listed here configure the ports different. This list is not complete. If you devices does work with other ports please add it via a PR
Device | App Port | Dmr Port | Ircc |
---|---|---|---|
BDP-S590 | 52323 | 50202 | 52323 |
You will need to configure your device to allow the Home Assistant for remote usage. To do that, ensure that your device is turned on. Open the configuration popup on Home Assistant and enter a random PIN (for example 0000). After that, the device will show you a PIN and Home Assistant will allow you to re-enter that PIN. Enter the PIN shown on your TV and Home Assistant will be able to control your Sony device.