Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others) with extra on/off command based on direct http url
npm install homebridge-bravia-extraHomeBridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others).
This extra version of original Normen's homebridge-bravia plugin just add two news commands to turn ON/OFF TV with direct URL, not with default commands.
For example, in my case, i use Apple TV ON command to turn on both TV and Apple TV in the same time with only one command :)
Thanks to Normen for his great work !
This plugin requires iOS 12.2, to use it with previous iOS versions install version 0.96 of this plugin.
Note for users of versions before 2.0: Updating to 2.0+ will force you to set up the TV (including all HomeKit automation) again
npm install -g homebridge)npm install -g homebridge-bravia)http://homebridge.local:8999homebridge.local with the IP or name of your homebridge server```
"platforms":[
{
"platform": "BraviaPlatform",
"tvs": [
{
"name": "TV",
"ip": "192.168.1.10",
"soundoutput": "speaker",
"tvsource": "tv:dvbs",
"applications": [{"title":"Netflix"}],
"sources": [
"extInput:hdmi"
]
}
]
}
]
Required options:
- tvs is the list of Sony TVs in your homename
- is the name of your TV as it appears in HomeKitip
- is the IP address or host name of your TV, find and/or set it through your router or set it in the TV
Optional options (all inside one TV entry):
- sources is an array of sources to display in HomeKit["extInput:hdmi", "extInput:component", "extInput:scart", "extInput:cec", "extInput:widi"]
- default extInput:hdmi
- these sources usually represent a type of input, so will show all your HDMI inputs in HomeKittvsource
- source strings for your TV might look different, check the web if you find the right ones for your TV/input types
- is your preferred TV source, can be tv:dvbt, tv:dvbc or tv:dvbs (antenna, cable or sat), default noneapplications
- effectively this is just another source like the ones above
- can be used to enable listing applications in the input list, default false`
- Providing an array of objects with application titles will only add applications whose names contain the titles to the input list:
`
"applications": [
{
"title": "Netflix"
},
{
"title": "Plex"
},
... etc.
]
soundoutput
- is your preferred TV sound output, can be speaker or headphone, default speakerport
- is the HTTP port of your TV, default 80externalaccessory
- if set the TV will be published as an external accessory to HomeKitmac
- is the MAC address of your TV, only set it if you want to use WOL instead of HTTP to wake up the TV, default nonewoladdress
- sets the subnet for WOL, default 255.255.255.255serverPort
- sets a different port than 8999 for the web server that allows entering the PIN number from the TVupdaterate
- interval in milliseconds for TV status updates (on/off etc), default 5000channelupdaterate
- interval in milliseconds for updates of the channel/input list, default 30000onURL
- direct URL to turn ON TV, default nullOffURL
- direct URL to turn OFF TV, default null
include homebridge and the npm run test command has been adapted so that you can run a test instance of homebridge during development.
#### Setup
- clone github repo
- npm install in the project folder
- create .homebridge folder in project root
- add config.json with appropriate content to .homebridge folder
- run npm run test` to start the homebridge instance for testing