Comments (8)
This is fixed in 2.3.1
from homebridge-bond.
Can you please paste your config and the bond version of the plugin you are using?
Iβm thinking itβs either a config typo or using the new config on an older version of the plugin.
from homebridge-bond.
Actually, it has nothing to do with the bond version (I don't think), but I am running the latest beta if that is useful.
The problem (I believe) is that upon loading, it assumes config.json has a bond
or bonds
key in the config. If you have installed the plugin via npm, but didn't add it to config.json
if fails with this error.
from homebridge-bond.
I'll bet this is the problematic line @iRayanKhan :
if (config.bonds === undefined) {
It should be something like:
if (config === undefined || config.bonds === undefined) {
from homebridge-bond.
I mean't plugin version my bad, but you intrigued me at "beta", do you mean iOS beta?
V2.1.0 should have fixed it where if you didn't define the bond plugin in the config it gives a warning, but not a crash. I can make a fork to try out your suggestion, but I think we need some more info.
- Plugin Version
- Config (Redact personal info)
- Node version
node -v
Edit:
Can you also run HomeBridge with the -D
debug flag?
from homebridge-bond.
- Node v10.16.3
- For
config.json
, you can actually try just deleting that file. That's the simplest way to reproduce it. - From
homebridge-bond/package.json
[email protected]
Keep in mind that once I edited/added config.json
it worked fine. My suggestion above I think will fix it -- you're looking for the bonds
property on config, but part of that assumption is that config
exists. The bond plugin is the only one I've seen that produces a fatal error in the absence of config.json
file.
I mean't plugin version my bad, but you intrigued me at "beta", do you mean iOS beta?
Yes, I'm running FW 2.9.1-beta using the latest bond-beta on iOS.
from homebridge-bond.
Interesting, I run over 10 instances of homebridge and it works fine. I'll make a backup of it and test it out once I get home. Some of my plugins such as Tplink-smarthome, and Tuya-Lan return a fatal error when their plugin in not defined, so I'll see what's different between this and those plugins and see if I can repro and find a root cause. I'm out rn so it'll be a bit for me before I can take a look at it.
from homebridge-bond.
Thanks! Not urgent... just something to note if config file is missing.
from homebridge-bond.
Related Issues (20)
- 404 and TypeError during startup from request to devices/__ HOT 3
- Failing to Add New Devices HOT 2
- Change allowed origin or ease connection for somfy (awning)
- Fireplace shows as a light HOT 18
- Fans not showing up in Home App HOT 1
- Blinds need slider for blinds that support SetPosition
- Getting error "Unable to find Bond for IP Address" with proper IP address and Bond Token configured HOT 19
- Fireplace On/Off inverted and need control of flame in Homekit
- ERR_INVALID_CHAR When trying to load
- Device removed from Bond, but still shows in Home.app HOT 1
- Device removed from Bond, but still shows in Home.app HOT 1
- Uncaught JSON Parsing Error Terminating Plugin
- Using Bond for kitchen hood
- Shade controls and status are inverted HOT 1
- Setting to disable bond.api.toggleFan when changing fan from off to a set speed HOT 3
- Shade SetPosition is restrained HOT 3
- Smart by bond fans not showing up in home app
- state / percentage / operation issue after stopping
- Blinds Stop Control
- Scene and/or Group Support HOT 1
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-bond.