activating SwitchBinary from command line

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
asethfox
Posts: 1
Joined: 23 Feb 2016 09:21

activating SwitchBinary from command line

Post by asethfox »

I can easily activate a the command class SwitchBinary on one of my lights by navigating to the following URL

Code: Select all

http://HOSTNAME:8083/ZWave.zway/Run/devices[2].instances[0].commandClasses[37].Set(1)
This turns my lights on.

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.
Can anyone advise as to correctly authenticate from the command line?
Post Reply