Giter Site home page Giter Site logo

Comments (5)

ToddGreenfield avatar ToddGreenfield commented on August 9, 2024

What errors does the log show?

from homebridge-nut.

ToddGreenfield avatar ToddGreenfield commented on August 9, 2024

Update to the latest version just pushed and try again.

from homebridge-nut.

AndySwitcher avatar AndySwitcher commented on August 9, 2024

I have same issue. I received the error:

[2018-06-20 23:30:12] [Nut] Initializing Nut platform...
[2018-06-20 23:30:12] [Nut] Starting Nut Platform on localhost:3493. Polling (seconds): 120
[2018-06-20 23:30:22] [Nut] Received Nut accessory #0 main (IPPON) from the Nut platform.
[2018-06-20 23:30:22] [Nut] Initializing platform accessory 'Ippon'...

/usr/local/lib/node_modules/homebridge-nut/index.js:263
.setCharacteristic(Characteristic.Model, this.accVars["device.model"].trim() || this.accVars["ups.productid"] || 'No Model#');
^
TypeError: Cannot read property 'trim' of undefined
at Object.getServices (/usr/local/lib/node_modules/homebridge-nut/index.js:263:73)
at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:408:36)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:394:32)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19
at Object.accessories (/usr/local/lib/node_modules/homebridge-nut/index.js:77:4)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:384:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:328:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

pi@raspberrypi:~ $ upsc main
Init SSL without certificate database
battery.voltage: 13.70
battery.voltage.high: -1.08
battery.voltage.low: -0.87
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.internal: 0.12
input.frequency: 50.3
input.voltage: 223.4
input.voltage.fault: 223.4
output.voltage: 223.4
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 6
ups.productid: 5161
ups.status: OL
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 0665

from homebridge-nut.

ToddGreenfield avatar ToddGreenfield commented on August 9, 2024

Has this been resolved?

from homebridge-nut.

chyuaner avatar chyuaner commented on August 9, 2024

I have same issue. But my friend is success.

I found my UPS connect info is very very very few.
JS is crash because can't get "device.model".

I fix this code. Please check my pull request #16 .

螢幕快照 2019-07-21 下午5 32 52 (c)

In image: Left side is my friend. Right side is mine.

from homebridge-nut.

Related Issues (20)

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.