Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
222 stars 37 forks source link

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

Open skeljp opened 11 months ago

skeljp commented 11 months ago

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