# Lag (2-3 seconds) in my setup

**URL:** <https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919>\
**Category:** BOND Setup and Hardware\
**Created:** [December 27, 2021, 12:31am UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919 "2021-12-27T00:31:26Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 27, 2021, 12:31am UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/1 "2021-12-27T00:31:26Z")

</div>

So I converted from smartthings to hubitat in hopes the hardware change alone might help various things. Most issues indeed were resolved but one remains. I have my bond setup with my zwave + switches to turn on and off my fan. There’s about a 2-3 second delay from button push to light change, wondering if this is normal or if there are things I can try to get it closer to what I see when changing in the app or remotes.

---

<div class="post-metadata">

**Author:** ![residualimages](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/residualimages/32/74_2.png) [@residualimages](https://forum.bondhome.io/u/residualimages)\
**Post date:** [December 27, 2021, 1:32pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/2 "2021-12-27T13:32:56Z")

</div>

Just for clarification, I think I’m hearing you say that when using the Bond app or the original OEM remotes, the light change is more or less instant.  
However, with Hubitat, there is noticeable (2-3 second) delay somewhere in the path from Z-Wave switch physically changing to Hubitat registering that to Hubitat handing off to Bond (via API integration) a call to change the light.  
Right?

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 27, 2021, 4:54pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/3 "2021-12-27T16:54:20Z")

</div>

yes, this is 100% what I am trying to say

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [December 27, 2021, 11:09pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/4 "2021-12-27T23:09:14Z")

</div>

Just fixed in v2.29.2.1-beta.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 27, 2021, 11:56pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/5 "2021-12-27T23:56:50Z")

</div>

![Screenshot_20211227-185628_Bond](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/6661eed383b89fe9a168884e780bcfbc8dc5c335.jpeg)  
I’m only seeing this…

---

<div class="post-metadata">

**Author:** ![residualimages](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/residualimages/32/74_2.png) [@residualimages](https://forum.bondhome.io/u/residualimages)\
**Post date:** [December 28, 2021, 12:42am UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/6 "2021-12-28T00:42:24Z")

</div>

> [@merck](#):
>
> Just fixed in v2.29.2.1-beta.

If the delay isn’t there in the Bond app but is there in the API calls that Hubitat is making, is that expected to be fixed with the firmware, @merck - or is it something the Hubitat community / integrators need to examine in their methods?

Edit: also based on @smckdwn989 's screenshot of beta FW version, looks like a Zermatt revision Bond Bridge.

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [December 28, 2021, 12:55pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/7 "2021-12-28T12:55:46Z")

</div>

> [@residualimages](#):
>
> looks like a Zermatt revision Bond Bridge.

Indeed. The v2.29.2.1-beta only applies to Snowbird Bridges. Current (last 2+ years) Bond Bridges with serial numbers starting with Z are not effected by the delay problem we were discussing on the other thread.

For the current Bridges, there shouldn’t be much of a delay when operating most devices. Of course we cannot in principle do better than the remote control. Bond’s latency on top of the remote control should be less than about 250 ms.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 28, 2021, 3:39pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/8 "2021-12-28T15:39:58Z")

</div>

I’m wondering if my issue has to do with the fact that I’m using a zwave switch to trigger the change. If I use the app or remote it’s pretty much instant

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [December 28, 2021, 5:40pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/9 "2021-12-28T17:40:44Z")

</div>

Can you share a snippet / screenshot of how you’re making the zwaveswitch\<\>Bond connection?

My stab-in-the-dark guess is that you’re using mDNS resolution on every request, which is very slow for some reason. Better to use the IP address directly.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 28, 2021, 11:32pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/10 "2021-12-28T23:32:20Z")

</div>

Sure so I am using the bond integration and a simple rule like this…

 ![Screenshot_20211228-180824_Chrome](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/4163b69086e6d26905073574413304f4af10fd74.jpeg)

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 29, 2021, 4:21pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/11 "2021-12-29T16:21:52Z")

</div>

I can’t figure out how to natively use rule manager for a put request so I used webcore and did the following. The delay is still present.

 ![20211229_112133](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/1X/af99dc000c41c891466a44736ad45d50da870051.png)

---

<div class="post-metadata">

**Author:** ![idogreen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/idogreen/32/484_2.png) [@idogreen](https://forum.bondhome.io/u/idogreen)\
**Post date:** [December 29, 2021, 9:23pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/12 "2021-12-29T21:23:34Z")

</div>

Thanks for sharing this @smckdwn989  
I suffered from a ~2 sec. delay in toggling the lights of my ceiling fan, as part of a routine in Smartthings (Ikea Tadfri remote button pressed → Bond wifi Ceiling Fan light toggle).  
Created a Webcore that sends a PUT request, and this is now responding dramatically instant.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 29, 2021, 11:25pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/13 "2021-12-29T23:25:34Z")

</div>

i’m glad it worked for you, for whatever reason this isn’t working on my end, it’s about the same (2-3 second delay)

---

<div class="post-metadata">

**Author:** ![idogreen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/idogreen/32/484_2.png) [@idogreen](https://forum.bondhome.io/u/idogreen)\
**Post date:** [December 30, 2021, 6:39am UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/14 "2021-12-30T06:39:10Z")

</div>

That’s interesting, and will most likely require further troubleshooting.  
First, I think I would have tested the PUT request independently, via Postman or a simple CURL command in your local network. If that works, your next suspect is the switch, as the ‘on’ state might be incorrect.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 30, 2021, 11:50pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/15 "2021-12-30T23:50:48Z")

</div>

so when I run

curl -H “BOND-Token: a67ff25ca797820d” -X PUT -i [http://192.168.4.xxx/v2/devices/3d291xxx/actions/TurnLightOn](http://192.168.4.xxx/v2/devices/3d291xxx/actions/TurnLightOn) -d {}

it’s nearly instant.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [December 31, 2021, 9:30pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/16 "2021-12-31T21:30:55Z")

</div>

alright so I set up a virtual switch that fires from the GE zwave switch and the delay is 3-4 seconds. I then tested it against an old zigbee switch which is 1-2 seconds… i’m not sure if my code can be improved but i’m tempted to swap out my ge switches for some kind of scene control zigbee, any recommendations?

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [January 4, 2022, 3:37pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/17 "2022-01-04T15:37:22Z")

</div>

> [@smckdwn989](#):
>
> so when I run
> 
> ```
> curl -H “BOND-Token: a67ff25ca797820d” -X PUT -i 
> http://192.168.4.xxx/v2/devices/3d291xxx/actions/TurnLightOn -d {}
> 
> ```
> 
> it’s nearly instant.

Well that tells us that theres not a delay on the Bond side.

From the code you shared, I see you’re using IP address directly. So that means there’s no mDNS delay possibility. Must be something on the Hubitat side.

---

<div class="post-metadata">

**Author:** ![smckdwn989](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/smckdwn989/32/75_2.png) [@smckdwn989](https://forum.bondhome.io/u/smckdwn989)\
**Post date:** [January 4, 2022, 10:55pm UTC](https://forum.bondhome.io/t/lag-2-3-seconds-in-my-setup/2919/18 "2022-01-04T22:55:55Z")

</div>

So I’m switching to lutron picos, from what I gather the consensus is the ge switched just aren’t that responsive.
