The following urls (shown here send with curl) will switch the sounds:
Code: Select all
// "Sound 1 - Low Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMSAtIExvdyBWb2x1bWU%3D'
// "Sound 1 - Mid Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMSAtIE1pZCBWb2x1bWU%3D'
// "Sound 1 - High Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMSAtIEhpZ2ggVm9sdW1l'
// "Sound 2 - Low Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMiAtIExvdyBWb2x1bWU%3D'
// "Sound 2 - Mid Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMiAtIE1pZCBWb2x1bWU%3D'
// "Sound 2 - High Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMiAtIEhpZ2ggVm9sdW1l'
// "Sound 3 - Low Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMyAtIExvdyBWb2x1bWU%3D'
// "Sound 3 - Mid Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMyAtIE1pZCBWb2x1bWU%3D'
// "Sound 3 - High Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgMyAtIEhpZ2ggVm9sdW1l'
// "Sound 4 - Low Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNCAtIExvdyBWb2x1bWU%3D'
// "Sound 4 - Mid Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNCAtIE1pZCBWb2x1bWU%3D'
// "Sound 4 - High Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNCAtIEhpZ2ggVm9sdW1l'
// "Sound 5 - Low Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNSAtIExvdyBWb2x1bWU%3D'
// "Sound 5 - Mid Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNSAtIE1pZCBWb2x1bWU%3D'
// "Sound 5 - High Volume"
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=applyzwavenodeconfig&idx=<NODE-ID>&valuelist=37_U291bmQgNSAtIEhpZ2ggVm9sdW1l'
To be sure the selected sound is heard (if you set it to the same sound as before) just switch the siren on (and later off) with:
Code: Select all
// ON
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=switchlight&idx=<DEVICE-IDX>&switchcmd=On'
// OFF
curl 'http://<DOMOTICZ-SERVER>:8080/json.htm?type=command¶m=switchlight&idx=<DEVICE-IDX>&switchcmd=Off'
Where <DOMOTICZ-SERVER> needs to be replaced with your domoticz server IP or name. And <NODE-ID> is the z-wave NodeID of the siren. And <DEVICE-IDX> is the index of the corresponding switch device.
The base64 and url encoded part after valuelist=37_ is the description of the sound as seen in de config page, for example "Sound 5 - High Volume" (without the double quotes). I dit not test all the urls so there might be a typo. But if so you know how to check and correct it.
Just incorporates these in you preferred language and then "Happy sound switching".