Homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor
npm install homebridge-picamera-lightsensor


This is a homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor
```
"accessories": [
{
"accessory": "PiCameraLightsensor",
"name": "LightSensor",
"poll_interval": 300
}
]
`
### Parameter
- 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,
}
]
Like this? Please buy me a beer :beers: ...
