Hi everyone! I’d like to share a new custom integration I’ve been working on: Bravia REST API.
The existing bravia integration is quite limited. I wanted full access to everything Sony Bravia TVs expose via their REST API — IRCC infrared codes, app control, screen management, Wake-on-LAN and more — so I built this from scratch.
What it does
Exposes the full Sony Bravia REST API as native Home Assistant entities:
Media Player — power, volume (absolute + step), source selection mixing HDMI inputs and Android apps
Remote — send any IRCC command by name (VolumeUp,Home,Back…) or raw base64 code
Buttons — one-tap actions: Blank Screen, Picture On, Reboot, Close Apps, and all directional/navigation IR buttons
Selects — Sound output (speaker/HDMI/audio system), Screen rotation
Sensors — Model, Firmware, Serial Number, MAC address
Switches — LED Indicator, Wake-on-LAN
Custom Services — open_app,send_ircc,set_audio_output,blank_screen,get_installed_apps
Key features:
Auto-discovers TV model and capabilities at setup time
Works with TVs in standby (no need to have the TV on to configure)
Wake-on-LAN support to power on from standby
Discovers all installed Android apps and lets you launch them from the source list
Local polling — no cloud, no account needed. Just IP + PSK
Requirements
- Sony Bravia TV with Pre-Shared Key (PSK) enabled
- Settings → Network → IP Control → Authentication → set a PSK
- Home Assistant 2024.1+
- TV on same local network as HA
Installation via HACS
- HACS → Integrations → ⋮ → Custom repositories
- Add
https://github.com/cmos486/Bravia-REST-API→ Category: Integration - Install Bravia REST API
- Restart Home Assistant
- Settings → Devices & Services → Add Integration → search Bravia REST API
- Enter your TV’s IP and PSK — that’s it!
Example: sending IR commands from automations
service: remote.send_command
target:
entity_id: remote.kd_65xh9096
data:
command: Home
Or open Netflix directly:
service: bravia_rest_api.open_app
target:
entity_id: media_player.kd_65xh9096
data:
app_name: Netflix
Links
- GitHub: GitHub - cmos486/Bravia-REST-API: Sony Bravia integration for Home Assistant — full REST API support including IRCC codes, app control, WoL, screen management and more. · GitHub
- Issues / feedback: Issues · cmos486/Bravia-REST-API · GitHub
Tested on a KD-65XH9096 running firmware 5.7.0. Should work on any Bravia with PSK support, though some features depend on the model. If you try it on a different model I’d love to hear how it goes — feedback and PRs welcome! ![]()