Automations slow to run

Hi all, I have various issues with my setup but thought I would start seeking advice with this one.

I have a v3 hub and several Sonoff T1 switches that are flashed with Tasmota. I am trying to get 2-way switching working, using the new Smartthings app I created some automations so when the downstairs switch is turned on, the upstairs switch turns on and vice versa. I set up on/off for the upstairs/downstairs switch.

In the app, if I toggle one of these switches on, the automation seems to run instantly, but if I turn the physical switch on/off then it takes around 30 seconds for the automation to run.

I had the live logging open and tested this, it looks as if the delay is caused by Smartthings not updating the switch status as when I physically turn it on there is nothing logged for approx 30 seconds and then both the switch on and automation is logged at the same time.

Does anyone know what causes this and how I can try to fix it? I just need Smartthings to see the status of a device has changed far faster than it is, I do not know if the switch is responsible for reporting to Smartthings or if Smartthings monitors the status.

Thanks

I have the same problem, can anyone help us ?

Well if the switch doesn’t report the change to the hub, then the hub has to poll it to determine that a change was made. In your case it sounds like it might be polling the device every 30 seconds. If you need it to be faster than that, there might be a way to set it either in the device settings or in the DTH. Or perhaps reporting can be set in the Tasmota firmware settings on the device. @hongtat should know more about this.

It’s likely it is unable to get the ST hub IP address.

Under your Tasmota device console, you will see a WebSend every time when you turn the physical switch on/off.

Does the IP address in the WebSend match your ST hub IP address?
And the time difference between WebSend & WebSend done is usually 1 sec or less.

Check your network setup, make sure they are in the same subnet.

Example:

"WebSend [192.168.1.207:39500] /?json={…}
stat/tasmota/RESULT = {“WebSend”:“Done”}

In console i checked if I get done on websend (ip address in the websend it’s my ST HUB IP ) , but it looks like I’m getting connection time out after 4-5 switch on or off.

After ST restart all my sonoffs works fine for 1-2 days.

It’s probably a wifi/network connection issue.

I understand, but why after ST restart all devices works fine ? Can you help me please with some method to trace if Sonoff TX and router lose wifi signal ?

  • All devices and ST hub are on static IP and on the same network/subnet
  • If you have multiple wifi Access Point/routers/switches, make sure they are on the same network/subnet.
  • For Tasmota devices, check the LQI (wifi signal strength)
  • It will not work if you have more than 1 ST hub.
  • It requires a ST v2 or v3 hub.
  • All devices and ST hub are on static IP and on the same network/subnet
    Yes, all devices have static ip on the same network

  • If you have multiple wifi Access Point/routers/switches, make sure they are on the same network/subnet.
    I have one wifi router

  • For Tasmota devices, check the LQI (wifi signal strength)
    the farthest device has 50 LQ and RSSI 70 dbm

  • It will not work if you have more than 1 ST hub.
    I have one ST HB

  • It requires a ST v2 or v3 hub.
    I have ST V3 Hub

I fixed my issue by having my Tasmota devices control each other using rules as I could not reduce the delay when letting ST run my automations. For clarification, all my IoT devices are on the same VLAN with same subnet, all have static IP, one ST hub (v3).

thanks for sharing what worked for you! I’m in a similar situation with simpler hardware options but still a lot of delay between when a motion sensor picks up motion → 9 lights turn on one by one.
it is interesting to see that the lights turn on one by one and take a few seconds to complete their thing.
although bypassing ST like you did is not an option for me but I will look more into this. at least I know that is one fast option!