Commit Graph

22 Commits

Author SHA1 Message Date
ea426e56ef Fix input_text max length constraint for mode colors
- Add max: 255 parameter to adaptive_lighting_mode_colors input_text
- Minify JSON to fit within Home Assistant's 100 character default limit
- Remove adaptive_lighting_mode_settings input_text (too long, convert to comments)
- Remove get_mode_settings script (no longer needed)
- Fix template syntax: use states() instead of state_attr() for input_text values
- Convert mode settings to reference documentation comments

This fixes the 'Initial value length not in range 0-100' error from Home Assistant.
2025-12-20 14:38:21 -08:00
2cb34c7c9f Add Adaptive Lighting Mode System foundation (Phase 1)
Implement the foundation for a comprehensive mode-based lighting control
system for Inovelli Blue Dimmer Switches with Adaptive Lighting integration.

This Phase 1 implementation includes:

- Global mode definitions package (packages/adaptive_lighting_global.yaml)
  containing ROYGBIV color scheme mappings and mode settings for all
  standard modes (Adaptive, Reading, Theater, Sleep, etc.)

- Inovelli mode cycling blueprint (blueprints/automation/inovelli_mode_cycling.yaml)
  enabling config button to cycle through lighting modes with LED feedback

- Updated README with system overview, features, and quick start guide

The system provides room-specific lighting modes with visual LED feedback,
config button control, and git-trackable configuration via Home Assistant
packages.

Next phases will add mode application automations, button action blueprints,
presence integration, and comprehensive documentation.
2025-12-20 14:22:24 -08:00
c9529ed52b Clarify that Adaptive Lighting integration is optional
Update blueprint and README to make it clear that the Adaptive Lighting
switch can be left empty, in which case lights will use simple on/off
control. Add clarifications to input descriptions and enhance
documentation with better examples.
2025-12-06 14:49:03 -08:00
621fdeb709 Only apply adaptive lighting when switch is on
Fixes #1
2025-11-15 12:20:03 -08:00
f301d1b5e2 Switch mode to restart 2001-01-01 00:00:00 +00:00
5d18dbc336 Fix template variable access in actions
Adds variables section to properly expose blueprint inputs as template variables, fixing undefined variable errors in conditions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:52:40 -08:00
d338a7298a Revert to simple multiple entity selector
Simplifies sensor selection back to multiple entity selector instead of complex target/area approach. More reliable and straightforward while still supporting multiple sensors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:41:10 -08:00
b612412470 Fix trigger to use event-based state monitoring
Replaces unsupported domain/device_class trigger with event-based approach that listens to state_changed events and filters for selected occupancy sensors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:25:58 -08:00
cfddf9145d Fix adaptive lighting switch validation
Adds check for empty dict to prevent entity_id errors when adaptive lighting switch is not configured.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:24:38 -08:00
89d268b3f4 Fix trigger to use domain-based filtering
Replaces template variable in trigger entity_id with domain/device_class trigger and condition filter. This properly handles dynamic sensor selection from target selector.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:23:24 -08:00
a7d475c1c5 Fix trigger syntax for area-based sensor selection
Replaces invalid 'target' key in trigger with proper 'entity_id' using variables section to resolve target selector. Simplifies template logic by centralizing sensor resolution.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:21:58 -08:00
d03b80a211 Support area-based motion sensor selection
Updates occupancy controlled lights to use target selector like lights, allowing selection of entire areas of motion sensors. Lights turn on when any sensor in the selected areas/entities detects motion and turn off when all are clear for the delay period.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:20:11 -08:00
b894471828 Add configurable off delay to occupancy controlled lights
Adds off_delay input parameter allowing users to configure how long to wait after motion stops before turning lights off. Includes re-verification to prevent lights turning off if motion resumes during the delay period.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:14:02 -08:00
9e4de90676 Add occupancy controlled lights 2025-10-27 14:55:37 -07:00
d5034210ed Try using an external counter 2025-10-25 22:23:04 -07:00
3f82719fa4 New format with mode:single 2025-10-25 22:09:16 -07:00
86f3d9e0e1 New architecture attempt 2025-10-25 22:07:05 -07:00
f392cea7de Set mode to single 2025-10-25 21:56:52 -07:00
278c7da4a1 Set continue_on_timeout:true 2025-10-25 21:51:44 -07:00
04a9511142 Add CLAUDE.md 2025-10-25 21:51:01 -07:00
0f5048b5c0 Add README 2025-10-25 21:41:26 -07:00
d262aa1771 Add multi_press_action 2025-10-25 21:39:35 -07:00