control4-home

Control a Control4 smart home via pyControl4 (lights, relays, room media) using local Python wrappers. Use when the user asks to control devices, set levels, toggle relays, switch room media sources, or inspect Control4 device mappings.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "control4-home" with this command: npx skills add niallel/control4-home

Control4 Home

Use the scripts in scripts/ to control Control4 locally.

Files

  • scripts/control4_cli.py — low-level Control4 commands (discover/list/light/relay/room/media + generic method calls)
  • scripts/nl_control4.py — natural language command wrapper (lights, relays, room media, mute/unmute, volume)
  • scripts/device_map.example.json — alias template for mapping names to Control4 IDs

Setup

  1. Create a Python venv (example):
    • python3 -m venv .venv-control4
  2. Install dependency:
    • .venv-control4/bin/pip install pyControl4
  3. Create scripts/.env (or export env vars) with:
    • CONTROL4_USERNAME
    • CONTROL4_PASSWORD
    • CONTROL4_CONTROLLER_IP
    • CONTROL4_CONTROLLER_NAME (optional if only one)
  4. Copy and customize alias map:
    • cp scripts/device_map.example.json scripts/device_map.json

Common commands

  • Discover controller/account:
    • .venv-control4/bin/python scripts/control4_cli.py discover
  • List items:
    • .venv-control4/bin/python scripts/control4_cli.py list-items --compact
  • Set light:
    • .venv-control4/bin/python scripts/control4_cli.py light-set --id 229 --level 40
  • Toggle relay:
    • .venv-control4/bin/python scripts/control4_cli.py relay-toggle --id 571
  • Natural language:
    • .venv-control4/bin/python scripts/nl_control4.py "turn kitchen lights off"
    • .venv-control4/bin/python scripts/nl_control4.py "watch apple tv in master bedroom"
    • .venv-control4/bin/python scripts/nl_control4.py "mute master bedroom"
  • List all exposed methods for an entity:
    • .venv-control4/bin/python scripts/control4_cli.py methods --entity room --id 45
  • Call any exposed pyControl4 method:
    • .venv-control4/bin/python scripts/control4_cli.py call --entity climate --id 752 --method getCurrentTemperatureC
    • .venv-control4/bin/python scripts/control4_cli.py call --entity light --id 229 --method rampToLevel --args-json "[25,1000]"
    • Sensitive methods require explicit override:
      • .venv-control4/bin/python scripts/control4_cli.py call --entity security-panel --id <id> --method setArm --allow-sensitive

Safety

  • Treat gate/door/alarm relays as sensitive actions.
  • Confirm before running high-risk commands if user intent is ambiguous.
  • Do not commit secrets (passwords/tokens) into git.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Google Docs Formatter

Instruction-only workflow for formatting, editing, and creating Google Docs using the existing gog skill/CLI. Use when a user asks to format a Google Doc, co...

Registry SourceRecently Updated
Coding

vibe-coding-skills-installer

Install vibe coding skill sets (openspec, gstack, superpowers) for any supported agent platform (Cursor, Claude Code, Codex, etc.). Interactively asks about...

Registry SourceRecently Updated
Coding

基于课程内容说明生成图文并茂的的PPT

高校教师课程PPT生成技能。当老师需要制作教学内容课件、备课PPT、教学演示文稿、实验指导手册时触发。支持数据科学、大数据技术、Python编程、深度学习、机器学习、数据可视化等多个学科领域。触发词:课程PPT、制作课件、备课PPT、教学演示、实验指导。

Registry SourceRecently Updated
Coding

HSCIQ MCP - Customs Query

HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API. Create classific...

Registry SourceRecently Updated
5320toucao