AI SummaryA Copilot instruction set for creating adaptive lighting groups in Home Assistant that combine multiple light entities with zone-based brightness control. Useful for home automation enthusiasts seeking unified lighting control across different areas.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "combined_lights — Copilot Instructions" prompt rules to my project. Repository: https://github.com/recallfx/combined_lights Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Combine and control multiple Home Assistant light entities as a single adaptive lighting group, with zone-based brightness and advanced configuration.
Using uv
This project uses uv for Python environment and dependency management. Always prefix Python commands with uv run - never run python, pytest, or other Python tools directly. Examples: • uv run pytest tests/ - run tests • uv run python script.py - run a script • uv run mypy . - run type checking
Running the infographic
The infographic is in the infographic/ folder. It's a static site - serve it with: `bash cd infographic && python3 -m http.server 8080 ` Note: Use python3, not python (not available on this system).
Running the simulation
Start the simulation server with: `bash uv run python simulation/run_server.py ` Opens at http://localhost:8091 by default.
Testing commands
Run tests with uv run pytest tests/. Tests use pytest-homeassistant-custom-component which provides fixtures like hass and MockConfigEntry. For new test files, use ConfigEntry from homeassistant.config_entries, not a custom mock. Required parameters: version, minor_version, domain, title, data, options, entry_id, source, unique_id, discovery_keys. Always call coordinator.async_cleanup_listeners() in test teardown to prevent lingering timer errors. The test framework checks for uncanceled timers.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts