Windows script/application to trigger Zwave devices
-
Each outlet shows up independently on the devices page. It's a Zooz Zen20 power strip. https://www.thesmartesthouse.com/products/zooz-z-wave-plus-power-strip-zen20
Also forgot to mention I'm using Windows 10.
-
I found the request that my Savant profile is using to trigger it, but need to figure out how to use Curl or make it function in a .Bat file.
http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1, Type: GET, Header Fields: {
Host = "192.168.1.4:3480"This format is probably specific to savant.
-
I found the request that my Savant profile is using to trigger it, but need to figure out how to use Curl or make it function in a .Bat file.
http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1, Type: GET, Header Fields: {
Host = "192.168.1.4:3480"This format is probably specific to savant.
@veiss said in Windows script/application to trigger Zwave devices:
curl http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1
In a file? Test from the command line first.
C
-
@veiss said in Windows script/application to trigger Zwave devices:
curl http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1
In a file? Test from the command line first.
C
If I try to run it in CMD I get this error:
error: no service/action'DeviceNum' is not recognized as an internal or external command,
operable program or batch file.
'action' is not recognized as an internal or external command,
operable program or batch file.
'serviceId' is not recognized as an internal or external command,
operable program or batch file.
'newTargetValue' is not recognized as an internal or external command,
operable program or batch file.If I remove the curl and run it in a web browser it works.
-
Ahh, been a long time as I said
curl 'http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1'
or maybe
curl "http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1"
C
-
Ahh, been a long time as I said
curl 'http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1'
or maybe
curl "http://192.168.1.4:3480/data_request?id=lu_action&DeviceNum=37&action=SetTarget&serviceId=urn:upnp-org:serviceId:SwitchPower1&newTargetValue=1"
C