control-office-lamp

Control an office lamp's power state via Home Assistant REST API endpoints.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/joescharf/cc-joescharf-marketplace --skill control-office-lamp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: control-office-lamp
Source: https://github.com/joescharf/cc-joescharf-marketplace/tree/main/plugins/homeassistant/skills/control-office-lamp
Command: npx skills add https://github.com/joescharf/cc-joescharf-marketplace --skill control-office-lamp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables quick, hands-free control of the office lamp via Home Assistant REST API, eliminating the need to manually toggle the switch and enabling automation with Claude.

Core Features & Use Cases

  • Turn the lamp on/off: Send REST requests to change the light state.
  • Toggle lamp state: Quick flip between on and off.
  • Check lamp status: Retrieve current state and key attributes.
  • Config lookup & persistence: Supports environment variable override and persistent per-user config, plus plugin-root or script-dir fallbacks.

Quick Start

Turn the lamp on using the lamp_control.py script: uv run "${CLAUDE_PLUGIN_ROOT}/skills/control-office-lamp/scripts/lamp_control.py" on

Frequently Asked Questions about control-office-lamp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control a smart light through Home Assistant's REST API?

Control a smart light through Home Assistant's REST API by sending POST requests to /api/services/light/{turn_on,turn_off,toggle} endpoints with the entity_id parameter. This Skill automates those requests to turn the office lamp on, off, or toggle its state, and returns JSON responses with success status and current state.

Can I automate office lamp control with Python scripts?

Yes, automate office lamp control with Python scripts by posting to Home Assistant's REST API endpoints. This Skill provides a Python script that handles configuration loading from environment variables or persistent config files, executes lamp commands, and outputs structured JSON results.

What's the best way to check a smart light's current status in Home Assistant?

Check a smart light's current status in Home Assistant by querying the /api/states endpoint to retrieve state and attributes. This Skill queries the office lamp's status and returns JSON containing the current power state and relevant device information.

How do I set up REST API integration for smart home automation?

Set up REST API integration for smart home automation by configuring Home Assistant connection details—typically a base URL and access token—then making authenticated HTTP requests to control devices. This Skill supports multi-source configuration loading with environment variables and persistent per-user config for streamlined setup.

Does Home Assistant support toggling light state through REST calls?

Yes, Home Assistant supports toggling light state through REST calls via the /api/services/light/toggle endpoint. This Skill includes toggle functionality alongside turn_on and turn_off commands, letting you flip the office lamp state without checking its current status first.