lofy-home

CLI Utilities
v1.0.0
Benign

Smart home control for the Lofy AI assistant — scene modes (study, chill, sleep, morning, grind), device management.

674 downloads674 installsby @harrey401

Setup & Installation

Install command

clawhub install harrey401/lofy-home

If the CLI is not installed:

Install command

npx clawhub@latest install harrey401/lofy-home

Or install with OpenClaw CLI:

Install command

openclaw skills install harrey401/lofy-home

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/harrey401/lofy-home

What This Skill Does

Controls smart home devices through a Home Assistant instance using natural language commands. Supports preset scene modes for different activities, individual device control for lights, music, and thermostat, and wake-on-LAN for PCs. Device mappings and scenes are defined in a local config file.

Wraps Home Assistant's REST API with natural language so device control works without opening the HA dashboard or app.

When to Use It

  • Activating study mode to set desk lamp to full brightness and start a focus playlist
  • Saying 'goodnight' to trigger the sleep scene across all devices
  • Waking up a PC remotely before walking to the desk
  • Adjusting thermostat temperature with a casual phrase like 'it's cold'
  • Running 'I'm heading out' to cut lights and switch to eco mode
View original SKILL.md file
# 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`

```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.:
1. Read scene definition from `data/home-config.json`
2. Execute each device command via Home Assistant API
3. Confirm briefly: "Study mode ✓ — desk lamp bright, lo-fi on, DND"

### Home Assistant API

```bash
# 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

1. Read `data/home-config.json` for device mappings and scenes
2. Confirm actions in ONE short message
3. If a device fails, report which one and suggest a fix
4. Never execute "turn off all devices" without confirmation
5. If Home Assistant is unreachable, report and suggest checking connection
6. Device entity_ids must be configured by user — prompt if missing

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Activating study mode to set desk lamp to full brightness and start a focus playlist

AGENT
  1. 1Activating study mode to set desk lamp to full brightness and start a focus playlist
  2. 2Saying 'goodnight' to trigger the sleep scene across all devices
  3. 3Waking up a PC remotely before walking to the desk
  4. 4Adjusting thermostat temperature with a casual phrase like 'it's cold'
  5. 5Running 'I'm heading out' to cut lights and switch to eco mode
OUTPUT
Smart home control for the Lofy AI assistant — scene modes (study, chill, sleep, morning, grind), device management.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedMar 1, 2026