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.