Hi, does anybody know how to use SwitchAll On/Off command in a scene?
May be it could be easy but actually I do not know how to do.
I would like simply to turn off all lights by using this command like I can do in the expert UI where there is a specific button to send this command to all switches configured in switch all off group.
In the url bar, the line to type to execute the command is
http://ip:8083/ZWaveAPI/Run/devices[x].SwitchAll.SetOn()
but, of course, because it need an argument where is "x", this work only for the "x" device (if it is set for switchall On) and not for every device.
Any suggestion?
How to use SwitchAll On/Off
Re: How to use SwitchAll On/Off
Marco,
Took a bit of detective work to figure it out but you can send a broadcast command to all devices that are configured in SwitchAll using the following:
http://ip:8083/ZWaveAPI/Run/SendData(255,[39,4]) - This sends All On
http://ip:8083/ZWaveAPI/Run/SendData(255,[39,5]) - This sends All Off
The key detail though is that ALL devices MUST be a neighbour to the controller. Broadcast commands are not routed.
Ive been trying to figure out the syntax for multicast commands. A multicast would allow me to specify the nodeid's of the devices I want to control and Im hoping that this type of command IS routed. It's been tough finding out any info though.
Hope this helps,
Dave.
Took a bit of detective work to figure it out but you can send a broadcast command to all devices that are configured in SwitchAll using the following:
http://ip:8083/ZWaveAPI/Run/SendData(255,[39,4]) - This sends All On
http://ip:8083/ZWaveAPI/Run/SendData(255,[39,5]) - This sends All Off
The key detail though is that ALL devices MUST be a neighbour to the controller. Broadcast commands are not routed.
Ive been trying to figure out the syntax for multicast commands. A multicast would allow me to specify the nodeid's of the devices I want to control and Im hoping that this type of command IS routed. It's been tough finding out any info though.
Hope this helps,
Dave.
Re: How to use SwitchAll On/Off
Good catch Dave
Thank you for your suggestions. I've just tried your commands and they work on my little test system.
Anyway I’ll try them on a wider system to check when some nodes are far from the controller and are not direct neighbors.
A multicast command in which to specify node ids would be something similar to a programmed switch on-off app. For sure it will work but I think could be not so useful.
Did you have the chance to check if the command for switch all on-off of the user expert button is routed?
Thank you for your suggestions. I've just tried your commands and they work on my little test system.
Anyway I’ll try them on a wider system to check when some nodes are far from the controller and are not direct neighbors.
A multicast command in which to specify node ids would be something similar to a programmed switch on-off app. For sure it will work but I think could be not so useful.
Did you have the chance to check if the command for switch all on-off of the user expert button is routed?
Marco