Git Product home page Git Product logo

Comments (9)

kolossboss avatar kolossboss commented on May 23, 2024

Looks ok.
How did you start homebridge?
Nothing in the log?

from homebridge-homeassistant.

saisupriyacv avatar saisupriyacv commented on May 23, 2024

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.

robbiet480 avatar robbiet480 commented on May 23, 2024

@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.

bachoo786 avatar bachoo786 commented on May 23, 2024

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.

robbiet480 avatar robbiet480 commented on May 23, 2024

@bachoo786 This is a problem with Homebridge, not homebridge-homeassistant. I assume your configuration is invalid.

from homebridge-homeassistant.

bachoo786 avatar bachoo786 commented on May 23, 2024

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.

lagunacomputer avatar lagunacomputer commented on May 23, 2024

I noticed you have a different homebridge config.json format than I do, PIN and PORT but no Password

from homebridge-homeassistant.

bachoo786 avatar bachoo786 commented on May 23, 2024

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.

bachoo786 avatar bachoo786 commented on May 23, 2024

all sorted thanks

from homebridge-homeassistant.

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.