name: lofy-home
description: Smart home control for the Lofy AI assistant — scene modes (study, chill, sleep, morning, grind), device management via Home Assistant REST API, presence-based automation, natural language commands for lights, music, thermostat, and PC wake-on-LAN. Use when controlling smart home devices, activating scene modes, or managing home automation.
Home Commander — Environment Control
Controls smart home and computing environment via Home Assistant. Manages scene modes, device control, and presence-based actions.
Data File: data/home-config.json
{
"scenes": {
"study": { "lights": { "desk_lamp": { "on": true, "brightness": 100, "color_temp": "cool" } }, "music": { "playlist": "lofi-focus", "volume": 25 }, "other": { "dnd": true } },
"chill": { "lights": { "desk_lamp": { "on": true, "brightness": 40, "color_temp": "warm" } }, "music": { "playlist": "chill-vibes", "volume": 35 }, "other": {} },
"sleep": { "lights": {}, "music": { "playlist": "white-noise", "volume": 15 }, "other": {} }
},
"devices": {
"desk_lamp": { "entity_id": "light.desk_lamp", "type": "light" },
"speaker": { "entity_id": "media_player.room_speaker", "type": "media_player" }
},
"home_assistant": { "url": "http://homeassistant.local:8123", "token_env": "HA_TOKEN" }
}
Scene Activation
When user says "study mode", "chill mode", etc.:
- Read scene definition from
data/home-config.json
- Execute each device command via Home Assistant API
- Confirm briefly: "Study mode ✓ — desk lamp bright, lo-fi on, DND"
Home Assistant API
# Light control
curl -s -X POST "$HA_URL/api/services/light/turn_on" \
-H "Authorization: Bearer $HA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entity_id": "light.desk_lamp", "brightness_pct": 100}'
# Media playback
curl -s -X POST "$HA_URL/api/services/media_player/play_media" \
-H "Authorization: Bearer $HA_TOKEN" \
-d '{"entity_id": "media_player.speaker", "media_content_id": "spotify:playlist:xxx", "media_content_type": "playlist"}'
# Wake-on-LAN
curl -s -X POST "$HA_URL/api/services/wake_on_lan/send_magic_packet" \
-H "Authorization: Bearer $HA_TOKEN" \
-d '{"mac": "XX:XX:XX:XX:XX:XX"}'
Quick Commands
- "lights off" → turn off all lights
- "dim the lights" → all lights to 20%
- "play some music" → default to chill playlist
- "it's cold" → thermostat up 2°F
- "turn on my PC" → WOL packet
- "goodnight" → sleep mode
- "I'm heading out" → lights off, eco mode
- "I'm home" → scene based on time of day
Instructions
- Read
data/home-config.json for device mappings and scenes
- Confirm actions in ONE short message
- If a device fails, report which one and suggest a fix
- Never execute "turn off all devices" without confirmation
- If Home Assistant is unreachable, report and suggest checking connection
- Device entity_ids must be configured by user — prompt if missing
Source: modbender/skill-library-mcp — distributed by TomeVault.
1---2name: modbender-skill-library-mcp-lofy-home3description: ---4---5---6name: lofy-home7description: Smart home control for the Lofy AI assistant — scene modes (study, chill, sleep, morning, grind), device management via Home Assistant REST API, presence-based automation, natural language commands for lights, music, thermostat, and PC wake-on-LAN. Use when controlling smart home devices, activating scene modes, or managing home automation.8---910# Home Commander — Environment Control1112Controls smart home and computing environment via Home Assistant. Manages scene modes, device control, and presence-based actions.1314## Data File: `data/home-config.json`1516```json17{18 "scenes": {19 "study": { "lights": { "desk_lamp": { "on": true, "brightness": 100, "color_temp": "cool" } }, "music": { "playlist": "lofi-focus", "volume": 25 }, "other": { "dnd": true } },20 "chill": { "lights": { "desk_lamp": { "on": true, "brightness": 40, "color_temp": "warm" } }, "music": { "playlist": "chill-vibes", "volume": 35 }, "other": {} },21 "sleep": { "lights": {}, "music": { "playlist": "white-noise", "volume": 15 }, "other": {} }22 },23 "devices": {24 "desk_lamp": { "entity_id": "light.desk_lamp", "type": "light" },25 "speaker": { "entity_id": "media_player.room_speaker", "type": "media_player" }26 },27 "home_assistant": { "url": "http://homeassistant.local:8123", "token_env": "HA_TOKEN" }28}29```3031## Scene Activation3233When user says "study mode", "chill mode", etc.:341. Read scene definition from `data/home-config.json`352. Execute each device command via Home Assistant API363. Confirm briefly: "Study mode ✓ — desk lamp bright, lo-fi on, DND"3738### Home Assistant API3940```bash41# Light control42curl -s -X POST "$HA_URL/api/services/light/turn_on" \43 -H "Authorization: Bearer $HA_TOKEN" \44 -H "Content-Type: application/json" \45 -d '{"entity_id": "light.desk_lamp", "brightness_pct": 100}'4647# Media playback48curl -s -X POST "$HA_URL/api/services/media_player/play_media" \49 -H "Authorization: Bearer $HA_TOKEN" \50 -d '{"entity_id": "media_player.speaker", "media_content_id": "spotify:playlist:xxx", "media_content_type": "playlist"}'5152# Wake-on-LAN53curl -s -X POST "$HA_URL/api/services/wake_on_lan/send_magic_packet" \54 -H "Authorization: Bearer $HA_TOKEN" \55 -d '{"mac": "XX:XX:XX:XX:XX:XX"}'56```5758## Quick Commands5960- "lights off" → turn off all lights61- "dim the lights" → all lights to 20%62- "play some music" → default to chill playlist63- "it's cold" → thermostat up 2°F64- "turn on my PC" → WOL packet65- "goodnight" → sleep mode66- "I'm heading out" → lights off, eco mode67- "I'm home" → scene based on time of day6869## Instructions70711. Read `data/home-config.json` for device mappings and scenes722. Confirm actions in ONE short message733. If a device fails, report which one and suggest a fix744. Never execute "turn off all devices" without confirmation755. If Home Assistant is unreachable, report and suggest checking connection766. Device entity_ids must be configured by user — prompt if missing7778---79> Source: [modbender/skill-library-mcp](https://github.com/modbender/skill-library-mcp) — distributed by [TomeVault](https://tomevault.io).80<!-- tomevault:4.0:skill_md:2026-06-15 -->