homebridge-liftmaster icon indicating copy to clipboard operation
homebridge-liftmaster copied to clipboard

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

Open LwsBtlr opened this issue 9 years ago • 16 comments

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": "[email protected]", "password": "password" }

The [email protected] is the email address I have registered with Chamberlain, of course.

LwsBtlr avatar Feb 13 '16 21:02 LwsBtlr

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.

toolman1 avatar Feb 20 '16 00:02 toolman1

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

alexandrupaulpopa avatar Feb 20 '16 00:02 alexandrupaulpopa

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.

toolman1 avatar Feb 20 '16 00:02 toolman1

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.

AppleTechy avatar Feb 20 '16 00:02 AppleTechy

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

toolman1 avatar Feb 20 '16 00:02 toolman1

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

AppleTechy avatar Feb 20 '16 00:02 AppleTechy

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?

toolman1 avatar Feb 20 '16 00:02 toolman1

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?

AppleTechy avatar Feb 20 '16 00:02 AppleTechy

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

toolman1 avatar Feb 20 '16 00:02 toolman1

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

AppleTechy avatar Feb 20 '16 00:02 AppleTechy

I'm there now

toolman1 avatar Feb 20 '16 00:02 toolman1

@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

tekuonline avatar Mar 07 '16 21:03 tekuonline

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 [email protected] 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 .

toolman1 avatar Mar 07 '16 22:03 toolman1

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

tekuonline avatar Mar 07 '16 22:03 tekuonline

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 [email protected] 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 .

toolman1 avatar Mar 07 '16 23:03 toolman1

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)

n8man avatar Sep 18 '16 05:09 n8man