1.0.0 • Published 2 years ago

homebridge-http-ipcamera-battery v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  1. Install homebridge
  2. Install this plugin: npm install -g homebridge-http-ipcamera-battery
  3. Update your config.json file

Configuration

"accessories": [
     {
       "accessory": "iPCameraBattery",
       "name": "iPCameraBattery",
       "apiroute": "http://192.168.0.229",
       "pollInterval": 300,   //default (optional)
       "timeout": 3000        //default (optional)
     }
]

Config

KeyDescriptionDefault
accessoryMust be accessoryN/A
nameName to appear in the Home appN/A
apirouteRoot URL of your deviceN/A
pollIntervalTime (in seconds) between device polls300
timeoutTime (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable3000
1.0.0

2 years ago