nfarina / homebridge-liftmaster

LiftMaster support for Homebridge: https://github.com/nfarina/homebridge
23 stars 8 forks source link

Error: `value` required in setHeader("SecurityToken", value). #13

Open LwsBtlr opened 8 years ago

LwsBtlr commented 8 years ago

I have my lift master setup in home bridge. When I issue a command to open the door, ("Hey Siri, open the Garage Door" I get: Error:valuerequired in setHeader("SecurityToken", value). In the .err log, and [Garage Door] Logged in with user ID undefined in the .log

I have defined the Garage Door in config.json as follows: { "accessory": "LiftMaster", "name": "Garage Door", "description": "Chamberlain garage door opener", "username": "user+extension@example.com", "password": "password" }

The user+extension@example.com is the email address I have registered with Chamberlain, of course.

toolman1 commented 8 years ago

I was wondering what the solution is because I have the exact same error/issue and can't find a resolution. Thank you in advance.

alexandrupaulpopa commented 8 years ago

Do you have a firewall that inspects the https connections? I had the same issue and i had to disable the inspect for the mac address of the rapsberry pi

toolman1 commented 8 years ago

Thank you for responding! I do not have anything like that in place. I'm using an Apple AirPort Extreme router, my main machine is an iMac. I can easily connect to my Pi via VNC or Remote Desktop.

AppleTechy commented 8 years ago

Out of curiosity what happens if you remove the description line from your config? Sorry that I probably won't be that much help as I have multiple garage doors and I didn't have that error. Are you running the newest version of the plugin? When I had an issue that was similar it was on an older version that had been used for testing purposes with other issues that I and some others had.

toolman1 commented 8 years ago

I don't have a description line in my config.json. I installed:

sudo npm install -g homebridge-liftmaster

Does that not grab the latest version? And if there is a different way to install it, what's the easiest way to remove the old version (I'm still new to this)

Thanks again

AppleTechy commented 8 years ago

That should be pulling the newest version.. Have you tried uninstalling the plugin and then reinstalling? Are you both running it on an RPI?

toolman1 commented 8 years ago

Yes, a brand new one I just got this morning RPi2 Model B http://www.amazon.com/gp/product/B008XVAVAW

I haven't figured out how to uninstall yet.

One more thing. This is a Craftsman Assurelink garage door opener, which is made by LiftMaster. Is there anything I need to do differently to make it work with Assurelink?

AppleTechy commented 8 years ago

Hang on a for a couple minutes. Let me switch over to my computer. So I can review everything. And take a look at the assured link. Are you on our slack channel yet?

toolman1 commented 8 years ago

I'm afraid I'm not, but I'm more than happy to go there if you give me a link!

AppleTechy commented 8 years ago

@toolman1 Check the Readme file on the main Homebridge page or use this link Slack

toolman1 commented 8 years ago

I'm there now

tekuonline commented 8 years ago

@toolman1, sorry i am late but have you looked at assurelink plugin for your assurelink device yet? Its a modified version for assurelink https://www.npmjs.com/package/homebridge-assurelink

toolman1 commented 8 years ago

The one I installed was:

npm install homebridge-assurelink

Are you saying there's a newer version?

On Mon, Mar 7, 2016 at 1:58 PM, Tek Nepal notifications@github.com wrote:

@toolman1 https://github.com/toolman1, sorry i am late but have you looked at assurelink plugin for your assurelink device yet? Its a modified version for assurelink https://www.npmjs.com/package/homebridge-assurelink

— Reply to this email directly or view it on GitHub https://github.com/nfarina/homebridge-liftmaster/issues/13#issuecomment-193474194 .

tekuonline commented 8 years ago

No there is not a updated version, is is working for you with that plugin?

toolman1 commented 8 years ago

Definitely! Although now I'm using Wink app with the Homebridge Wink plugin because it gives me HomeKit notifications, whereas if I use the assurelink plugin it does not.

On Mon, Mar 7, 2016 at 2:23 PM, Tek Nepal notifications@github.com wrote:

No there is not a updated version, is is working for you with that plugin?

— Reply to this email directly or view it on GitHub https://github.com/nfarina/homebridge-liftmaster/issues/13#issuecomment-193482432 .

n8man commented 8 years ago

Using node v4.0 on a pi v3:

[9/17/2016, 10:03:16 PM] [Garage Door] Logged in with user ID undefined
_http_outgoing.js:333
    throw new Error('`value` required in setHeader("' + name + '", value).');
    ^

Error: `value` required in setHeader("SecurityToken", value).
    at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:333:11)
    at new ClientRequest (_http_client.js:80:14)
    at Object.exports.request (http.js:31:10)
    at Object.exports.request (https.js:163:15)
    at Request.start (/usr/local/lib/node_modules/homebridge-liftmaster/node_modules/request/request.js:914:30)
    at Request.end (/usr/local/lib/node_modules/homebridge-liftmaster/node_modules/request/request.js:1728:10)
    at end (/usr/local/lib/node_modules/homebridge-liftmaster/node_modules/request/request.js:704:14)
    at Immediate._onImmediate (/usr/local/lib/node_modules/homebridge-liftmaster/node_modules/request/request.js:718:7)
    at processImmediate [as _immediateCallback] (timers.js:371:17)