homebridge-http-esp8266-battery
v1.0.6
Published
Homebridge plugin for displaying the filespace usage of an ESP8266 as a battery, plus temperature and humidity
Downloads
8
Readme
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
- Install homebridge
- Install this plugin:
npm install -g homebridge-http-ipcamera-battery
- 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
|