Comments (9)
Looks ok.
How did you start homebridge?
Nothing in the log?
from homebridge-homeassistant.
Homebridge fails to load home assistant every time It says
/usr/local/lib/node_modules/homebridge-homeassistant/accessories/sensor.js:44
class HomeAssistantSensor {
^^^^^
SyntaxError: Unexpected reserved word
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Plugin.module.exports [as initializer] (/usr/local/lib/node_modules/homebridge-homeassistant/index.js:27:32)
at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:130:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:108:22)
from homebridge-homeassistant.
@lagunacomputer I need more information. What's the error say?
@saisupriyacv You need to upgrade to a newer version of Node.js.
from homebridge-homeassistant.
I get the following errors:
Loaded plugin: homebridge-homeassistant
[2/9/2017, 6:43:54 PM] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2/9/2017, 6:43:54 PM] ---
/usr/lib/node_modules/homebridge/lib/server.js:202
var username = config.bridge.username;
^
TypeError: Cannot read property 'username' of undefined
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:202:31)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:52:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
from homebridge-homeassistant.
@bachoo786 This is a problem with Homebridge, not homebridge-homeassistant. I assume your configuration is invalid.
from homebridge-homeassistant.
Here is my config:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": "45201",
"pin": "raspberry"
},
{
"platforms": [{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": "http://XXXXX",
"password": “XXXXX",
"supported_types": ["binary_sensor", "cover", "fan", "input_boolean", "light", "lock", "media_player", "scene", "sensor", "switch"]
}]
}
from homebridge-homeassistant.
I noticed you have a different homebridge config.json format than I do, PIN and PORT but no Password
from homebridge-homeassistant.
I resolved somehow but mqtt is giving me problems my config now is:
{
"bridge": {
"name": "Homebridge",
"username": “XX:XX:XX:XX:XX:XX",
"port": XXXXX,
"pin": “XXX-XX-XXX"
},
"platforms": [{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": “XXX",
"password": “XXX",
"supported_types": ["light", "switch", "media_player"]
},
"platforms": [{
"platforms": "mqtt",
"name": "mqtt",
"url": "http://XXX",
"topic_prefix": “XXX",
"username": “XXX",
"password": “XXX"
}]
}
from homebridge-homeassistant.
all sorted thanks
from homebridge-homeassistant.
Related Issues (20)
- Notifications in home app only shows up when home app open HOT 2
- MQTT Cover Tilt ( 0 - 100 % in Homekit ) HOT 3
- Binary Sensor missing categories
- Home Assistant tries to set temperature to Celsius HOT 1
- Blinds/shutters state not updating in the homekit
- Homekit integration issue
- Feature - read password from external file
- Home Assistant can't readd homekit Accessory HOT 1
- Home App turns off heating
- MQTT Fan "low" speed not usable via Homebridge HOT 1
- Missing device classes break homebridge HOT 1
- Air Quality (BME680) HOT 3
- Config.json to Home Assistant HOT 5
- [HomeAssistant] Failed getting devices: Error: connect ECONNREFUSED 192.168.1.101:8123. Retrying... HOT 1
- What is the difference between Homebridge and HomeKit component plugins? HOT 3
- Does this work on Hassbian? HOT 2
- Light sensor: home assistant passes type "lm" which doesn't match type "lux" HOT 3
- Only able to select 2 fan speeds when I have 3 in Home Assistant. HOT 5
- problems with logging granularity
- RFXtrx Cover status
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-homeassistant.