Skip to content

feat: Add camera device support with HLS streaming integration#33

Closed
Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Tobiwan91:main
Closed

feat: Add camera device support with HLS streaming integration#33
Tobiwan91 wants to merge 2 commits intoOpenGrow-Box:mainfrom
Tobiwan91:main

Conversation

@Tobiwan91
Copy link
Contributor

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.

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.
@Tobiwan91 Tobiwan91 marked this pull request as draft January 30, 2026 18:17
@Tobiwan91 Tobiwan91 closed this Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant