feat: Add camera device support with HLS streaming integration#33
Closed
Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Closed
feat: Add camera device support with HLS streaming integration#33Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Conversation
feat: Add camera device support with HLS streaming integration Implements camera device integration for grow room monitoring, enabling real-time video streaming and still image capture functionality. Backend Changes: - New OGBCamera device class with HLS stream URL retrieval - Camera entity binding and lifecycle management - Event emission on camera detection (camera_detected event) - Still image URL fallback for camera preview - Device base class extended with camera entity category support - OGBParams updated to detect camera entities (camera., webcam, cam, view, monitor) - OGBDeviceManager device registry updated to register Camera devices Frontend Changes: - Camera card component for live stream display - HLS video player integration with fallback to still images - Camera state management through React context - Real-time camera status updates via WebSocket events - Responsive camera UI for dashboard integration Technical Details: - Cameras are detected by area assignment in Home Assistant - Supports HLS streaming via /api/camera_proxy_stream endpoint - Provides still image access via /api/camera_proxy endpoint - Emits camera_detected event with entity_id, device_name, room, and friendly_name - Camera entities identified by "camera." prefix and device label keywords This enables users to monitor their grow rooms in real-time through the OpenGrowBox dashboard, enhancing visibility and control over grow operations.
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.
Implements camera device integration for grow room monitoring,
enabling real-time video streaming and still image capture functionality.
Backend Changes:
Frontend Changes:
Technical Details:
This enables users to monitor their grow rooms in real-time through the
OpenGrowBox dashboard, enhancing visibility and control over grow operations.