modscode / Gallery / vome-dash
vome-dash
A Home Assistant dashboard in a side pane of Claude Code, working: live states, and controls that toggle, step and run as the dashboard's own do. Shows the dashboard Claude reads or edits, with what a save changed lit up, or one picked wit…
What it does
- Draws a pane in the desktop app
- Adds /dash
- Watches tool calls and can refuse them
- Hooks session.start
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like vome-dash by Vortitron (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/vortitron-vome-dash/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Dashboard" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Button, Text, Markdown, Code } = $.ui.resolve(e)
const title = '…'
const title2 = '…'
const spinner = '…'
const title3 = '…'
const spinner2 = '…'
const title4 = '…'
const spinner3 = '…'
const title5 = '…'
const spinner4 = '…'
const title6 = '…'
const spinner5 = '…'
const title7 = '…'
const spinner6 = '…'
const title8 = '…'
const spinner7 = '…'
const title9 = '…'
const spinner8 = '…'
const title10 = '…'
const spinner9 = '…'
const message = '…'
const server = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" gap={1}>
<Button />
<Button />
<Button />
</Box>
<Box flexDirection="row" gap={1}>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Text dimColor>
Dashboards
</Text>
<Button>
{`▸ ${title}`}
</Button>
<Button>
{`▸ ${title}`}
</Button>
<Button>
{`▸ ${title}`}
</Button>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1} paddingRight={2}>
<Button hotkey="m">
Close
</Button>
<Box flexGrow={1} flexShrink={1} minWidth={4} overflow="hidden">
<Text bold wrap="truncate-end">
{title}
</Text>
</Box>
<Button hotkey="r" dimColor>
Reload
</Button>
</Box>
<Box flexDirection="row" flexWrap="wrap" gap={1}>
<Button />
<Button />
<Button />
</Box>
<Box flexDirection="row" gap={1}>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title2}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title3}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner2}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title4}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner3}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title5}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner4}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title6}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner5}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title7}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner6}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title8}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner7}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title9}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner8}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1}>
<Box flexDirection="row">
<Box flexGrow={1} flexShrink={1} overflow="hidden">
<Text bold wrap="truncate-end">
{title10}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Text color="warning">
{spinner9}
{" sending"}
</Text>
<Button>
○━━
</Button>
</Box>
</Box>
</Box>
</Box>
</Box>
<Text color="warning" wrap="wrap">
{message}
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="warning" paddingX={1} marginTop={1}>
<Text color="warning" wrap="wrap">
Auto mode refused the press. Pressing a control here calls ha_call_service, and allowing that by name would let Claude …
{" "}
~/.claude/settings.json
{" if you are happy with that:"}
</Text>
<Markdown text="[~/.claude/settings.json](file://~/.claude/settings.json)" />
<Code source={`"mcp__${server}__ha_call_service"`} />
<Box flexDirection="row" gap={2}>
<Button hotkey="c">
Copy
</Button>
<Button hotkey="t">
Retry the press
</Button>
<Button dimColor>
Dismiss
</Button>
</Box>
</Box>
</Box>
</Box>
</Box>
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
claude-plugin/vome-dash/hooks/register.tsx lines 128–287 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Code, Markdown } = $.ui.resolve(e)
const settingsLink = <Markdown text={`[${settingsFile}](file://${settingsFile})`} />
const current = (await $.state.get(dash)).value ?? null
const shownView = (await $.state.get(view)).value ?? 0
const live = (await $.state.get(states)).value ?? {}
const lighting = (await $.state.get(lit)).value ?? null
const texts = (await $.state.get(rendered)).value ?? {}
const series = (await $.state.get(history)).value ?? {}
const asking = (await $.state.get(confirm)).value ?? null
const picking = (await $.state.get(choices)).value ?? null
const refusal = (await $.state.get(blocked)).value ?? null
const message = (await $.state.get(note)).value ?? null
const presses = (await $.state.get(pending)).value ?? {}
const isMenuOpen = (await $.state.get(sidebarOpen)).value ?? false
const pictures = (await $.state.get(frames)).value ?? {}
const width = Math.max(30, e.props.bodyColumns)
const isLit = (key: string) => lighting !== null && Date.now() - lighting.at < LIT_MS && lighting.keys.some(k => key === k || key.startsWith(`${k}/`))
const help = refusal ? (
<Box flexDirection="column" borderStyle="round" borderColor="warning" paddingX={1} marginTop={1}>
{refusal.tool === 'ha_call_service' ? (
<Text color="warning" wrap="wrap">
Auto mode refused the press. Pressing a control here calls ha_call_service, and allowing that by name would
let Claude change things without asking too. Switch auto mode off to use the controls, or allow it in
{' '}{settingsFile} if you are happy with that:
</Text>
) : (
<Text color="warning" wrap="wrap">
Auto mode refused the pane's read of live states. Add these to permissions.allow in {settingsFile}; they only read:
</Text>
)}
{settingsLink}
<Code source={refusal.tool === 'ha_call_service' ? `"mcp__${refusal.server}__ha_call_service"` : READS.map(t => `"mcp__${refusal.server}__${t}"`).join(',\n')} />
<Box flexDirection="row" gap={2}>
<Button
key="copy-rule"
hotkey="c"
onPress={press =>
$.ui.copy({
text: refusal.tool === 'ha_call_service' ? `"mcp__${refusal.server}__ha_call_service"` : READS.map(t => `"mcp__${refusal.server}__${t}"`).join(',\n'),
surface: press.surface,
})
}
>
Copy
</Button>
<Button
key="retry"
hotkey="t"
onPress={async () => {
await $.state.set(blocked, null)
// Allowed since: nothing stays switched off for having been refused once.
hasSnapshot = true
hasMaxPoints = true
framesRetryAt = 0
watchRetryAt = 0
if (refusal.tool === 'ha_call_service' && lastCall) await callService($, lastCall.server, lastCall.call)
else void poll($, true)
}}
>
{refusal.tool === 'ha_call_service' ? 'Retry the press' : 'Retry'}
</Button>
<Button key="dismiss-rule" dimColor onPress={() => $.state.set(blocked, null)}>
Dismiss
</Button>
</Box>
</Box>
) : null
const picker = picking ? (
<Box flexDirection="column" marginTop={1}>
<Text bold>Dashboards</Text>
<Box flexDirection="row" flexWrap="wrap" gap={1}>
{picking.map(choice => (
<Button
key={`pick-${choice.urlPath}`}
onPress={async () => {
await $.state.set(choices, null)
const server = current?.server ?? (await dashServers($))[0]
if (server) await loadDashboard($, server, choice.urlPath)
}}
>
{choice.title}
</Button>
))}
</Box>
</Box>
) : null
if (!current) {
return (
<Box flexDirection="column">
<Text dimColor wrap="wrap">
No dashboard yet. It appears here, working, when Claude reads or saves one, or pick one with /dash.
</Text>
{picker}
{message ? <Text color="warning" wrap="wrap">{message}</Text> : null}
{help}
</Box>
)
}
const views = viewsOf(current.config)
const index = Math.min(shownView, Math.max(0, views.length - 1))
const shown: View | undefined = views[index]
// The home's dashboards down the left, as Home Assistant's sidebar has them, until one is picked.
const hasMenu = (picking?.length ?? 0) > 1
const isSidebar = isMenuOpen && hasMenu && width >= 70
// Wide enough for the longest title, its marker and a button's brackets, inside the border.
const longest = Math.max(10, ...(picking ?? []).map(choice => choice.title.length))
const sidebarWidth = Math.min(SIDEBAR_MAX, Math.max(SIDEBAR_MIN, longest + 2 + 4 + 4))
const mainWidth = isSidebar ? width - sidebarWidth - 1 : width
// Columns as Home Assistant's desktop layout has them: as many as fit, cards stacked in each.
const columns = mainWidth >= 120 ? 3 : mainWidth >= 72 ? 2 : 1
const cardWidth = columns > 1 ? Math.floor((mainWidth - (columns - 1)) / columns) : mainWidth
lastCardWidth = cardWidth
/** What a control's press is doing, for the row it is on. */
const pressOf = (prefix: string): Pending | undefined =>
Object.entries(presses)
.filter(([key]) => key === prefix || key.startsWith(`${prefix}/`))
.map(([, p]) => p)
.sort((a, b) => b.at - a.at)[0]
const spinner = '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'[Math.floor(Date.now() / 120) % 10]
const pressNote = (p: Pending | undefined) =>
!p ? null : p.phase === 'sending' ? (
<Text color="warning">{spinner} sending</Text>
) : p.phase === 'sent' ? (
<Text color="suggestion">{spinner} sent, waiting</Text>
) : p.phase === 'done' ? (
<Text color="success">✓</Text>
) : p.phase === 'quiet' ? (
<Text color="warning">no change seen</Text>
) : (
<Text color="error">✗ failed</Text>
)
const press = async (key: string, call: ServiceCall) => {
if (call.confirm && !(asking && asking.key === key && asking.until > Date.now())) {
await $.state.set(confirm, { key, until: Date.now() + CONFIRM_MS })
return
}
await $.state.set(confirm, null)
await pressAndWatch($, current.server, key, call)
}
const entityRow = (row: Extract<Row, { kind: 'entity' }>, key: string) => {
const now: Live | undefined = live[row.entity]
const state = now?.state ?? '…'
const attributes = now?.attributes ?? {}
const name = row.name ?? (typeof attributes.friendly_name === 'string' ? steady(attributes.friendly_name) : row.entity)
const unit = typeof attributes.unit_of_measurement === 'string' ? ` ${attributes.unit_of_measurement}` : ''
const toggle = toggleFor(row.entity)
const down = now ? stepFor(row.entity, attributes, state, -1) : null
const up = now ? stepFor(row.entity, attributes, state, 1) : null
const isOn = state === 'on'
const shownState = row.entity.startsWith('light.') && isOn && typeof attributes.brightness === 'number' ? `on ${Math.round((attributes.brightness / 255) * 100)}%` : `${formatState(state)}${unit}`
const going = pressOf(key)
const isFresh = going?.phase === 'done'
// A light that is on glows in its own colour, as brightly as it is lit.Licence text (MIT)
MIT License Copyright (c) 2026 Andrew Lyeklint Hancock (Vortitron) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
env varstool callsremembers
The design, read from code
"mcp__Retry__ha_call_service"Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 780616c7a4f7 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.claude-plugin/vome-dash/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add Vortitron/home-assistant-mcp/plugin install vome-dash@vomeThis installs the marketplace's latest commit, which may not be the one read here (780616c7a4f7). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "vortitron-vome-dash" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Mod controlsLive Claude ModCount: 0 / Initial / oneAdd oneName InitialOne**Markdown** with a [link](https://example.com)
const count = 1;
./counter.tsxFill composerAppend noteSuggest draftCopy text -
Ask Claude…Desktop Markdown ReaderDesktop Markdown ReaderMarkdown file README.md applyChoose a Markdown file.No document loaded.Copy Markdown sourceRefresh
-
Ask Claude…⏺ src/ WriteUpdated·0·0·0search: Edit nextUpdated1/3── Updated ────────› Edit› Edit› Edit⎿Updated> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎⋯> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎
-
Ask Claude…Tasks for you● Open (3)● Completed (3)Auto: on---Let Claude use this pane on its own?Claude would post anything only you can do here, and check tasks off when you confirm them in chat.Nothing for you to do right now.Yes, automaticallyOnly when I ask---#a1b2c3d Fix login31. CopyCopy
npm test31. CopyCopynpm test31. CopyCopyExpect: Donenpm testDoneCopyCopyCopyCancel replyReply What happened? Paste output or describe it send---#a1b2c3d Fix login31. CopyCopynpm test31. CopyCopynpm test31. CopyCopyExpect: Donenpm testDoneCopyCopyCopyCancel replyReply What happened? Paste output or describe it send---#a1b2c3d Fix login31. CopyCopynpm test31. CopyCopynpm test31. CopyCopyExpect: Donenpm testDoneCopyCopyCopyCancel replyReply What happened? Paste output or describe it send -
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
Ask Claude…PR securityall3 shown · 3 ignoredLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — Editignored (3)⋯src/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Merge