alexa-skill
# Alexa Skill - Control Amazon Echo Devices
What this skill does
# Alexa Skill - Control Amazon Echo Devices Control your Amazon Echo devices, smart home, and routines. Send announcements, notifications, and more. ## CRITICAL: Announcement Confirmation Required **Before sending ANY announcement or notification, you MUST get explicit user confirmation.** When the user asks to send an announcement: 1. Show them the complete message details (message, target device) 2. Ask: "Do you want me to send this announcement?" 3. ONLY run the command AFTER the user explicitly confirms ## First-Time Setup (~3 minutes) ### 1. Install Dependencies ```bash # Python dependencies pip3.11 install alexapy aiohttp # Node.js dependencies (for setup) cd ~/.claude/skills/alexa-skill && npm install ``` ### 2. Run Setup ```bash node ~/.claude/skills/alexa-skill/setup.js [email protected] ``` This will: 1. Start a local proxy server 2. Open a browser window for Amazon login 3. Save authentication cookies locally (no password stored) ### 3. Verify Setup ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py devices ``` Should return a list of your Echo devices. ## Commands ### Send Voice Command (Most Flexible) ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py say "turn off the living room lamp" python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py say "turn on the TV and dim the lights to 50 percent" python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py say "play jazz music in the kitchen" ``` This sends any command as if you said "Alexa, ..." - supports complex multi-device commands. ### List Echo Devices ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py devices ``` ### Discover Smart Home Devices ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py discover ``` ### Make Announcement (with chime) ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py announce "Dinner is ready" python3 ~/.claude/skills/alexa-skill/alexa_skill.py announce "Meeting in 5 minutes" --device "Office" python3 ~/.claude/skills/alexa-skill/alexa_skill.py announce "Fire drill" --all ``` **Note:** Avoid exclamation marks (`!`) in messages - they get escaped and Alexa will say "backs" instead. **Arguments:** - `message` - The message to announce (required) - `--device` / `-d` - Target device name (optional, uses first online device) - `--all` / `-a` - Announce on all devices ### Text-to-Speech (no chime) ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py speak "Hello world" python3 ~/.claude/skills/alexa-skill/alexa_skill.py speak "Welcome home" --device "Living Room" ``` ### List Smart Home Devices ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py smart-home ``` ### List Smart Home Entities (for Silent Control) ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py smart-entities ``` Returns devices with their `entity_id` needed for silent control. Use this for the two-call workflow: 1. Call `smart-entities` to get device list with IDs 2. Match the user's request to the right entity_id 3. Call `silent-control` with that entity_id ### Silent Control (No "OK" Response) Control devices silently without Alexa saying "OK" - perfect for nighttime or when kids are sleeping. ```bash python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py silent-control ENTITY_ID --action on python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py silent-control ENTITY_ID --action off python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py silent-control ENTITY_ID --action on --brightness 50 python3.11 ~/.claude/skills/alexa-skill/alexa_skill.py silent-control ENTITY_ID --action on --color blue ``` **Arguments:** - `ENTITY_ID` - The entity ID from `smart-entities` command (required) - `--action` / `-a` - `on` or `off` (required) - `--brightness` / `-b` - Brightness level 0-100 (optional) - `--color` / `-c` - Color name like `red`, `blue`, `warm_white` (optional) ### Control Smart Home Device ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py control "Living Room Lights" --action on python3 ~/.claude/skills/alexa-skill/alexa_skill.py control "Bedroom Lights" --action off python3 ~/.claude/skills/alexa-skill/alexa_skill.py control "Desk Lamp" --action setBrightness --value 50 ``` **Actions:** - `on` - Turn on - `off` - Turn off - `toggle` - Toggle state - `setBrightness` - Set brightness (use `--value 0-100`) - `setColor` - Set color (use `--value` with color name) ### Set Volume ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py volume 50 python3 ~/.claude/skills/alexa-skill/alexa_skill.py volume 30 --device "Bedroom" ``` ### List Routines ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py routines ``` ### Trigger Routine ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py routine "Good Morning" python3 ~/.claude/skills/alexa-skill/alexa_skill.py routine "Movie Time" ``` ### Send Notification ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py notify "Task completed" python3 ~/.claude/skills/alexa-skill/alexa_skill.py notify "Reminder: Call mom" --title "Reminder" ``` ## Regional Support Setup supports multiple Amazon regions: ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py setup --region us # Default python3 ~/.claude/skills/alexa-skill/alexa_skill.py setup --region uk # amazon.co.uk python3 ~/.claude/skills/alexa-skill/alexa_skill.py setup --region de # amazon.de python3 ~/.claude/skills/alexa-skill/alexa_skill.py setup --region jp # amazon.co.jp ``` Available regions: us, uk, de, jp, ca, au, fr, it, es, br, mx, in ## Output All commands output JSON for easy parsing: ```json { "devices": [ { "name": "Kitchen Echo", "type": "ECHO_DOT_V3", "online": true } ], "count": 1 } ``` ## Troubleshooting ### "Not authenticated" Error Run setup again: ```bash python3 ~/.claude/skills/alexa-skill/alexa_skill.py setup ``` ### 2FA Issues If you use 2FA, make sure it's set to **authenticator app** (not SMS or email). Go to Amazon > Account > Login & Security > Two-Step Verification and update if needed. ### Device Not Found - Device names are case-insensitive partial matches - Run `devices` command to see exact names - Make sure the device is online ### Smart Home Device Not Responding - Check if the device is reachable in the Alexa app - Try toggling it manually first - Some devices may not support all actions ## Requirements ``` alexapy>=1.29.0 aiohttp ``` ## Security Notes - No passwords are stored - only OAuth tokens - Credentials are saved locally in `~/.claude/skills/alexa-skill/config.json` - Tokens auto-refresh when expired - To revoke access: Remove config.json and re-run setup ## Important Disclaimer Amazon does not provide an official API for this functionality. This skill uses the same endpoints as the Alexa web app. It may stop working if Amazon changes their API. #alexa #smart-home #echo
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.