sumitaich1998/jarvisvr / skills/smart-home/control-lighting
control-lighting
VerifiedControl smart lights — on/off, brightness, and grouping by room — via a smart home panel. Use for "turn on the lights", "dim the living room to 30%", "lights off", or "warm up the bedroom lights". Triggers: lights, lamp, brightness, dim, brighten, turn on/off lights, set lights to.
Control Lighting
Render and drive light devices on a smart_home_panel. Lights use a boolean
on and a 0–100 level (brightness).
Steps
- Resolve scope. Which room/group? Use the named room or the user's current
room (from
client.scene). If unclear and it matters,clarify-intent. - Compute the target state. "On" →
on:true; "dim to 30%" →level:30; "off" →on:false. "Warm/cool" maps to acolor_temp-style key if the device supports it (state allows device-specific keys). - Render/refresh the panel with
show_smart_home, scoped to lights. - Apply & confirm — emit
holo.updatereflecting the new states and a shortagent.speech. - React to manual control events from the panel.
Output
smart_home_panel (show_smart_home, props per registry.json):
{ "widget_type": "smart_home_panel",
"transform": { "anchor": "world", "billboard": true },
"props": { "room": "Living Room",
"devices": [
{ "id": "light_1", "name": "Ceiling Light", "type": "light", "state": { "on": true, "level": 30 } },
{ "id": "light_2", "name": "Lamp", "type": "light", "state": { "on": false, "level": 0 } } ] },
"interactions": ["tap","grab","toggle","slider"] }
Incoming control (client.interaction, §5.11):
{ "object_id": "O_home", "widget_type": "smart_home_panel", "action": "slider",
"element": "device_slider", "value": { "device_id": "light_1", "level": 55 } }
→ update light_1.state.level, holo.update. agent.speech: "Living room dimmed
to 30%."
Edge cases
- No lights in scope → say none were found for that room; list known rooms.
- "All lights" → include every
lightdevice across rooms. - Brightness on an off light → setting
level>0implieson:true. - Unsupported color/temp → set what's supported, mention what isn't.
- Climate / locks → not this skill: use
manage-climate/secure-home. - Whole-mood change ("movie night") → that's
run-home-scene.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |