Camera Lux is a custom Home Assistant integration that utilizes camera feeds to estimate ambient light levels (lux) in your environment. By analyzing images from your cameras, cameralux
provides virtual lux readings that can be used to automate lighting, monitor lighting conditions, and enhance your smart home setup.
- Real-Time Lux Monitoring: Continuously estimate ambient light levels using your existing cameras.
- Configurable Update Intervals: Customize how frequently each sensor updates its lux readings.
- Region of Interest (ROI): Focus on specific areas within the camera's field of view for more accurate measurements.
- Calibration Factor: Scale luminance to lux calculations to better align with real-world lighting conditions.
- Compatibility: Works with any camera integrated into Home Assistant, supporting both camera entities and direct image URLs.
-
Using HACS (Recommended):
- Open Home Assistant.
- Navigate to HACS > Integrations.
- Click on the "+" button.
- Search for "Camera Lux Sensor" and install it.
-
Manual Installation:
- Download the
cameralux
repository from GitHub. - Place the
cameralux
folder inside yourcustom_components
directory. - Restart Home Assistant.
- Download the
Add the following to your configuration.yaml
:
sensor:
- platform: cameralux
sensors:
Office Wallpanel lux:
entity_id: camera.rtsp_office_wallpanel
calibration_factor: 1250
update_interval: 30 # Updates every 30 seconds
brightness_roi:
x: 100
y: 150
width: 200
height: 100
Kitchen Image lux:
image_url: https://your-domain.com/images/kitchen.jpg
calibration_factor: 500
update_interval: 45 # Updates every 45 seconds