在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:seydx/homebridge-sonybravia-platform开源软件地址:https://github.com/seydx/homebridge-sonybravia-platform开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-sonybravia-platform v2.5Homebridge Platform Plugin for Sony Bravia Android TVThis is a Plugin for Homebridge to control your Sony Android TV. Note: If you are looking for the dynamic version, install the new version! homebridge-bravia-tv v3 Following functions can be exposed to HomeKit:
Why do we need this plugin?With this plugin you can create scenes for apps (i.e. starting Amazon Prime), controll your CEC devices like Apple TV or PlayStation, track the state of the TV (on/off), Source Inputs and Volume See Images for more details. Installation instructionsAfter Homebridge has been installed:
Preparing the TV
Basic config.json:
Advanced config.json:
Multiple TVsIf you want to control multiple TVs , just add a second platform (see above), change the IP, PSK and set a new unique NAME. APPSExposed as a Switch to HomeKit, that detects automatically all apps from the TV. It also has new characteristics, that allows to control and set the Home App withing the EVE App AND change between ALL installed apps on the TV. You will be able to create own scenes. You can dim the light if you start YouTube and many more.. Note: Apple Home App doesnt support Accessory with own characteristics. So you need to use apps like Elgato EVE or other to create own scenes. See Images for more details. *Home APPHome App is an on the TV installed app that can be defined in the config.json file (in v2.3 you are also able to set the Home App within the app!). With the following command for terminal you will get a list of apps that are installed on your TV (Change TVIPHERE, YOURPSKERE with your data, be sure that jq is installed, see above)
Just search your app and copy the adress of the coosen app. This is an example adress of my IPTV: com.sony.dtv.eu.siptv.video.eu.siptv.atv.MainActivity If you dont set this in your config.json, the plugin will look for any cached home apps, if there is nothing, it will take the uri of the app in the first place (in most cases it is Play Store) ChannelsExposed as a Switch to HomeKit, that detects automatically all channels from the TV. It also has new characteristics, that allows to control and set the favourite channel withing the EVE App AND change between ALL channels on the TV. You will be able to create own scenes. Note: Apple Home App doesnt support Accessory with own characteristics. So you need to use apps like Elgato EVE or other to create own scenes. See Images for more details. *Favourite Channel (favChannel)With the following command for terminal you will get your favourite channel (Change TVIPHERE, YOURPSKERE with your data, be sure that jq is installed, see above! NOTE: "stIx" is your channel number on the TV, BUT you need to substract with 1! i.e. Channel Numb on tv is 30, then "stIx" is 29!) (in v2.3 you are able to set the favourite channel within the EVE app!)
For your config.json you need the "uri" from output. i.e: tv:dvbt?trip=1.1051.10304&srvName=SWR RP HD If you dont set this in your config.json, the plugin will look for any cached favourite channels, if there is nothing, it will take the first channel OFFSTATEDue to the reason that its not possible to deactivate / shut down a HDMI input, CEC device etc., this option give you the possibility to set your own off command. There are 3 Modes: "HOME" for starting the home app, "CHANNEL" for switching to youor favourite channel and "OFF" for turning off the TV. CEC DeviceIn v2.3 it's not necessary to do complicated steps to get a list of your cec devices. If you want to expose your CEC devices like Apple TV or PlayStation 4 just put "detectCEC":true in your config.json and follow the instructions in the log. Thats it. NOTE: If you have issues with the state of your CEC Device (due to different tv models) you can set "cecDevices" in your config.json to set manually the HDMI port. The title must be the same as from the cec device. Example:
Remote ControlIn v2.5 you have the possibility to expose a remote control (if "remoteControl" is true in config.json) to HomeKit. With the remote control, you can send commands like channel up, channel down, volume up, volume down, enter, home, toggle mute, toggle power etc. You have also the possibility to choose between "BASIC" or "ADVANCED" mode ("controlMode" in config.json). "BASIC" will only expose basic switches to HomeKit. "ADVANCED" will expose some more stuff. All these "commands" will be available within the "Remote Control" service. Therefore, this service is not compatible with the Apple Home app! You can use this with apps like Elgato EVE, Home etc.
Options
Supported clientsThis platform and the switches it creates have been verified to work with the following apps on iOS 11.2.5:
Known issues | TODO
ContributingYou can contribute to this homebridge plugin in following ways:
Pull requests are accepted. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论