- Fix brightness threshold falsely resetting state to NONE during light
transition ramp-up (brightness temporarily below threshold != light off)
- Fix false manual override from Zigbee attribute-only updates (on→on)
by requiring meaningful state change (on→off or off→on)
- Fix disable guard to also accept ENABLING state (not just ENABLED)
- Move state updates before service calls to survive mode:restart cancellation
- Add ENABLING sub-case handler for motion-cleared-during-enable scenario
- Add CASE 1 default handler for restart recovery disable path
- Add comprehensive debug logging at automation entry and CASE 1 entry
- Change default timeout_delay to 0 and grace_period to 2s
- Remove unused is_debug/is_base_debug variables
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add configurable grace period (default 10s) to prevent false manual
override detection from delayed device state reports (e.g., Zigbee)
- Fix any_device_on guard to respect brightness_threshold so lights
below the threshold don't block the automation from triggering
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Each blueprint now has its own folder containing:
- blueprint.yaml: The automation code with a short header
- README.md: Detailed documentation extracted from headers
Updated CLAUDE.md with repository structure guidelines.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>