itavero / homebridge-apc-ups-alert Goto Github PK
View Code? Open in Web Editor NEWHomebridge plugin that provides information (and alerts) for apcupsd connected UPSs
License: Apache License 2.0
Homebridge plugin that provides information (and alerts) for apcupsd connected UPSs
License: Apache License 2.0
Describe Your Problem:
The plugin works but the use of the LeakSensor service is confusing. Can you provide insight into the use of this service as opposed to something like ContactSensor?
Logs:
Show the Homebridge logs here, remove any sensitive information.
Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.
Screenshots:
Environment:
Upon Homebridge startup and apc-ups-alert initialization, I receive a log entry, "Incorrect configuration: servers must be an array of servers and contain at least one server." This error prevents homebridge from completing its startup sequence as it keeps restarting, trying to initialize the plug-in.
To Reproduce:
Install the plug-in, as per the ReadMe information.
Confirm the UPS is integrated with the server using apcaccess.
Confirm the NIS service is available by seeing --enable-net in the apcupsd configuration
Restart Homebridge and note the initilization error
Expected behavior:
I expect the plug-in to successfully initialize and monitor the ups
Logs:
[10/08/2022, 17:38:14] [apc-ups-alert] Incorrect configuration: servers must be an array of servers and contain at least one server.
[10/08/2022, 17:38:14] TypeError: x.servers is not iterable
at isPluginConfiguration (/usr/local/lib/node_modules/homebridge-apc-ups-alert/src/configModels.ts:17:26)
at new UpsAlertHomebridgePlatform (/usr/local/lib/node_modules/homebridge-apc-ups-alert/src/platform.ts:25:30)
at /usr/local/lib/node_modules/homebridge/src/server.ts:473:40
at Array.forEach (<anonymous>)
at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:400:27)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:176:29)
Plugin Config:
{
"server": [
{
"host": "homebridge-00.local",
"interval": 10
}
],
"defaults": {
"interval": 60,
"low_battery_threshold": 40
},
"platform": "apc-ups-alert"
}
Screenshots:
N/A as the log entry completely represents the error
Environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.