Home
cd ../playbooks
File OrganizationIntermediate

Natural Language Home Automation

Translate natural language into home automation configs for Home Assistant, HomeKit, and SmartThings.

10 minutes

You want 'turn on the porch light at sunset but only if someone's home' and that translates to 47 lines of YAML you don't understand. Smart home automation shouldn't require learning a configuration language.

Who it's for: non-technical smart home users who want automations without writing YAML, families setting up home routines, anyone who knows what they want their smart home to do but not how to configure it, Home Assistant users who prefer describing automations in English

Example

"When I leave for work, lock the doors, turn off all lights, and set the thermostat to 65" → Working automation configs for Home Assistant, HomeKit, or SmartThings with presence detection triggers, device actions, and fallback conditions — generated from your plain English description

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add home-automation-assistant
# Natural Language Home Automation

## Your Role
You help translate natural language intentions into home automation configurations and troubleshoot smart home setups across platforms like Home Assistant, HomeKit, and SmartThings.

## Automation Templates

### Motion-Based Lighting
```yaml
## Natural Language → Automation

Input: "Turn on the hallway lights when someone walks by at night"

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Converts your descriptions of how you want your smart home to behave ("turn on lights when I get home") into actual automation configurations for Home Assistant, HomeKit, or SmartThings.

Prerequisites

  • Claude Code installed
  • Smart home platform (Home Assistant, HomeKit, etc.)
  • Basic understanding of your devices

Setup Instructions

Step 1: Download the Template

Download the CLAUDE.md template below and save it to your home automation folder.

Step 2: List Your Devices

Create a device inventory:

# My Smart Home

## Lights
- Living room lights (Hue)
- Bedroom lights (Hue)

## Sensors
- Front door motion sensor
- Hallway motion sensor

## Other
- Thermostat (Nest)
- Door locks (August)

Step 3: Create Automations

Describe what you want:

Create an automation to turn on hallway lights when motion is detected at night

Example Usage

"Turn everything off when everyone leaves"
"Cozy mode at sunset"
"Wake up routine at 7am weekdays"
"Alert me if door opens when I'm away"
"Translate this to Home Assistant YAML"

Supported Platforms

  • Home Assistant (YAML)
  • Apple HomeKit (Shortcuts)
  • SmartThings
  • Google Home (routines)

Best Practices

  1. Start simple - One automation at a time
  2. Test thoroughly - Verify triggers work
  3. Add delays - Prevent rapid toggling
  4. Document - Note what each automation does

$Related Playbooks

File Organization

Intelligent File Organizer

Analyze folders, detect duplicates, suggest logical arrangements, and automate cleanup with context-aware file organization.

5 minutes
Beginner
File Organization

Document Layout Analyzer

Detect text blocks, tables, figures, and reading order in complex documents using surya.

10 minutes
Beginner
File Organization

Mac Performance Diagnostics

Run diagnostic commands, analyze results in plain English, and get resolution steps for Mac performance issues.

5 minutes
Beginner
File Organization

Markdown to Office Converter

Convert Markdown to Word, PowerPoint, PDF, and other Office formats using Pandoc.

10 minutes
Advanced
File Organization

Office to Markdown Converter

Convert Office documents to Markdown for version control and AI processing using Microsoft's markitdown.

10 minutes
Advanced
File Organization

PDF Compression Tool

Reduce PDF file size while maintaining acceptable quality

10 minutes
Intermediate
File Organization

Universal PDF Converter

Convert PDF files to and from Word, Excel, Image, and other formats

10 minutes
Intermediate
File Organization

PDF Text & Table Extractor

Extract text, tables, and metadata from PDFs using pdfplumber

10 minutes
Beginner
File Organization

PDF Form Auto-Filler

Fill out PDF forms programmatically and extract form data

10 minutes
Advanced
File Organization

PDF Merge & Split Tool

Combine multiple PDFs or split into separate files

10 minutes
Intermediate
File Organization

PDF OCR Scanner

Extract text from scanned PDFs using optical character recognition

10 minutes
Beginner
File Organization

PDF to Word Converter

Convert PDF files to editable Word documents using pdf2docx

10 minutes
Intermediate

Browse all File Organization playbooks →