Hi to all,

I noticed that there is a 2 second delay between sending a command an actual executing it.

So I thought is was my PC, but I installed HS3 on a new PC. The configuration is :
  • Arduino Uno
  • One Output Pin 13 LED
  • One Input Pin 10
I connected the output to the input so the moment the output changes the input is switched.
What I saw was that when switched the output manually (ON>OFF or OFF>ON) RX LED goes direct on and after approx. 1 second the TX LED blinks for 1 second.
The whole process takes more than 2 seconds, so pushing a switch at home takes at least 2 seconds to get the light on.
To be sure I wrote a extended logging script:


Code:
Public Sub logArduino(ByVal parms As String)

Dim words As String() = parms.Split(";")
Dim ingang As Integer = Convert.ToInt16(words(0))
Dim uitgang As Integer = Convert.ToInt16(words(1))
Dim stringang As String = Left((hs.DeviceName(ingang) & "_______________________________________________________ ____ _______"), 50)
Dim struitgang As String = Left((hs.DeviceName(uitgang) & "_______________________________________________________ ____ _______"), 50)
Dim strverschil As String = Left("Verschil______________________________________________ ____________________", 50)

hs.WaitSecs(5)
hs.WriteLog("Log Arduino", stringang + " " + Convert.ToDouble(hs.DeviceLastChangeRef(ingang).TimeOfDay.To talMilliseconds).ToString + " " + hs.DeviceLastChangeRef(ingang).ToString)
hs.WriteLog("Log Arduino", struitgang + " " + Convert.ToDouble(hs.DeviceLastChangeRef(uitgang).TimeOfDay.T otalMilliseconds).ToString + " " + hs.DeviceLastChangeRef(uitgang).ToString)
hs.WriteLog("Log Arduino", strverschil & (Convert.ToDouble(hs.DeviceLastChangeRef(ingang).TimeOfDay.T otalMilliseconds) - Convert.ToDouble(hs.DeviceLastChangeRef(uitgang).TimeOfDay.T otalMilliseconds)).ToString)

End Sub

You can start the log with parameters 266;270 where 266 the switch is and 270 the lamp.
Code:
 
okt-18 11:42:55 Log Arduino Verschil__________________________________________1975,72140000015
okt-18 11:42:55 Log Arduino Arduino Devices DelayTest Board:1, Output:1, Pin:1 42158575,9183 18-10-2018 11:42:38
okt-18 11:42:55 Log Arduino Arduino Devices DelayTest Board:1, Input:1, Pin:10 42160551,6397 18-10-2018 11:42:40
okt-18 11:42:10 Log Arduino Verschil__________________________________________2101,38530000299
okt-18 11:42:10 Log Arduino Arduino Devices DelayTest Board:1, Output:1, Pin:1 42127054,8209 18-10-2018 11:42:07
okt-18 11:42:10 Log Arduino Arduino Devices DelayTest Board:1, Input:1, Pin:10 42129156,2062 18-10-2018 11:42:09
okt-18 11:41:46 Log Arduino Verschil__________________________________________2082,43420000374
okt-18 11:41:46 Log Arduino Arduino Devices DelayTest Board:1, Output:1, Pin:1 42103111,2694 18-10-2018 11:41:43
okt-18 11:41:46 Log Arduino Arduino Devices DelayTest Board:1, Input:1, Pin:10 42105193,7036 18-10-2018 11:41:45
So in this example it takes 1.9, 2.1 & 2.0 secondes. This is also visible in the devicelist.



Homeseer configuration:

Click image for larger version  Name:	Snap 2018-10-18 at 11.53.09.png Views:	1 Size:	106.0 KB ID:	1253814

Very simple hardware:

Click image for larger version  Name:	WhatsApp Image 2018-10-18 at 11.55.08.jpeg Views:	1 Size:	63.3 KB ID:	1253815




Did anybody has the same problem?