This is a homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor
"accessories": [
{
"accessory": "PiCameraLightsensor",
"name": "LightSensor",
"poll_interval": 300
}
]
- poll_interval: seconds between measurements (default: 300)
- from_left_percent: left edge from where the calculation should start (default: 0)
- to_right_percent: right edge where the calculation should end (default: 100)
- from_top_percent: top edge from where the calculation should start (default: 0)
- to_bottom_percent: bottom edge where the calculation should stop (default: 100)
The following configuration example uses the top/right quarter of the image for the brigthness-calculation
"accessories": [
{
"accessory": "PiCameraLightsensor",
"name": "LightSensor",
"poll_interval": 300,
"from_left_percent": 50,
"to_right_percent": 100,
"from_top_percent": 0,
"to_bottom_percent": 50,
}
]
- remove "take photo" logging
- ability to define the area of the image which should be used for brightness calculation
- First working version
remove loggingconfigurable measurement area (e.g. whole image, top/left, ...)- add optional correction-factor for lux-value
Like this and want to express your feelings? Please buy me a beer 🍻 ...