Skip to content
Projetos

Sobre

Home Assistant integration for GeekMagic displays (SmallTV Pro/Ultra). Server-side rendering, no device flashing required.

Design e mídia

Como estes números são medidos

O que você pode fazer

  • 17 widget types: entity, date/time, gauge (bar/ring/arc), progress, multi progress, clock, weather, status, status list, climate, chart, candlestick, media player, camera (also shows image.* entities such as Frigate detections), image, text, and a free-form HTML widget
  • 19 layouts: fullscreen, grids, splits, columns/rows, hero variants and sidebars
  • 17 themes: complete design systems (type, shapes, chrome, effects), not just palettes; the default is watchOS-inspired
  • Visual configuration: a GeekMagic sidebar panel with a live preview

Crescimento medido de estrelas

em 24 h
+4
em 7 dias
+17
em 15 dias
+30
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

GeekMagic Display for Home Assistant

HACS

GeekMagic Display running Home Assistant dashboard

A Home Assistant custom integration for GeekMagic displays (SmallTV Pro, Ultra, and similar ESP8266/ESP32-based devices).

How it works: Home Assistant renders your dashboards itself, with the Blitz HTML/CSS engine (no browser), and pushes the images to the device over HTTP. No flashing needed: the device keeps its firmware. Known stock firmware profiles are supported, as is the SD_PRO-style firmware some Ultra units ship with.

Contents

More detail lives in docs/: every widget at every size, the HTML widget, layouts, entities & the notify service, device compatibility and development.

Dashboard samples

System Monitor Smart Home Weather Server Stats

Media Player Energy Monitor Fitness Tracker Clock Dashboard

Network Monitor Thermostat Batteries Security

Features

  • 17 widget types: entity, date/time, gauge (bar/ring/arc), progress, multi progress, clock, weather, status, status list, climate, chart, candlestick, media player, camera (also shows image.* entities such as Frigate detections), image, text, and a free-form HTML widget
  • 19 layouts: fullscreen, grids, splits, columns/rows, hero variants and sidebars
  • 17 themes: complete design systems (type, shapes, chrome, effects), not just palettes; the default is watchOS-inspired
  • Visual configuration: a GeekMagic sidebar panel with a live preview
  • Global views: create views once, assign them to any number of devices, and cycle through them automatically
  • HTML widget: design your own cells with HTML/CSS and Jinja, with forecasts, history, pictures and the built-in rings, sparklines and icons, optionally animated
  • Live labels: every widget's label accepts a Home Assistant template
  • Notifications: a geekmagic.notify action shows temporary alerts with text, icons, camera images, or any picture by URL/path
  • Automation-friendly: brightness, sleep/wake, view selection and cycling are all entities
  • Configurable refresh: every 1-300 seconds

Installation

HACS (recommended)

  1. Open HACS in Home Assistant
  2. Click "Custom repositories"
  3. Add this repository URL (type: Integration)
  4. Install "GeekMagic Display"
  5. Restart Home Assistant

Manual

  1. Copy custom_components/geekmagic to your Home Assistant's custom_components folder
  2. Restart Home Assistant

Widgets

Every widget adapts to the cell it lands in. Here is each one fullscreen, in a 2×2 grid and in a 3×3 grid; click a name for every size and its options.

Widget Fullscreen 2×2 grid 3×3 grid
Entity Entity 1x1 Entity 2x2 Entity 3x3
Date / Time Date / Time 1x1 Date / Time 2x2 Date / Time 3x3
Gauge (Bar) Gauge (Bar) 1x1 Gauge (Bar) 2x2 Gauge (Bar) 3x3
Gauge (Ring) Gauge (Ring) 1x1 Gauge (Ring) 2x2 Gauge (Ring) 3x3
Gauge (Arc) Gauge (Arc) 1x1 Gauge (Arc) 2x2 Gauge (Arc) 3x3
Progress Progress 1x1 Progress 2x2 Progress 3x3
Multi Progress Multi Progress 1x1 Multi Progress 2x2 Multi Progress 3x3
Clock Clock 1x1 Clock 2x2 Clock 3x3
Weather Weather 1x1 Weather 2x2 Weather 3x3
Status Status 1x1 Status 2x2 Status 3x3
Status List Status List 1x1 Status List 2x2 Status List 3x3
Climate Climate 1x1 Climate 2x2 Climate 3x3
Chart Chart 1x1 Chart 2x2 Chart 3x3
Candlestick Candlestick 1x1 Candlestick 2x2 Candlestick 3x3
Media Player Media Player 1x1 Media Player 2x2 Media Player 3x3
Camera Camera 1x1 Camera 2x2 Camera 3x3
Image Image 1x1 Image 2x2 Image 3x3
Text Text 1x1 Text 2x2 Text 3x3
HTML HTML 1x1 HTML 2x2 HTML 3x3

The HTML widget takes any HTML/CSS and Jinja you write, animated with CSS if you like. Templates can read forecasts, history and camera pictures, and draw with the built-in widgets' rings, sparklines and icons. 23 example templates, each shown with its source:

Radar sweep Now playing Wind turbine Washing machine

Every widget's label also accepts a Home Assistant template (details).

State icons

Entity widgets pick icons and wording from the entity's state: binary sensors by device_class (door open/closed, motion detected/clear, lock locked/unlocked…, from Home Assistant's own icon definitions), and lights, switches and fans by on/off (details).

Binary sensor states More binary sensor states Domain state icons

Layouts

19 layouts split the screen into slots. A few of them:

Fullscreen Grid 2x2 Grid 3x3 Hero Hero corner Sidebar left Split 1:2 Three rows

See all layouts with their slot counts.

Themes

Choose from 17 built-in themes that go beyond colours: each applies a complete design system with its own typography (rounded Nunito on most themes), spacing, shapes, tinted gauge tracks, and visual effects.

The default watchOS theme is inspired by Apple's watchOS Human Interface Guidelines: true-black background, Apple system colors, opacity-based text hierarchy, tinted Activity-ring style gauges, and no card chrome, so widgets float on the background for maximum information density. StandBy is the same system on translucent cards, like iOS StandBy widgets; Night is a red-on-black bedside mode that overrides every widget colour.

watchOS StandBy Night Classic
watchOS
Default, Apple watchOS HIG-inspired
StandBy
Translucent cards, like iOS StandBy
Night
Red-on-black bedside mode
Classic
Subtle card chrome, system colors
Minimal Neon Retro Soft
Minimal
Sharp, monochrome
Neon
Cyberpunk with glow
Retro
Terminal scanlines
Soft
Cozy, very rounded
Ocean Sunset Forest Light
Ocean
Deep blue, nautical
Sunset
Warm coral/orange
Forest
Natural earth tones
Light
Clean white background
Candy Blueprint Ink Aurora
Candy
Playful pastels
Blueprint
Engineering drawing on drafting-grid paper
Ink
Warm newsprint with one pot of red ink
Aurora
Luminous mesh-gradient poster, frosted glass
Brutal
Brutal
Neo-brutalism: hard borders, harder shadows

StandBy and Night

The dashboards above in the StandBy theme (widgets on translucent cards) and the Night theme (a single red ramp for the bedside, overriding every widget colour):

StandBy
StandBy: Smart Home StandBy: Energy StandBy: Clock StandBy: Thermostat
Night
Night: Clock Night: Weather Night: Thermostat Night: Batteries

Configuration

Adding a device

  1. Go to Settings → Devices & Services
  2. Click Add Integration
  3. Search for "GeekMagic"
  4. Enter your device's IP address

Changing a device's address

If DHCP moves your device to a new IP, use Reconfigure on the integration entry (the three-dot menu next to the device) and enter the new address. The entry keeps its views, options and entity IDs, so automations referencing the device keep working.

Using the GeekMagic panel

After installation, a GeekMagic item appears in your sidebar.

Displays and views

GeekMagic panel: a display with its live screen and rotation, and the views gallery

  • Each display shows its live screen, what it is showing now, previous/next, brightness, and Rotate views with its interval (the same controls as its entities, see Entities, services & automations)
  • Its rotation is the strip of views below: tap a view to show it now; reorder by dragging or with each view's menu; + Add puts more views in the rotation. The view on screen is ringed
  • Every preview (the screens, the rotation, the gallery) re-renders once a minute while the page is open, so clocks and readings stay current
  • Views below are every view you have, with which display shows them. Click one to edit it; its menu duplicates or deletes it. + Add view creates one
  • Picking one of the device's built-in modes (Clock, Weather...) with its Display select while rotation is on shows it for one interval, then the rotation resumes. Turn rotation off to stay on a built-in mode

View editor

GeekMagic View Editor

  • The preview is the editor: it is the real render, and you click a cell on it to edit that widget (arrow keys move between cells, dragging one cell onto another swaps them)
  • Animated views play on their own: a view with animated widgets shows its still, then the GIF an unrotated display is sent; after an edit the still updates at once and the animation follows a second later (a recently rendered version plays instantly), and a playing GIF re-renders each minute so a clock in it stays current
  • Widgets are picked from a grouped list, each previewed as it renders in a cell the size of the one you're filling; only the options that apply to your choices are shown
  • Layout & theme: 19 layouts drawn as tiles, and 17 themes shown as your own view in each theme
  • Save keeps you in the editor; leaving with unsaved changes asks first

GeekMagic View Editor's Layout & theme tab: layout tiles and the view rendered in every theme

The Layout & theme tab: pick a layout from its tiles, and a theme by how your own view looks in it.

Device info page

Each device exposes entities for brightness, refresh interval, the displayed view, and status (see Entities, services & automations):

GeekMagic Device Info

Entities, services & automations

Each device gets entities to control it from automations: a Display select (which view or built-in screen is shown), Brightness, an Active switch to sleep/wake the screen, View Cycling with its interval, Animations, refresh interval, image quality, rotation, and buttons to refresh or step through views. A geekmagic.notify action shows temporary alerts, with a camera snapshot or any picture by URL/path:

action: geekmagic.notify
data:
  device_id: "abc123"
  message: "Someone at the door"
  image: camera.front_door
  duration: 30

See Entities, services & automations for the full entity list, how the integration limits flash writes, every notify option, and a presence-based sleep/wake automation.

Device compatibility

Device / firmware Support
SmallTV Ultra, stock firmware Full
SmallTV-PRO, stock firmware Full, with a managed picture album (select the Picture app on the device once after setup)
Ultra with SD_PRO community-style firmware Through the Photo slideshow
Smart Weather Clock, legacy web-form firmware Through Photo mode, slot 1

Other GeekMagic devices may work if they expose one of those APIs. See Device compatibility for how each profile is detected, per-device reports, open-source firmware, and how to capture a report for a device that doesn't work yet.

Troubleshooting

The display shows "Rendering engine disabled" and Settings > Repairs has a "GeekMagic rendering engine disabled" issue. Before loading its rendering engine (blitz-py, native code) into Home Assistant, the integration renders a test frame with it in a separate process. That test crashed on your system, so the engine was not loaded: the same crash inside Home Assistant would have taken it down. Home Assistant and your devices' entities keep working; only the dashboards are replaced by that screen. The test runs again at every restart and the issue clears itself once it passes.

Please open an issue with the error logged by custom_components.geekmagic.engine_probe (Settings > System > Logs, show raw logs): it names the signal, the blitz-py and Python versions, the platform, and the test's last output. If Home Assistant runs in a virtual machine, include the CPU model the VM is configured with.

The display shows "blitz-py >= 0.4.2 required": the rendering engine is not installed. Home Assistant installs it from the integration's requirements; restart Home Assistant and check its logs for a failed blitz-py install.

Development

uv sync                    # install dependencies
uv run pytest              # run tests
scripts/dev-ha             # throwaway Home Assistant with a fake device and demo views (Docker)

See Development for the local Home Assistant, regenerating samples and screenshots, and testing against a real device.

Background & Credits

I have a GeekMagic Ultra with ESP8266, which has limited possibilities for flashing with ESPHome. Instead of fighting the hardware, this integration takes a different approach: render everything server-side and push images to the device.

Special thanks to:

License

MIT

Explore projetos relacionados

Carregando…