Commit Graph

16 Commits

Author SHA1 Message Date
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