adrienbrault/geekmagic-hacs
À propos
Intégration Home Assistant pour les écrans GeekMagic (SmallTV Pro/Ultra). Rendu côté serveur, sans besoin de flasher l’appareil.
Design et médiasWhat you can do
- 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
Progression mesurée des étoiles
- in 24h
- +6
- in 7 days
- +15
- in 15 days
- +31
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalGeekMagic Display for Home Assistant
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
- Dashboard samples
- Features
- Installation
- Widgets
- Layouts
- Themes
- Configuration
- Entities, services & automations
- Device compatibility
- Troubleshooting
- Development
- Background & Credits
More detail lives in docs/: every widget at every size, the HTML widget, layouts, entities & the notify service, device compatibility and development.
Dashboard samples
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.notifyaction 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)
- Open HACS in Home Assistant
- Click "Custom repositories"
- Add this repository URL (type: Integration)
- Install "GeekMagic Display"
- Restart Home Assistant
Manual
- Copy
custom_components/geekmagicto your Home Assistant'scustom_componentsfolder - 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 | |||
| Date / Time | ![]() |
![]() |
![]() |
| Gauge (Bar) | ![]() |
![]() |
![]() |
| Gauge (Ring) | ![]() |
![]() |
![]() |
| Gauge (Arc) | ![]() |
![]() |
![]() |
| Progress | ![]() |
![]() |
![]() |
| Multi Progress | ![]() |
![]() |
![]() |
| Clock | ![]() |
![]() |
![]() |
| Weather | ![]() |
![]() |
![]() |
| Status | ![]() |
![]() |
![]() |
| Status List | ![]() |
![]() |
![]() |
| Climate | ![]() |
![]() |
![]() |
| Chart | ![]() |
![]() |
![]() |
| Candlestick | ![]() |
![]() |
![]() |
| Media Player | ![]() |
![]() |
![]() |
| Camera | ![]() |
![]() |
![]() |
| Image | ![]() |
![]() |
![]() |
| Text | ![]() |
![]() |
![]() |
| HTML | ![]() |
![]() |
![]() |
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:

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).
Layouts
19 layouts split the screen into slots. A few of them:
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 |
|---|---|---|---|
![]() Default, Apple watchOS HIG-inspired |
![]() Translucent cards, like iOS StandBy |
![]() Red-on-black bedside mode |
![]() Subtle card chrome, system colors |
| Minimal | Neon | Retro | Soft |
![]() Sharp, monochrome |
![]() Cyberpunk with glow |
![]() Terminal scanlines |
![]() Cozy, very rounded |
| Ocean | Sunset | Forest | Light |
![]() Deep blue, nautical |
![]() Warm coral/orange |
![]() Natural earth tones |
![]() Clean white background |
| Candy | Blueprint | Ink | Aurora |
![]() Playful pastels |
![]() Engineering drawing on drafting-grid paper |
![]() Warm newsprint with one pot of red ink |
![]() Luminous mesh-gradient poster, frosted glass |
| 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 | |||
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
| Night | |||
![]() |
![]() |
![]() |
![]() |
Configuration
Adding a device
- Go to Settings → Devices & Services
- Click Add Integration
- Search for "GeekMagic"
- 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
- 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
- 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
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):
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:
- The Home Assistant Community thread for documenting GeekMagic device capabilities
- Aydar (@aydarik) for sharing the bash script that demonstrated how to push images to these devices - the core inspiration for this integration
License
MIT
Explorer des projets similaires
Chargement…














































































