Skip to content

Instantly share code, notes, and snippets.

@yschimke
Last active April 21, 2026 12:51
Show Gist options
  • Select an option

  • Save yschimke/09c6fbeb83f71b4de3442a410010ee3f to your computer and use it in GitHub Desktop.

Select an option

Save yschimke/09c6fbeb83f71b4de3442a410010ee3f to your computer and use it in GitHub Desktop.
homeassistant-remotecompose card previews

homeassistant-remotecompose — card previews

Side-by-side comparison of rendered RemoteCompose output against HA reference screenshots (both themes, every implemented card type). See yschimke/homeassistant-remotecompose for the library source.

End-to-end dashboard

A realistic vertical-stack — heading + tiles + entities (with toggles)

  • glance — all in one .rc document, side-by-side with the HA capture of the same YAML config.
Home Assistant RemoteCompose
Home (light)
Home (dark)

tile

Light theme

variant Home Assistant RemoteCompose
temperature sensor
light on
light off
lock locked
cover

Dark theme

variant Home Assistant RemoteCompose
temperature sensor
light on

button

Light theme

variant Home Assistant RemoteCompose
light on
light off

Dark theme

variant Home Assistant RemoteCompose
light on
light off

entity

Home Assistant RemoteCompose
temperature (light)
temperature (dark)

entities

Home Assistant RemoteCompose
living room (light)
living room (dark)

glance

Home Assistant RemoteCompose
overview (light)
overview (dark)

markdown

Home Assistant RemoteCompose
notes (light)
notes (dark)

State variants (single document, binding-driven)

Each tile emits one .rc document whose accent + chip flip based on a named RemoteBoolean that the player updates live — same bytes, three rendered states.

Light entity

on off unavailable

Cover entity

closed open opening

Lock entity

locked unlocked locking

Layout-only cards (no HA reference — wrapper visual)

Card Light Dark
vertical-stack
horizontal-stack
grid
heading
gauge (unsupported placeholder)

Known gaps

  • Chip shape. Tile icon chip renders as a rounded rectangle instead of a full circle despite .clip(RemoteCircleShape) — looks like an alpha08 player clip bug, not a composable bug.
  • Icons differ slightly in style. Compose Material Symbols vs HA's MDI — same meaning, different geometry. Accepted.
  • ColorTheme. Today we render one document per theme. When the creation-side DSL for androidx.compose.remote.core.operations.ColorTheme is public we collapse to a single document that switches palettes at playback.

Reproducing

git clone https://github.com/yschimke/homeassistant-remotecompose
cd homeassistant-remotecompose

scripts/render-previews.sh      # our PNGs
scripts/stage-gist.sh           # stage side-by-side under /tmp/ha-rc-gist
scripts/publish-gist.sh         # push to the gist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment