homebridge-bravia-energy-saver
v0.1.0
Published
Expose a Sony Bravia power-saving mode as a HomeKit switch.
Maintainers
Readme
Homebridge Bravia Energy Saver
Expose a Sony Bravia TV's power-saving mode as one HomeKit switch.
- On sets the configured saving level (
highby default). - Off disables power saving.
- HomeKit reads the real TV state at startup, on demand, and every 30 seconds by default.
- Writes are serialized and acknowledged only after the TV reports the requested state. A short confirmation window handles Bravia's delayed state propagation.
Requirements
- Homebridge 1.8 or 2.x
- Node.js 22.10 or 24
- A Sony Bravia TV exposing the
/sony/systemREST API - IP control enabled on the TV with Pre-Shared Key authentication
Installation
Install through Homebridge UI by searching for Homebridge Bravia Energy Saver, or install from npm:
npm install -g homebridge-bravia-energy-saverConfiguration
Use the plugin's Homebridge UI settings form, or add an accessory entry:
{
"accessory": "BraviaEnergySaver",
"name": "TV Energy Saving",
"host": "192.168.1.50",
"psk": "YOUR_TV_PRE_SHARED_KEY",
"enabledMode": "high",
"pollInterval": 30,
"requestTimeout": 5000
}Never commit the TV's pre-shared key. It belongs only in the private Homebridge configuration.
Options
| Option | Required | Default | Description |
| --- | --- | --- | --- |
| name | Yes | TV Energy Saving | HomeKit accessory name. |
| host | Yes | — | TV hostname or IP address. |
| psk | Yes | — | Bravia IP-control pre-shared key. |
| enabledMode | No | high | Mode used for On: low, high, or pictureOff. |
| pollInterval | No | 30 | State refresh interval in seconds. |
| requestTimeout | No | 5000 | REST request timeout in milliseconds. |
Any active Bravia saving level (low, high, or pictureOff) is represented as
On if it was selected directly on the TV.
Development
npm install
npm run check
npm pack --dry-runLicense
MIT © Luca Silverentand
