How to use SwitchAll On/Off

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
User avatar
marco
Posts: 85
Joined: 03 Dec 2015 19:50

How to use SwitchAll On/Off

Post by marco »

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?
Marco
powerhome
Posts: 5
Joined: 31 Jan 2015 07:52

Re: How to use SwitchAll On/Off

Post by powerhome »

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.
User avatar
marco
Posts: 85
Joined: 03 Dec 2015 19:50

Re: How to use SwitchAll On/Off

Post by marco »

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?
Marco
Post Reply