Skip to content

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).

Notifications You must be signed in to change notification settings

rohaizanr/homebridge-http-ipcamera-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

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).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published