Code Monkey home page Code Monkey logo

homebridge-apc-ups-alert's People

Contributors

itavero avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

homebridge-apc-ups-alert's Issues

Reason for using "leak detector" service for APC plugin

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:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:

Error on plugin startup

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:

  • Plugin Version: v0.0.1 -beta.0
  • Homebridge Version: v1.5.0
  • Node.js Version: v16.13.2
  • NPM Version: v6.14.12
  • Operating System: Raspbian GNU/Unix Bullseye (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.