homebridge-http-ipcamera-battery
v1.0.0
Published
Homebridge plugin for displaying the battery status of iPCamera - High-End NetworkCam (iOS App)
Readme
homebridge-http-ipcamera-battery
Description
This homebridge plugin exposes a web-based battery status to Apple's HomeKit. Using simple HTTP requests, the plugin displays the battery status of iPCamera - High-End NetworkCam (iOS App).
I need some automation when the battery is at certain percentage, I want to switch on the iPhone charger. Too bad we can't do automation with BatteryService, but we can with TemperaturService. That is why I displayed the battery level in degress.
I modified the codes I found here. Thanks phenotypic.
Installation
- Install homebridge
- Install this plugin:
npm install -g homebridge-http-ipcamera-battery - Update your
config.jsonfile
Configuration
"accessories": [
{
"accessory": "iPCameraBattery",
"name": "iPCameraBattery",
"apiroute": "http://192.168.0.229",
"pollInterval": 300, //default (optional)
"timeout": 3000 //default (optional)
}
]Config
| Key | Description | Default |
| --- | --- | --- |
| accessory | Must be accessory | N/A |
| name | Name to appear in the Home app | N/A |
| apiroute | Root URL of your device | N/A |
| pollInterval | Time (in seconds) between device polls | 300 |
| timeout | Time (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable | 3000 |
