Comments (5)
What errors does the log show?
from homebridge-nut.
Update to the latest version just pushed and try again.
from homebridge-nut.
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.
Has this been resolved?
from homebridge-nut.
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 .
In image: Left side is my friend. Right side is mine.from homebridge-nut.
Related Issues (20)
- Remote Monitoring HOT 5
- build error with node v8.2.1 HOT 18
- FYI: the apcupsd plugin
- QUERY: why Contact Sensor rather than Motion Sensor HOT 2
- Report power usage
- Notification not correctly supported
- Occasional Error in the log.
- Warning to developer with Homebridge 1.0.0
- Freezings with Homebridge 1.0
- Plugin 'homebridge-nut' tried to register with an incorrect plugin identifier: 'homebridge-nut-accessory'. Please report this to the developer! HOT 4
- Error: connect ECONNREFUSED 127.0.0.1:3493
- Not working with homebridge 1.30 HOT 7
- UPS not showing as a Power Point in HomeKit
- Constant Reconnects HOT 8
- Missing parameters HOT 7
- Eaton Protection Station support HOT 4
- Can't get it to start HOT 16
- Voltage, Freq from UPS HOT 2
- Error: This callback function has already been called by someone else; it can only be called one time. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-nut.