ecoen66 / homebridge-platform-pdu Goto Github PK
View Code? Open in Web Editor NEWHomebridge platform for Raritan and APC PDUs
License: Apache License 2.0
Homebridge platform for Raritan and APC PDUs
License: Apache License 2.0
First off, Thank you for creating this plugin! Just wanted to give you some feedback that this plug in works for the AP7900, pretty well even though, the system starts up and runs fine, but I get this error...not saying its something you have to address, but figured I'd throw it out to you incase you were interested in expanding the compatibility list...I'm happy to test for you if you would like.
[2/26/2021, 9:44:34 AM] [MediaPDU] LOWER-LEVEL-PDU Error retrieving socket 4 status.
(node:87422) UnhandledPromiseRejectionWarning: Error: This callback function has already been called by someone else; it can only be called one time.
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:6:13
at /usr/local/lib/node_modules/homebridge-platform-pdu/src/platformAccessory.ts:189:9
(node:87422) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 219)
Not sure what is happening here. I just got this Rack PDU off of eBay, and it seems to function correctly. I can get into the webui and into the telnet server on it. Initially, I was getting access denied errors on the PDU's logs for connecting via SNMP. Switched private to write+, and that seemed to stop. Now...well, it seems to work, but also not. Almost like the MIB isn't correct? SNMP has never been a strong point of mine, so I'm just kinda winging it over here. Figured I'd post here in case any of this rang a bell.
The last couple of line is me trying to turn an outlet on/off. Homebridge tries to comply, but it just gives a useless error. There's no acknowledgement inside of the apc webui that anything happened at all.
[12/8/2023, 5:57:24 PM] [Living Room PDU] Opened SNMP session.
[12/8/2023, 5:57:24 PM] [Living Room PDU] RackPDU RequestFailedError: NoSuchName: 1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.1
at Req.Session.onSimpleGetResponse [as onResponse] (/homebridge/node_modules/homebridge-platform-pdu/node_modules/net-snmp/index.js:2168:16)
at Session.onMsg (/homebridge/node_modules/homebridge-platform-pdu/node_modules/net-snmp/index.js:2148:7)
at Socket.emit (node:events:514:28)
at UDP.onMessage (node:dgram:941:8)
[12/8/2023, 5:57:24 PM] [Living Room PDU] RackPDU Polling Watts 0.0001
[12/8/2023, 5:57:24 PM] [Living Room PDU] RackPDU RequestFailedError: NoSuchName: 1.3.6.1.4.1.318.1.1.12.3.5.1.1.2.1
at Req.Session.onSimpleGetResponse [as onResponse] (/homebridge/node_modules/homebridge-platform-pdu/node_modules/net-snmp/index.js:2168:16)
at Session.onMsg (/homebridge/node_modules/homebridge-platform-pdu/node_modules/net-snmp/index.js:2148:7)
at Socket.emit (node:events:514:28)
at UDP.onMessage (node:dgram:941:8)
[12/8/2023, 5:57:24 PM] [Living Room PDU] Manufacturer varbind returned APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.4 PN:apc_hw02_aos_374.bin AF1:v3.7.4 AN1:apc_hw02_rpdu_374.bin MN:AP7801 HR:B2 SN: ZA1510016589 MD:03/07/2015)
[12/8/2023, 5:57:24 PM] [Living Room PDU] device.manufacturer = APC
[12/8/2023, 5:57:24 PM] [Living Room PDU] There are 8 outlets.
[12/8/2023, 5:57:24 PM] [Living Room PDU] PDU name RackPDU.
[12/8/2023, 5:57:24 PM] [Living Room PDU] PDU model number AP7801.
[12/8/2023, 5:57:24 PM] [Living Room PDU] PDU serial number ZA1510016589.
[12/8/2023, 5:57:24 PM] [Living Room PDU] PDU firmware version B2.
[12/8/2023, 6:03:28 PM] [Living Room PDU] RackPDU Switching socket 4 to true.
[12/8/2023, 6:03:28 PM] [Living Room PDU] RackPDU Error switching socket 4 to true.
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.