feat(camera): add daily snapshots and refactor timelapse scheduling fix(devices): prevent duplicate device setup during initialization#35
Open
Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Conversation
added 2 commits
February 13, 2026 20:02
- Add scheduled daily snapshot feature with configurable time, automatic retries, and ZIP archive export. - Refactor timelapse recording logic to use Home Assistant's native scheduling utilities (`async_track_point_in_time`, `async_track_time_interval`) instead of background loops, ensuring proper recovery after HA restarts. - Enforce strict UTC ISO date formatting (`YYYY-MM-DDTHH:MM:SSZ`) for timelapse configuration to prevent parsing errors on startup. - Reorganize storage structure into `daily/` and `timelapse/` subdirectories with path traversal validation for security. - Add rate limiting and locking mechanisms for timelapse video generation. - Update camera filename format to include local ISO timestamps for better sorting. - Add comprehensive user guides and developer documentation for the camera system.
The DeviceUpdater was attempting to set up new devices before the coordinator finished its initial startup sequence, which could lead to race conditions and duplicate device entries. Added an initialization flag to delay device management until the coordinator has completed its initialization process. Also improved the addDevice method to replace existing devices with the same name instead of creating duplicates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(camera): add daily snapshots and refactor timelapse scheduling
async_track_point_in_time,async_track_time_interval) instead of background loops, ensuring proper recovery after HA restarts.YYYY-MM-DDTHH:MM:SSZ) for timelapse configuration to prevent parsing errors on startup.daily/andtimelapse/subdirectories with path traversal validation for security.fix(devices): prevent duplicate device setup during initialization
The DeviceUpdater was attempting to set up new devices before the
coordinator finished its initial startup sequence, which could lead to
race conditions and duplicate device entries. Added an initialization
flag to delay device management until the coordinator has completed
its initialization process. Also improved the addDevice method to replace
existing devices with the same name instead of creating duplicates.