what you echo inside the script will be printed to stdout, but is not the result value of the 'system' call. you can use the exit code inside the script, e.g call 'exit 0' for 'on' and 'exit 1' for 'off' and let the CodeDevice do the rest: system('/path/to/script')[0]==0 ? 'on' : 'off' ( I am new to...
look at it pragmatically; In compliance with RFC 2617, ZWay is not forced to reply using 401 and a proper WWW-Authentication header, ZWay could instead easily reply with 403, which wouldn't help OpenRemote either. ZWay wants to force preemptive authentication and OpenRemote wants to authenticate, so...
ZWay does not want to comply with the IETF authentication standard. See the second note on this OpenRemote page . indeed, ZWay should not respond with 401 and without a valid WWW-Authentication Header, but OpenRemote could of course preemptively send the basic credentials, without forcing the chall...