This is a custom component for Home Assistant that provides a fully-fledged integration for LG WebOS TVs using the bscpylgtv library.
It is designed to "expose everything" possible from the library, including advanced calibration features, system settings, and comprehensive control.
- Config Flow: Easy setup via the UI with auto-discovery (SSDP) and pairing guidance.
- Media Player:
- Power (On/Off), Volume, Mute.
- Source selection (Inputs and Apps).
- Play/Pause/Stop/Next/Previous.
play_mediasupport for launching apps.
- Remote:
- Full remote control support (Up, Down, Left, Right, Select, Back, Home, Menu, etc.).
- Notify:
- Send toast notifications to the TV screen.
- Entities:
- Buttons:
- Standard: Turn Screen Off/On, Screensaver, Screenshot.
- Advanced (Disabled by default): Reboot, Soft Reboot, TPC/GSR toggles (OLED protection).
- Numbers:
- Advanced (Disabled by default): Backlight, Contrast, Brightness, Color, Sharpness, OLED Light.
- Selects: Picture Mode, Sound Output.
- Sensors: Current App, Volume, Power State, Software Info (Model, Version, Device ID).
- Switches: AI Picture Pro (experimental).
- Buttons:
- Services:
launch_app: Launch an app by ID.launch_app_with_params: Launch an app with JSON parameters.command: Execute any method available in theWebOsClientlibrary.set_settings: Update system or picture settings.
- Open HACS in Home Assistant.
- Go to "Integrations".
- Click the 3 dots in the top right corner and select "Custom repositories".
- Add the URL of this repository.
- Select "Integration" as the category.
- Click "Add".
- Find "LG WebOS TV (bscpylgtv)" in the list and install it.
- Restart Home Assistant.
- Download the
custom_components/bscpylgtvfolder from this repository. - Copy it to your Home Assistant
custom_componentsdirectory. - Restart Home Assistant.
- Go to Settings > Devices & Services.
- Click Add Integration.
- Search for LG WebOS TV (bscpylgtv).
- Enter the IP address of your TV.
- Follow the instructions to pair (accept the prompt on your TV).
Some entities are disabled by default to prevent accidental changes that could affect picture quality or device stability. To enable them:
- Go to the Device page for your TV in Home Assistant.
- Click on "Entities" or the specific disabled entity.
- Click the "Settings" (gear) icon.
- Toggle "Enabled" and update.
Disabled Entities:
- Reboot / Soft Reboot: Restarts the TV.
- TPC / GSR: Temporal Peak Luminance Control and Global Sticky Reduction. These are OLED protection mechanisms. Disabling them might void warranties or cause burn-in. Use with caution.
- Picture Settings (Numbers): Direct control over Backlight, Contrast, etc.
You can launch apps using standard media player calls:
service: media_player.play_media
target:
entity_id: media_player.lg_webos_tv
data:
media_content_type: app
media_content_id: com.webos.app.youtubeSend raw commands to the library.
service: bscpylgtv.command
target:
entity_id: media_player.lg_webos_tv
data:
command: system_infoSend a toast notification.
service: notify.lg_webos_tv_notify
data:
message: "Hello World!"- Based on the
bscpylgtvlibrary by chros73.