# Sending multiple Zwave commands at once

**URL:** <https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193>\
**Category:** Questions & Help\
**Created:** [December 9, 2019, 10:31pm UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193 "2019-12-09T22:31:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [December 9, 2019, 10:31pm UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/1 "2019-12-09T22:31:27Z")

</div>

I have 5 FIBaro dimmer 2 hooked up to switches. If I press 5 switches together all lights go off together as you’d expect

However, if I send a command via Homey then basically they all go off at varying intervals taking 20seconds or so to actually complete

If I go via Alexa it’s even worse (grouped by Alexa) as sometimes commands get lost, or delayed further

How can I improve this?

---

<div class="post-metadata">

**Author:** ![Kjettern](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kjettern/32/9184_2.png) [@Kjettern](https://community.homey.app/u/Kjettern)\
**Post date:** [December 10, 2019, 9:37am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/2 "2019-12-10T09:37:49Z")

</div>

Hmm I’m no expert on the subject, but I don’t think there’s much you can do.  
When you press the physical switch, the signal will go to the switch instant without delay. The dimmer vil shut down the lights and then send out the signal to Homey with a delay.

When you shut off the lights via Homey, Homey will send out one command at the time, the dimmer will receive this command and turn on the lights. The dimmer then reports back to Homey that the command was succesful. You will then have some delay due to all the wireless communication going back and forth. Z-wave for ex is only using 8-900mhz and that’s not fast enough to get no delay…

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 10, 2019, 10:09am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/3 "2019-12-10T10:09:57Z")

</div>

I would program the switching commands delayed by 1 second, which protects against overloading the Z-Wave network.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [December 10, 2019, 10:14am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/4 "2019-12-10T10:14:25Z")

</div>

I don’t mind a delay (even 5 seconds), but what I would like is for all the lights ideally to go off ‘together’

@DirkG will try your option - if it works I can work around Alexa. It’s still not ideal however as it’s not ‘all on’ it’s ‘all on one by one’!

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 10, 2019, 10:18am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/5 "2019-12-10T10:18:18Z")

</div>

If you press the buttons manually, you don’t need to send a command to Homey, it will be done in the background bit by bit. The Fibaro Dimmer 2 also works without a connection to Homey.

---

<div class="post-metadata">

**Author:** ![vaderag](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vaderag/32/150_2.png) [@vaderag](https://community.homey.app/u/vaderag)\
**Post date:** [December 10, 2019, 10:57am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/6 "2019-12-10T10:57:01Z")

</div>

Yeah, i get this - i’m not expecting it to be ‘instant’, a small delay is fine. 20 seconds with random turn off order and sometimes failing isn’t good tho - I’m just looking for ways to improve this.  
With my wifi bulbs (Yeelight), if I turn off multiple bulbs they go off together (near enough)

---

<div class="post-metadata">

**Author:** ![cjvs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cjvs/32/8115_2.png) [@cjvs](https://community.homey.app/u/cjvs)\
**Post date:** [December 10, 2019, 11:04am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/7 "2019-12-10T11:04:01Z")

</div>

I have 22 of those dimmers (mainly to have my lights still working work when Homey does not). To overcome the issue I use a 1 second delay between each action in the flows and do not use the general “switch off all lamps” card. (e.g. lamp 1, lamp 2 with 1 second delay, lamp 3 with 2 second delay, etc). Reasonably stable for a while now

Triggering all at once results in lights staying on (or off) most of the time like you see too.  
Still have the issue that Homey does not get the feedback from the dimmer in case it is switched manually, so my next step is to re-include the dimmers insecure by changing the app, however that still requires me to dive into CLI first…

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [December 10, 2019, 11:46am UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/8 "2019-12-10T11:46:46Z")

</div>

The group app will attempt to retry if toggling the device fails.

There was a git hub feature to automatically add a delay floating around as well.

But generally you will still find the same delay exists, the more items you add to the group - the bigger the delay.

> **[\< group \>](https://homey.app/en-au/app/com.swttt.devicegroups/&lt;-group-&gt;/)**
>
> Makes it possible to group devices allowing control and reporting of all devices within a group.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 10, 2019, 12:07pm UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/9 "2019-12-10T12:07:31Z")

</div>

> [@cjvs](#):
>
> CLI

What means CLI?

---

<div class="post-metadata">

**Author:** ![cjvs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cjvs/32/8115_2.png) [@cjvs](https://community.homey.app/u/cjvs)\
**Post date:** [December 10, 2019, 12:16pm UTC](https://community.homey.app/t/sending-multiple-zwave-commands-at-once/22193/10 "2019-12-10T12:16:32Z")

</div>

Command Line Interface, best to search a bit: [[HOW TO] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198)
