activating SwitchBinary from command line
Posted: 23 Feb 2016 09:34
I can easily activate a the command class SwitchBinary on one of my lights by navigating to the following URL
This turns my lights on.
However, when I attempt to activate it from the command line via wget, I get the following authentication error:
Can anyone advise as to correctly authenticate from the command line?
Code: Select all
http://HOSTNAME:8083/ZWave.zway/Run/devices[2].instances[0].commandClasses[37].Set(1)
However, when I attempt to activate it from the command line via wget, I get the following authentication error:
Code: Select all
user@HOSTNAME:~ $ cat asf_lights_example.sh
#!/bin/sh
cmd="http://HOSTNAME:8083/ZWave.zway/Run/devices[2].instances[0].commandClasses[37].Set(1)"
wget --user=admin --password=XXXXXXX $cmd
user@HOSTNAME:~ $ ./asf_lights_example.sh
Warning: wildcards not supported in HTTP.
--2016-02-23 01:26:05-- http://HOSTNAME:8083/ZWave.zway/Run/devices[2].instances[0].commandClasses[37].Set(1)
Resolving HOSTNAME(HOSTNAME)... 127.0.1.1
Connecting to HOSTNAME(HOSTNAME)|127.0.1.1|:8083... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Unknown authentication scheme.
Username/Password Authentication Failed.