homebridge-http-esp8266-battery

1.0.6 • Public • Published

homebridge-http-esp8266-battery

Description

This homebridge plugin exposes a web-based battery status to Apple's HomeKit. Using simple HTTP requests, the plugin displays the filespace useage of and ESP8266 as a battery.

I needed to monitory the file space usage of an ESP8266 that I'm using as a garage door opener. The system takes images when the door opens or closes and I want to monitor the file space usage

I modified the code from the iPCameraBattery accesory from Homebridge Http Ipcamera Battery

homebridge-http-ipcamera-battery v1.0.0 (2022-01-24)

Installation

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

Configuration

"accessories": [
     {
       "accessory": "esp8266Battery",
       "name": "esp8266Battery",
       "apihost", "hostname or ip address",
       "apipath": "/path",
       "auth": {
	  "username": "user",
          "password": "passowrd",
       "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
apihost IP address or hostname N/A
apipath URL path that gets executed - api N/A
auth.username Basic authentication username N/A
auth.password Basic authentication password 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

Readme

Keywords

Package Sidebar

Install

npm i homebridge-http-esp8266-battery

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

19.2 kB

Total Files

4

Last publish

Collaborators

  • dhop90