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:
 [TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:55[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Verschil__________________________________________1975,72140000015[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:55[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Output:1, Pin:1 42158575,9183 18-10-2018 11:42:38[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:55[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Input:1, Pin:10 42160551,6397 18-10-2018 11:42:40[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:10[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Verschil__________________________________________2101,38530000299[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:10[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Output:1, Pin:1 42127054,8209 18-10-2018 11:42:07[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:42:10[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Input:1, Pin:10 42129156,2062 18-10-2018 11:42:09[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:41:46[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Verschil__________________________________________2082,43420000374[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:41:46[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Output:1, Pin:1 42103111,2694 18-10-2018 11:41:43[/COLOR][/TD]
 		[/TR]
[/TABLE]
[TABLE="cellspacing: 0"]
[TR]
[TD="align: left"][COLOR=#000000]okt-18 11:41:46[/COLOR][/TD]
 			[TD="align: left"] [/TD]
 			[TD="colspan: 3, align: left"][COLOR=#000000]Log Arduino[/COLOR][/TD]
 			[TD="colspan: 8, align: left"][COLOR=#000000]Arduino Devices DelayTest Board:1, Input:1, Pin:10 42105193,7036 18-10-2018 11:41:45[/COLOR][/TD]
 		[/TR]
[/TABLE]
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?