glasshouse README

项目的 README,来自 github.com/rorygallagher2024/glasshouse。合并为一个 markdown 文件:README.md。

Glasshouse logo: a G whose top is a roof

Glasshouse

Own the glass. A dashboard, privacy controls and Home Assistant bridge for rooted LG webOS TVs.

[!NOTE]

You bought the TV.

It's your TV and you should control it. You own the glass.

Designed for those who reject their network-connected home appliances being used as a platform for advertising, telemetry and vendor-controlled experiences, this project brings control, visibility and automation back to the device.

It offers multiple ways to remove ads, withdraw from agreements and services designed to monetize your data, and make the TV a simpler, more streamlined experience — alongside a wide range of useful features, customisation and local smart-home integration.

Glasshouse itself is local, transparent, and requires no cloud service. No nonsense, no data collection, no ads, no dark patterns. I don't want your data.

Glasshouse is a server that runs directly on a rooted LG webOS TV, providing both a live browser dashboard and a dashboard app.

Use it for remote control, app installation and removal, OLED panel care, privacy controls, service menu access, and hardware telemetry. It also includes an MQTT bridge for integrating the TV with Home Assistant and other smart-home software.

Compatibility at a glance

Read the documentation for the features, installation, Home Assistant and security.


Quick start

  1. Root the TV and install the Homebrew Channel.
  2. Clone this repository on a computer on the same network as the TV.
  3. Run ./deploy.sh <tv-ip> from the server/ directory.
  4. Open http://<tv-ip>:8080/ in a browser.

That's it. The dashboard is ready to use.

The installation guide has the details and troubleshooting.


What it's for

https://github.com/user-attachments/assets/a1efd451-681d-4c3b-87d7-8358ff3d19f3

This project is intended to give a rooted webOS TV a useful local control surface instead of requiring the owner to work around the TV's built-in menus, vendor services and cloud dependencies.

  1. Cleaner Home screens. A choice of replacement home screens to choose from, all with full control, and no ads. Features include using your own pictures or videos as the background, Internet TV channels (from your own IPTV playlist or satellite tuner) and control of your home via Home Assistant.

  2. Controlling the TV without the cloud. A remote that comes up over any tab or sits on a phone's Home Screen, with a D-pad, touchpad and keyboard, plus volume, inputs, power, sleep timer, comprehensive picture and sound settings, Game Optimizer, and much more.

  3. Seeing what the TV is configured to collect, and switching it off. One button to turn ads and telemetry off, including LG's content-recognition engine. Every data agreement is recorded in the app, with most of them switchable from the dashboard.

  4. App management and debloating. Install apps from the Homebrew Channel catalog, uninstall apps, disable unnecessary background system services to free up RAM and CPU cycles, stop LG keeping apps loaded in the background that are never used, and hide non-removable built-in LG system apps from LG's Home.

  5. Remapping the remote's buttons. Point Netflix, Prime Video, Guide, the color keys and the TV's other shortcut buttons at any installed app, an HDMI input or Live TV, or turn them off. A key can also step the screen's brightness, or open a strip of the HDMI inputs or Glasshouse Bar over the picture.

  6. Replacing the screen saver. Over a dozen screensavers to choose from, community screensavers to download, and customisable settings including brightness control. The picture frame turns the TV into a frame for your own photos, a folder on your NAS, or openly licensed paintings and space photography.

  7. Integrating the TV with a smart home. The MQTT bridge exposes the TV as a single device with its controls and telemetry, with Home Assistant support through MQTT Discovery and the same underlying interface available to other MQTT clients. An optional media player card brings power, volume, sources, apps and Internet TV channels together, and button press events let your TV remote control your smart home.

  8. Controlling your home from the TV. A remote button brings up a bar of your Home Assistant lights, thermostats, fans, blinds, locks and scenes over whatever is playing, and Glasshouse Home can show them as a row. Home Assistant can also put a question on the screen, such as "Dim the lights for the film?", answered with the remote, and show the values you care about, such as the next bin day, beside the clock.

  9. Seeing what the TV is actually doing. SoC temperature, CPU load, memory, Wi-Fi signal and throughput, storage health, watch time and much more.

  10. Observing OLED panel wear. Track the lifetime use of your TV with cumulative panel hours, compensation cycle progress, Pixel Refresher countdown with scheduling, completed cycle counters and refresher failure alerts.

  11. Controlling the OLED burn-in protections. Surfaces all the burn-in protections, explains what each one does and allows you to switch them off. This includes ASBL and Global Stress Reduction which is normally reachable only from a TV's service menu with a service remote and a PIN.

  12. Opening the service menu, and unlocking it where it is locked. LG's own engineering menu, put on the TV screen from a browser which means no service remote is needed. Newer firmware shows a cut-down version of it until it is unlocked, which the dashboard can do as well.

  13. Keeping LG's updates, and root, under your control. Block the TV's own software updates, which can take root away, while apps keep updating. Glasshouse updates itself in one click, from the dashboard or from Home Assistant.

  14. Screen time limits. A daily limit, a bedtime, and limits for single apps or inputs, with a warning on screen before time runs out.

  15. Ambient lighting. Switch Hue Sync and PicCap on and off from the dashboard or Home Assistant, and PicCap from a button on the remote too.

  16. Reading all of it on the TV itself. An optional app on the home screen puts the same readings and controls on the TV, driven by the remote, for when there is no phone or laptop to hand.

  17. Managing TVs from Android. A phone app that keeps a list of TVs, shows which are online, wakes them over Wake-on-LAN, and opens each one's dashboard or remote full screen, with the phone's volume keys stepping the TV's volume while the remote shows.


Screenshots

Metrics tab: SoC temperature, system readouts, storage and Magic Remote battery, dark theme, with the screen glow on (OLED42C24LA)   Control tab: panel, source, volume, playback, sleep timer and power, light theme, with the screen glow on (OLED42C24LA)
Metrics and Control tabs, shown in dark and light themes, with the screen glow taking its colours from the TV.

More screenshots, including Home Assistant.


Android app

Glasshouse for Android keeps a list of TVs, shows which are online and opens each one's dashboard full screen. A TV is added by scanning any QR code on its dashboard, which carries the token as well. See the Android app documentation for more details.

It is on Google Play, for Android 10 and later. Problems and suggestions go in the app's issues.


Documentation

The pages are built from docs/, so they can also be read there.


Security

The dashboard has no authentication by default, for frictionless control from any phone or browser on a trusted local network. Never expose port 8080 directly to the internet (do not port-forward). Security covers the token, closing the port to the network, and MQTT.


Support the project

Glasshouse is free, open-source, and maintained in spare time alongside community contributions. If it provides value to you, donations are much appreciated, helping to offset the personal cost of LLM tokens used for development and webOS research.

Buy Me A Coffee


Disclaimer

Use this software at your own risk.

License

MIT. See LICENSE.

glasshouse (rorygallagher2024/glasshouse)

正在搜索数据库…

这是什么?Glasshouse 是一台直接运行在已 root 的 LG webOS 电视上的自托管服务器,给你一个实时仪表盘,可用于远程控制、隐私控制、系统精简、广告/遥测拦截和自定义屏保,还有可选的 MQTT 桥接用于集成 Home Assistant。
它是装在手机上的应用,还是直接跑在电视上?它作为服务器直接运行在电视本身上。你可以从同一网络中的任何浏览器访问仪表盘,另有一个可选的电视端仪表盘应用,方便你手边只有遥控器时使用。
怎么让它运行起来?给电视 root 并安装 Homebrew Channel,在与电视同一网络的电脑上克隆本仓库,然后在 server/ 目录下运行 ./deploy.sh,再用浏览器打开仪表盘。
电视需要 root 权限或其他条件吗?需要。电视必须已经通过 Homebrew Channel 获取 root 并有 Telnet 或 SSH 访问;跑起来之后,电视本身不需要外部依赖,也不需要联网。
它在任何 LG 电视上都能用吗?只能在已 root 的 webOS 电视上使用(已确认 webOS 3.4 到 26、2016-2025 年机型),而且有些功能与面板相关——OLED Care 只出现在 OLED 面板上,隐藏主屏幕系统应用的功能在 webOS 10 及以上还没有。
它支持哪些电视型号?已验证 28 个具体型号(包括 B7-G5 OLED 系列和若干 UH/QNED/LX 机型),webOS 3.4 到 26 在 2016-2025 年的电视上均确认可用,其他已 root 的型号很可能也能跑。
对电视自身的数据收集它做了什么?它把电视上所有数据收集开关都摆到你面前——LG 的内容识别引擎、广告跟踪标识符和诊断上传——让你能关掉其中大部分,还能直接在电视上拦截 LG 的广告和遥测端点。
打开服务菜单能做什么?它可以从浏览器直接在屏幕上打开 LG 自家的工程服务菜单,不需要工程遥控器或 PIN,还能解锁新固件通常显示的精简版菜单。
它包含哪些屏保?时钟、星空、烟花,或电视自身的实时硬件读数,每种都有暗色和亮色两种版本,用来替代 LG 自带的屏保。
它能帮助防止 OLED 烧屏吗?在 OLED 面板上,它会跟踪面板累计使用小时数、Pixel Refresher 倒计时和补偿周期,并能直接控制屏幕位移、Logo 减暗、ASBL 和 Global Stress Reduction 等防烧屏保护。
与 Home Assistant 的集成是怎么工作的?电视通过 MQTT Discovery 在 Home Assistant 中显示为一个统一设备,把它的控制和遥测暴露为原生实体;同一套 MQTT 接口也能配合其他智能家居软件使用。
大小
73.9 MB
星标
2.3K
时长
2个月
提交 · 90 天