DeLoHome
The house's control surface. Source lives at ~/code/DeLoHome; it ships one MCP hub and
one CLI generated from the same tool registry, so the two cannot drift.
Almost everything here fails in a way that looks like something else. A Chromecast that
"doesn't have Netflix" is a deprecated app id. A Hue pairing failure arrives as HTTP 200.
A Z-Wave switch that refuses to pair is still bonded to a controller that no longer
exists. The references carry those findings; read the one that matches the task before
touching hardware.
Operating principles
Prefer the CLI. delohome <domain> <tool> is generated by reflecting over the same
DomainRegistry the MCP server exposes, so a tool cannot exist in one and not the other.
No registration, works in any shell, and --json gives clean pipeable stdout. Reach for
MCP only when an agent session wants the tools resident — see
references/mcp-setup.md.
A panel is not a cast target. Three different kinds of thing share a screen here, and
conflating them is the most common mistake. A cast device accepts media pushed to it. A
display is the panel itself and accepts power, input and app commands but cannot be cast
to. An HDMI source is a box plugged into a panel. The living room has all three at once:
the Hisense panel owns power and input, the SHIELD in it owns content, and the Xbox is a
third source on the same screen.
Resolve the room, don't guess the device. Pass whatever the user actually said —
"Dommy's room", "the piano", "downstairs tv" are all in the map, and matching survives
speech-to-text mangling. delohome list-rooms is the disambiguator. Never hardcode an IP.
Verify before you assert. This project's facts were established by probing hardware,
and several contradict what the docs and the wider internet say. The README is orientation,
not ground truth; config/home.yaml is the source of truth for what exists, and
mise run discover diffs it against the live LAN.
Routing
Load the one reference that matches. Do not read them all.
| Signal in the request |
Load |
| "turn on/off the lights", "dim it", "set a scene", "warm", "cozy", Hue, brightness, colour temperature, the driveway / porch / foyer switches, Z-Wave |
references/lights.md |
| "put on X", "play", "cast", "what's playing", "pause", "turn it up", Netflix / Hulu / Disney / Max / Prime, Jellyfin, DeLoFlix, a movie or show by name |
references/media.md |
| "turn the TV on", "switch the input", "open Netflix on the TV", the bedroom Samsung, either LG, the Fire TV, Samsung TV Plus, tune a channel, the Xbox, the PS5 |
references/displays.md |
| "it says not paired", "pair it", "authorize", "allow USB debugging", adding a device, storing a credential, a token or client key |
references/setup.md |
| a device moved rooms or was renamed, a room or alias is missing or wrong, "discover", drift between the map and the LAN |
references/house-map.md |
| an agent session wants the tools resident rather than shelling out |
references/mcp-setup.md |
When something is broken and you do not yet know which layer, run the preflight first — it
answers "what is actually working right now" in one command:
bash ~/.agents/skills/delohome/scripts/doctor.sh
Decision tree: which surface does this task want?
Does the request name a room and an outcome? ("bedroom", "cozy")
├─ It is about light -> lights.md -> delohome lights ...
├─ It is about a specific title or "what's on"
│ ├─ The title is in DeLoFlix -> media.md -> delohome media play (exact, works)
│ └─ It is a streaming service
│ ├─ Cast device in that room -> media.md -> open the app; a plain
│ │ Chromecast cannot then be
│ │ navigated to a title
│ └─ Panel in that room -> displays.md-> launch the app ON the set
├─ It is about the screen itself (power, input, volume on the panel)
│ -> displays.md -> delohome displays ...
└─ It is about a box plugged into a screen (Xbox, PS5, SHIELD)
-> displays.md -> NOT YET WIRED: hdmi_input is
null until a panel is paired
Commands
The CLI mirrors the tool registry exactly. Required parameters are positionals in schema
order; optional ones are flags. Booleans are --on / --no-on, never a bare flag,
because several tools distinguish false from unset.
delohome # list domains
delohome lights # list that domain's tools
delohome lights set-lights bedroom --on -b 40 -k 2200
delohome lights activate-scene 'Savanna sunset' --room bedroom
delohome media play 'The Big Lebowski' dommy
delohome media now-playing
delohome displays display-status bedroom
delohome lights list-lights --json | jq -r '.hue[] | select(.light_count>0) | .house_room'
Repo tasks, for the things the CLI deliberately does not do:
| Need |
Run |
| Pair the Hue bridge |
mise run hue:pair |
| Capture + pair the bedroom Samsung |
mise run samsung:capture |
| Re-verify every Cast app id |
mise run verify:appids |
| Diff the LAN against the house map |
mise run discover |
| Generate the Z-Wave S2 keys (once, ever) |
mise run zwave:keys |
Credentials
Resolved environment-first, then 1Password, never written to disk. References are by
item UUID, not title: titles are not unique in DeLoSecrets, and a title containing
parentheses cannot be resolved by an op:// reference at all — op read returns an empty
string and a bare error, which then surfaces as a baffling 401 from whatever service you
were actually trying to reach.
Out of scope
- Nanoleaf panels — driven by
~/.config/zshyzsh/scripts/nanoleaf.sh, not DeLoHome.
- Host, container and network conventions —
delonet-conventions.
- 33GOD platform work —
33god-hub.
- Xbox and PS5 power control — modelled in the house map, no client implemented.
1---2name: delohome3description: "Control the DeLorenzo house: lights, TVs, casting, and the devices in every room. Covers Philips Hue rooms and scenes, Z-Wave switches, casting to Chromecasts and the SHIELD, the Jellyfin library (DeLoFlix), and direct panel control of the bedroom Samsung, the two LG webOS TVs and the living room Fire TV. Use for turning lights on or off, setting a scene, playing or pausing something on a TV, switching a TV's input or power, pairing a new device, or editing the house map. Triggers: delohome, the house, turn on the lights, set a scene, put on, cast, what's playing, bedroom TV, Dommy's room, Ava's room, Hue, Z-Wave, Chromecast, Jellyfin, DeLoFlix, Samsung TV Plus, Fire TV, the Xbox, the PS5, home.yaml. Do NOT use for DeLoNET infrastructure, containers or host conventions (delonet-conventions), 33GOD platform work (33god-hub), or the Nanoleaf panels, which are driven by ~/.config/zshyzsh/scripts/nanoleaf.sh and are not part of DeLoHome."4metadata:5 source: https://skillmd.com/skills/delorenj/delohome6---78# DeLoHome910The house's control surface. Source lives at `~/code/DeLoHome`; it ships one MCP hub and11one CLI generated from the same tool registry, so the two cannot drift.1213Almost everything here fails in a way that looks like something else. A Chromecast that14"doesn't have Netflix" is a deprecated app id. A Hue pairing failure arrives as HTTP 200.15A Z-Wave switch that refuses to pair is still bonded to a controller that no longer16exists. The references carry those findings; read the one that matches the task before17touching hardware.1819## Operating principles2021**Prefer the CLI.** `delohome <domain> <tool>` is generated by reflecting over the same22`DomainRegistry` the MCP server exposes, so a tool cannot exist in one and not the other.23No registration, works in any shell, and `--json` gives clean pipeable stdout. Reach for24MCP only when an agent session wants the tools resident — see25[references/mcp-setup.md](./references/mcp-setup.md).2627**A panel is not a cast target.** Three different kinds of thing share a screen here, and28conflating them is the most common mistake. A *cast device* accepts media pushed to it. A29*display* is the panel itself and accepts power, input and app commands but cannot be cast30to. An *HDMI source* is a box plugged into a panel. The living room has all three at once:31the Hisense panel owns power and input, the SHIELD in it owns content, and the Xbox is a32third source on the same screen.3334**Resolve the room, don't guess the device.** Pass whatever the user actually said —35"Dommy's room", "the piano", "downstairs tv" are all in the map, and matching survives36speech-to-text mangling. `delohome list-rooms` is the disambiguator. Never hardcode an IP.3738**Verify before you assert.** This project's facts were established by probing hardware,39and several contradict what the docs and the wider internet say. The README is orientation,40not ground truth; `config/home.yaml` is the source of truth for what exists, and41`mise run discover` diffs it against the live LAN.4243## Routing4445Load the one reference that matches. Do not read them all.4647| Signal in the request | Load |48|---|---|49| "turn on/off the lights", "dim it", "set a scene", "warm", "cozy", Hue, brightness, colour temperature, the driveway / porch / foyer switches, Z-Wave | [references/lights.md](./references/lights.md) |50| "put on X", "play", "cast", "what's playing", "pause", "turn it up", Netflix / Hulu / Disney / Max / Prime, Jellyfin, DeLoFlix, a movie or show by name | [references/media.md](./references/media.md) |51| "turn the TV on", "switch the input", "open Netflix **on the TV**", the bedroom Samsung, either LG, the Fire TV, Samsung TV Plus, tune a channel, the Xbox, the PS5 | [references/displays.md](./references/displays.md) |52| "it says not paired", "pair it", "authorize", "allow USB debugging", adding a device, storing a credential, a token or client key | [references/setup.md](./references/setup.md) |53| a device moved rooms or was renamed, a room or alias is missing or wrong, "discover", drift between the map and the LAN | [references/house-map.md](./references/house-map.md) |54| an agent session wants the tools resident rather than shelling out | [references/mcp-setup.md](./references/mcp-setup.md) |5556When something is broken and you do not yet know which layer, run the preflight first — it57answers "what is actually working right now" in one command:5859```bash60bash ~/.agents/skills/delohome/scripts/doctor.sh61```6263## Decision tree: which surface does this task want?6465```66Does the request name a room and an outcome? ("bedroom", "cozy")67├─ It is about light -> lights.md -> delohome lights ...68├─ It is about a specific title or "what's on"69│ ├─ The title is in DeLoFlix -> media.md -> delohome media play (exact, works)70│ └─ It is a streaming service71│ ├─ Cast device in that room -> media.md -> open the app; a plain72│ │ Chromecast cannot then be73│ │ navigated to a title74│ └─ Panel in that room -> displays.md-> launch the app ON the set75├─ It is about the screen itself (power, input, volume on the panel)76│ -> displays.md -> delohome displays ...77└─ It is about a box plugged into a screen (Xbox, PS5, SHIELD)78 -> displays.md -> NOT YET WIRED: hdmi_input is79 null until a panel is paired80```8182## Commands8384The CLI mirrors the tool registry exactly. Required parameters are positionals in schema85order; optional ones are flags. Booleans are `--on` / `--no-on`, never a bare flag,86because several tools distinguish false from unset.8788```bash89delohome # list domains90delohome lights # list that domain's tools91delohome lights set-lights bedroom --on -b 40 -k 220092delohome lights activate-scene 'Savanna sunset' --room bedroom93delohome media play 'The Big Lebowski' dommy94delohome media now-playing95delohome displays display-status bedroom96delohome lights list-lights --json | jq -r '.hue[] | select(.light_count>0) | .house_room'97```9899Repo tasks, for the things the CLI deliberately does not do:100101| Need | Run |102|---|---|103| Pair the Hue bridge | `mise run hue:pair` |104| Capture + pair the bedroom Samsung | `mise run samsung:capture` |105| Re-verify every Cast app id | `mise run verify:appids` |106| Diff the LAN against the house map | `mise run discover` |107| Generate the Z-Wave S2 keys (once, ever) | `mise run zwave:keys` |108109## Credentials110111Resolved environment-first, then 1Password, never written to disk. References are by112**item UUID**, not title: titles are not unique in `DeLoSecrets`, and a title containing113parentheses cannot be resolved by an `op://` reference at all — `op read` returns an empty114string and a bare error, which then surfaces as a baffling 401 from whatever service you115were actually trying to reach.116117## Out of scope118119- **Nanoleaf panels** — driven by `~/.config/zshyzsh/scripts/nanoleaf.sh`, not DeLoHome.120- **Host, container and network conventions** — `delonet-conventions`.121- **33GOD platform work** — `33god-hub`.122- **Xbox and PS5 power control** — modelled in the house map, no client implemented.