Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Parse Error: Expected HTTP/ #31

Open
maxmuller opened this issue Sep 12, 2021 · 1 comment
Open

Parse Error: Expected HTTP/ #31

maxmuller opened this issue Sep 12, 2021 · 1 comment

Comments

@maxmuller
Copy link

I had AlarmDecoder working perfectly with my HOOBS 3 setup. Then my Pi died so I got a new HOOBS running newer software, specifically Homebridge 1.3.4 and Node 14.17.6. Now I am getting the following error when starting Homebridge. This is the same setup and config I was using before.

9/11/2021, 6:48:56 PMAlarm System BridgeLoaded plugin 'homebridge-alarmdecoder-platform'
9/11/2021, 6:48:57 PMAlarm System BridgeLoading 1 platforms...
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm SystemAlarm System Configuring Accessory from Cache
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemadding accessory Alarm System
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systempanic Configuring Accessory from Cache
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemadding accessory panic
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemchime Configuring Accessory from Cache
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemadding accessory chime
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemaway Configuring Accessory from Cache
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemadding accessory away
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemstay Configuring Accessory from Cache
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemadding accessory stay
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm SystemCached Accessories Loaded
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systeminitalizing platform
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemfound security system from cache, skipping
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systeminit zones
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemlistening on port 8888
9/11/2021, 6:48:57 PMAlarm System BridgeBridge is running on port 51836.
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm SystemError: Parse Error: Expected HTTP/
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemfound switch panic from cache, skipping
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemfound switch chime from cache, skipping
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemfound switch away from cache, skipping
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm Systemfound switch stay from cache, skipping
9/11/2021, 6:48:57 PMAlarm System BridgeAlarm SystemError: Parse Error: Expected HTTP/
9/11/2021, 6:47:21 PMAlarm System BridgeERROR[Alarm System Bridge 44B5@Alarm System@Alarm System@Security System Current State] characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics
9/11/2021, 6:47:21 PMAlarm System BridgeERROR[Alarm System Bridge 44B5@Alarm System@Alarm System@Security System Target State] characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics

Here is my config with some things *** out:

{
"platform": "alarmdecoder-platform",
"name": "Alarm System",
"port": "8888",
"key": "**********",
"stateURL": "http://alarmdecoder.local:10000/api/v1/alarmdecoder",
"zoneURL": "http://alarmdecoder.local:10000/api/v1/zones",
"setURL": "http://alarmdecoder.local:10000/api/v1/alarmdecoder/send",
"setPIN": "
",
"panicKey": "",
"useSwitches": [
"panic",
"chime",
"away",
"stay"
],
"DSCorHoneywell": "Honeywell",
"chimeKey": "9"
}

@maxmuller
Copy link
Author

In doing a little more research it appears the newer version of Node is more strict on it’s HTTP parsing. This might be an issue with the Content-Length header from the AlarmDecoder box when sending notifications.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant