homebridge-webos-tv
is a plugin for HomeBridge which allows you to control your webOS TV! It should work with all TVs that support webOS2 and never.
The idea is that the TV should be controlled completely from the native HomeKit iOS app and Siri, that is why volume appears as a light bulb or external input as a switch.
The old package homebridge-webos3
is deprecated. New development will be made here. If you used the old package please change your accessory in your config.json to webostv
and install this new package!
This is a work in progress. Please contribute!
- Power status
- Turn on / off
- Mute Status (as light bulb)
- Mute / Unmute (as light bulb)
- Volume control (as light bulb and switches)
- Open apps (switch between apps of your choice and live tv)
If you are new to Homebridge, please first read the Homebridge documentation. If you are running on a Raspberry, you will find a tutorial in the homebridge-punt Wiki.
Install homebridge:
sudo npm install -g homebridge
Install homebridge-webos-tv:
sudo npm install -g homebridge-webos-tv
Add the accessory in config.json
in your home directory inside .homebridge
.
{
"accessories": [
{
"accessory": "webostv",
"name": "My webOS tv",
"ip": "192.168.0.40",
"mac": "ab:cd:ef:fe:dc:ba",
"keyFile": "/home/pi/.homebridge/lgtvKeyFile",
"pollingEnabled": true,
"appSwitch":[
"com.webos.app.tvguide",
"youtube.leanback.v4",
"com.webos.app.hdmi2",
"com.webos.app.externalinput.component"
]
}
]
}
You also need to enable mobile tv on on your tv for the turn on feature to work correctly.
On newer TVs LG Connect Apps under the network settings needs to be enabled.
accessory
[required] Should always be "webostv"name
[required] Name of your accessoryip
[required] ip address of your tvmac
[required] Mac address of your tvkeyFile
[optional] To prevent the tv from asking for permission when you reboot homebridge, specify a file path to store the permission token. If the file doesn't exist it'll be created. Don't specify a directory or you'll get anEISDIR
error.pollingEnabled
[optional] Wheter the TV state background polling is enabled. Useful for more accurate TV state awareness and HomeKit automation. Default: falsepollingInterval
[optional] The TV state background polling interval in seconds. Default: 5volumeControl
[optional] Wheter the volume control service is enabled. Default: truevolumeLimit
[optional] The max allowed volume which can be set using the volume service. Range 1-100. Default: 100channelControl
[optional] Wheter the channel control service is enabled. Default: trueappSwitch
[optional] Wheter the app switch service is enabled. This allows to switch live tv with apps of your choice. To get the app ID simply open an app on your TV and check the homebridge console. The app ID of the opened app will be printed. Default: "" (disabled)- For a single switch set the desired app ID as the value
- For multiple switches set an array of app IDs as the value
- External sources are also apps and can be used as app switches, available sources: com.webos.app.hdmi1, com.webos.app.hdmi2, com.webos.app.hdmi3, com.webos.app.externalinput.component, com.webos.app.externalinput.av1
- Apps can also be started when the TV is off, in that case an attempt to power on the TV and switch to the chosen app will be made
lgtv2 - the Node.js remote control module for LG WebOS smart TVs.
homebridge-lgtv2 & homebridge-webos2 - the basic idea for the plugin.