@hyjk2000/homebridge-bravia 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -32
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
# Sony BRAVIA for Homebridge
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Control Sony BRAVIA TVs in Apple Home: power, volume, mute, inputs, apps, and remote keys.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
- Node.js 24
|
|
8
|
-
- A
|
|
9
|
-
-
|
|
7
|
+
- Node.js 24+ and Homebridge 1.8.0+ within the declared peer dependency range.
|
|
8
|
+
- A LAN-accessible BRAVIA TV with JSON-RPC and IRCC IP control enabled. Support varies by model and firmware.
|
|
9
|
+
- Network standby/Remote Start enabled for wake support. A DHCP reservation is recommended.
|
|
10
10
|
|
|
11
11
|
## Installation and setup
|
|
12
12
|
|
|
13
|
-
1.
|
|
14
|
-
2.
|
|
15
|
-
3. Turn the TV on, save the
|
|
16
|
-
4.
|
|
17
|
-
5. In Apple Home, choose **Add Accessory → More Options**, select each TV, and enter the pairing code for the Homebridge instance or child bridge running the plugin. TVs are published as separate external accessories by default; pairing Homebridge alone does not add them.
|
|
13
|
+
1. Install `@hyjk2000/homebridge-bravia` from the Homebridge UI.
|
|
14
|
+
2. Add each TV in the plugin settings with a unique name and IP address or hostname. Use `port` separately if needed.
|
|
15
|
+
3. Turn the TV on, save, restart the bridge, and authenticate below.
|
|
16
|
+
4. In Apple Home, choose **Add Accessory → More Options** and pair each TV using the bridge's pairing code. TVs are separate accessories by default.
|
|
18
17
|
|
|
19
18
|
### TV authentication
|
|
20
19
|
|
|
21
|
-
**Pre-shared key:**
|
|
20
|
+
**Pre-shared key:** Set a key in the TV's IP control settings and enter it as `psk`.
|
|
22
21
|
|
|
23
|
-
**PIN
|
|
22
|
+
**PIN:** Leave `psk` blank. Open the full URL in the Homebridge logs and enter the PIN shown on the TV. Saved sessions skip pairing.
|
|
24
23
|
|
|
25
|
-
The temporary
|
|
24
|
+
The temporary pairing page uses a dynamic port on the Homebridge host. If needed, replace only the URL's hostname with the host's LAN IP; preserve the port and path. Docker host networking allows access to this port.
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
Pair only on a trusted LAN: TV control and PIN entry use HTTP. Never expose the pairing server publicly or share its URL.
|
|
28
27
|
|
|
29
28
|
## Configuration
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
Use the plugin settings, or add this to `platforms` in Homebridge's `config.json`:
|
|
32
31
|
|
|
33
32
|
```json
|
|
34
33
|
{
|
|
@@ -43,7 +42,7 @@ The Homebridge UI provides a settings form. For manual configuration, add this e
|
|
|
43
42
|
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
Options per TV; times are in milliseconds.
|
|
47
46
|
|
|
48
47
|
| Option | Default | Description |
|
|
49
48
|
| ------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
@@ -63,33 +62,28 @@ Each `tvs` entry supports these options. All intervals and delays are in millise
|
|
|
63
62
|
| `externalaccessory` | `true` | Publish each TV separately. Set `false` to publish through the bridge instead. |
|
|
64
63
|
| `debug` | `false` | Log TV command and refresh errors at info level; otherwise these use Homebridge debug logging. |
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
Default sources: `extInput:hdmi`, `extInput:component`, `extInput:scart`, `extInput:cec`, and `extInput:widi`. Use `sources: []` to disable them. Apps are opt-in. Each TV supports up to 95 inputs/apps combined.
|
|
67
66
|
|
|
68
|
-
Input
|
|
67
|
+
Input IDs, names, and visibility survive rescans. Keep `mac` (or the host address when no MAC is set) stable to preserve accessory identity.
|
|
69
68
|
|
|
70
69
|
## Troubleshooting
|
|
71
70
|
|
|
72
|
-
- **
|
|
73
|
-
- **
|
|
74
|
-
- **TV
|
|
75
|
-
- **Missing inputs
|
|
76
|
-
- **Connection failures:** Check
|
|
71
|
+
- **Pairing page unavailable:** Turn the TV on, check IP control settings, and use the latest log URL. Check firewall/container access.
|
|
72
|
+
- **Will not wake:** Enable Remote Start, check `mac`/`woladdress`, and increase `starttimeout` if commands arrive too early.
|
|
73
|
+
- **Missing TV:** Pair it separately and check mDNS connectivity.
|
|
74
|
+
- **Missing inputs/apps:** Turn the TV on and check `sources`, `tvsource`, and case-sensitive app filters. Availability varies by firmware.
|
|
75
|
+
- **Connection failures:** Check address, port, credentials, and LAN access. Offline TVs retain cached services; initialization retries automatically.
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
Report issues with versions, TV model/firmware, sanitized config, and logs. Remove keys, cookies, PINs, and pairing URLs.
|
|
79
78
|
|
|
80
79
|
## Storage
|
|
81
80
|
|
|
82
|
-
Sessions and
|
|
81
|
+
Sessions and accessory state live in `<Homebridge storage>/plugin-persist/hyjk2000-homebridge-bravia/<uuid>.json`. Protect these files and backups as credentials. Pre-shared keys remain in Homebridge's config.
|
|
83
82
|
|
|
84
|
-
## Development
|
|
83
|
+
## Development
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
For publishable changes, run `pnpm changeset` and commit the generated file. Push to `master`, then merge the **Version Packages** PR when ready to publish. Docs, tests, and tooling changes need no changeset. See the [official Changesets guide](https://changesets.dev/guide/automating).
|
|
89
|
-
|
|
90
|
-
Setup: allow GitHub Actions to create pull requests and configure npm trusted publishers for both packages using `release.yml`. No npm token or Changesets bot is needed.
|
|
91
|
-
|
|
92
|
-
Authoring references: [official plugin template](https://github.com/homebridge/homebridge-plugin-template) and [Homebridge verification requirements](https://github.com/homebridge/plugins/wiki/Verified-Plugins#current-requirements). This plugin is not claimed to be Homebridge Verified. Its Node.js 24 minimum excludes Node.js 22, which is currently required by the verification program.
|
|
85
|
+
See the [monorepo README](../../README.md) for setup. Build before running
|
|
86
|
+
`pnpm --filter @hyjk2000/homebridge-bravia test`; use `pnpm dev` to watch and rebuild.
|
|
93
87
|
|
|
94
88
|
## License
|
|
95
89
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyjk2000/homebridge-bravia",
|
|
3
3
|
"displayName": "Sony BRAVIA",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"description": "Homebridge television platform for Sony BRAVIA TVs",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"bravia",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@hyjk2000/bravia-sdk": "0.0
|
|
35
|
+
"@hyjk2000/bravia-sdk": "0.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"homebridge": "^1.8.0"
|