Skip to content

getStatus() failed: Parse Error: Invalid header value char #125

@skeljp

Description

@skeljp

Thanks for a making very useful plugin !!
When I set the stateful switch with the config as below;

"accessory": "HTTP-SWITCH",
"name": "room",
"switchType": "stateful",
"timeout": 1000,
"onUrl": "https://trigger.macrodroid.com/xxxxxxxxx/on",
"offUrl": "https://trigger.macrodroid.com/xxxxxxxxx/off",
"statusUrl": "http://192.168.68.1:8080/livinglightstatus",
"_bridge": {
    "username": "00:00:00:00:00:00"

and statusUrl "http://192.168.68.1:8080/livinglightstatus/index.html" responds just only to "0" or "1".
However, The plugin responds "getStatus() failed: Parse Error: Invalid header value char" in the homebridge log so the switch shows "no response" in Homekit.

Could I know how to solve this issue?

Version

  • homebridge: Homebridge v1.7.0
  • homebridge-http-switch: v0.5.36
  • Node.js; v20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions