Hello,
I’m trying to set my home automation using GlobalCache iTach Flex Serial Cable. I currently have an home automation system (Colorado vNet) but it’s proprieritary and the only way to open it is over Serial.
Everything seems to be working fine (Control with iPhone, Rules, Mapping…) the only issue I’m encountering is that it seems that if I don’t use it for some times (a few hours?) the first command I send always fails.
I encountering this error:
2019-08-12 08:00:00.922 [ERROR] [.GlobalCacheHandler$CommandProcessor] - Comm error for thing itachFlex:000C1E0363AE at 192.168.1.75: Broken pipe (Write failed)
2019-08-12 08:00:00.933 [ERROR] [e.internal.command.CommandSendserial] - Execute 'sendserial' failed on thing 000C1E0363AE at 192.168.1.75: errorCode=N/A, errorMessage=ERROR: Broken pipe (Write failed)
==> /var/log/openhab2/events.log <==
2019-08-12 08:00:00.950 [hingStatusInfoChangedEvent] - 'globalcache:itachFlex:000C1E0363AE' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): ERROR: Broken pipe (Write failed)
2019-08-12 08:00:00.958 [vent.ItemStateChangedEvent] - GC_DIRECT changed from 3,DIM-6,2,21,0%0D to 2,ITACH,73,1,1%0D
==> /var/log/openhab2/openhab.log <==
2019-08-12 08:00:10.972 [INFO ] [GlobalCacheHandler$ConnectionManager] - Got a connection to command port for thing itachFlex:000C1E0363AE at 192.168.1.75
2019-08-12 08:00:10.981 [INFO ] [GlobalCacheHandler$ConnectionManager] - Got a connection to serial-1 port for thing itachFlex:000C1E0363AE at 192.168.1.75
==> /var/log/openhab2/events.log <==
2019-08-12 08:00:10.997 [hingStatusInfoChangedEvent] - 'globalcache:itachFlex:000C1E0363AE' changed from OFFLINE (COMMUNICATION_ERROR): ERROR: Broken pipe (Write failed) to ONLINE
Then I can issue my commands just fine, but the first one will fail. It seems that the connection to the iTach Flex is lost at some point.
How can I debug that? Is there something I can do to solve this issue?
Here is my globalcache.things:
globalcache:itachFlex:000C1E0363AE [ ipAddress="192.168.1.75", mapFilename="serial-codes.map", activeCable="FLEX_SERIAL"]
And my GC Related Items:
String GC "My GC device" {channel="globalcache:itachFlex:000C1E0363AE:sl-m1#c1"}
String GC_DIRECT "GC_DIRECT" {channel="globalcache:itachFlex:000C1E0363AE:sl-m1#c1-direct"}
I have two items so that I can both send Direct and mapped commands through the same iTach Device.
Thanks in advance for your help,