https://github.com/neilgupta/homebridge-analytics/
This is a plugin for homebridge to monitor how much you're using your HomeKit devices.
HomeKit does not expose any native way to get alerted when your devices turn on or off, so homebridge-analytics creates fake switches for you that will write their state to a sqlite database whenever they are turned on or off. You can setup HomeKit triggers to toggle the corresponding fake switch whenever one of your devices is turned on or off. This is a sad hack, but it's the best we can do with HomeKit so far. Once you've done the manual setup, you can then query the sqlite database to see your usage history.
npm install -g homebridge
npm install -g homebridge-analytics
"platforms": [
{
"platform": "Analytics",
"suffix" : "Analytics", // suffix to append to all your fake switch names (default: "Analytics")
"switchNames" : ["Kitchen", "Bar", "Living Room", "Foyer", "Closet", "Bedroom"]
}
]
Once you have this plugin configured and running with homebridge, you'll find the analytics.db
file in your homebridge's persist
directory. You can query this database via the node
repl like so:
var sqlite3 = require("sqlite3");
var db = new sqlite3.Database("path to analytics.db");
db.all("SELECT * FROM AccessoryUsage", function(err, rows) {
// do something with rows
});
The AccessoryUsage
table has 3 columns: name
(text), state
(int), updated
(timestamp).
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support
homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A
homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r
Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg
Docker Homebridge This Alpine/Ubuntu Linux based Docker image allows you to run Nfarina's Homebridge on your home network which emulates the iOS HomeKit API. This is a multi-arch image and will also r