garethflowers / homebridge-texecom-connect

A Homebridge plugin to integrate with Texecom Connect SmartCom
https://garethflowers.dev/homebridge-texecom-connect/
MIT License
13 stars 5 forks source link

Need help with config #4

Open marcingminski opened 3 years ago

marcingminski commented 3 years ago

Hi Gareth,

Great plugin - thank you! I need some help with the config though. I have set the IP and the port and I can see the connection in the homebridge logs:

[05/11/2020, 18:42:31] [TexecomConnect] Accessory Loaded: Area A
[05/11/2020, 18:42:31] [TexecomConnect] Accessory Loaded: Kitchen
[05/11/2020, 18:42:32] [TexecomConnect] Connected to SmartCom - 192.168.1.142:10001
[05/11/2020, 18:42:40] [TexecomConnect] Reconnecting to SmartCom - 192.168.1.142:10001
[05/11/2020, 18:42:40] [TexecomConnect] Disconnected from SmartCom - 192.168.1.142:10001
[05/11/2020, 18:42:51] [TexecomConnect] Connected to SmartCom - 192.168.1.142:10001
[05/11/2020, 18:43:53] [TexecomConnect] Disconnected from SmartCom - 192.168.1.142:10001

But the status of the alarm in Homebridge keeps saying "Arming" and does not change when I arm or disarm the alarm via normal way - I understand arming/disarming via Homebridge is not supported - fine with that.

I am thinking that maybe I have not set the zones and areas correct. I have access to Wintex and used the same zone IDs and Area names.

Areas: Name: Area A ID: 1

Zones: Name: Kitchen ID: 11

(just one zone for a test)

Smartcom version: 02.02.02

Any guidance appreciated, I'm also happy to help you with testing/debugging etc if you like.

garethflowers commented 3 years ago

Thanks! Appreciate the help!

Can you try running Homebridge in Debug mode - as this will output a few more extra bits of information in to the logs.

marcingminski commented 3 years ago

I am using Homebridge UI, went to Homebridge Settings and enabled Homebridge Debug Mode -D in the startup options. There seems to be only one more line output "Socket Data":

[07/11/2020, 19:15:01] Homebridge v1.2.3 is running on port 51556.
[07/11/2020, 19:15:01] [TexecomConnect] Connected to SmartCom - 192.168.1.142:10001
[07/11/2020, 19:15:11] [TexecomConnect] Socket Data: �
[07/11/2020, 19:15:11] [TexecomConnect] Reconnecting to SmartCom - 192.168.1.142:10001
[07/11/2020, 19:15:11] [TexecomConnect] Disconnected from SmartCom - 192.168.1.142:10001
[07/11/2020, 19:15:21] [TexecomConnect] Connected to SmartCom - 192.168.1.142:10001
[07/11/2020, 19:16:24] [TexecomConnect] Disconnected from SmartCom - 192.168.1.142:10001

Just to prove the point that the connection seems established, if I modify the IP to something else:

[07/11/2020, 19:27:14] [TexecomConnect] Socket Error: Error: connect ECONNREFUSED 192.168.1.143:10001
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.143',
  port: 10001
}
[07/11/2020, 19:27:14] [TexecomConnect] Reconnecting to SmartCom - 192.168.1.143:10001
[07/11/2020, 19:27:14] [TexecomConnect] Unable to connect to 192.168.1.143:10001
erickkowalski commented 3 years ago

Hi There

!!!!yes long awaiting possibility to get Texecom system to work with Hombridge

but I seems to have exactly the same problem as marcingminski the alarm in Homebridge keeps saying "Arming"

Also the door contact nor motion sensor dont change theirs states

Disconnected from SmartCom - 192.168.0.13:10001

Im running the latest smartCom firmware V03.00.16

Any help will be appreciated

cheers Erick

Ps Happy to help with testing

zebde commented 3 years ago

I have the same issue as above with Smartcom version V02.01.05

homebridge          | [11/27/2020, 8:10:09 PM] Registering platform 'homebridge-texecom-connect.TexecomConnect'
homebridge          | [11/27/2020, 8:10:09 PM] [TexecomConnect] Initializing TexecomConnect platform...
homebridge          | [11/27/2020, 8:10:09 PM] [TexecomConnect] Accessory Loaded: House
homebridge          | [11/27/2020, 8:10:09 PM] [TexecomConnect] Accessory Loaded: Kitchen
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Front Door
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Hallway
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Bedroom
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Office
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Office Door
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Accessory Loaded: Garden Door
homebridge          | [11/27/2020, 8:10:10 PM] [TexecomConnect] Connected to SmartCom - 192.168.173.222:10001
homebridge          | [11/27/2020, 8:11:12 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.173.222:10001
MichaelVdheeren commented 3 years ago

Same issue for me as above.

Rich-Chamberlain commented 3 years ago

I am receiving the same results on my set up. I have a SmartCom and a separate COMIP module, both are giving me the same results.

On starting homebridge I get the following on the home app:

IMG_0381

Opening of the contact switches or motion does not change the status of the sensors within homebridge.

My test json file can be found below:

"platforms": [ { "platform": "TexecomConnect", "host": "192.168.1.2", "port": 10001, "areas": [ { "name": "Area A", "number": 1, "accessory": "security" } ], "zones": [ { "accessory": "contact", "number": 1, "name": "Front Door" }, { "accessory": "contact", "number": 2, "name": "Rear Door" }, { "accessory": "motion", "number": 3, "name": "Hallway" } ] } ]

5xPa commented 3 years ago

Good Morning has they issue been resolved I have exactly same problem.

Here is the log showing HomeBridge disconnects from Smartcom

2/18/2021, 1:36:40 PM Loaded plugin 'homebridge-texecom-connect' 2/18/2021, 1:36:40 PM [2/18/2021, 6:36:40 AM] Registering platform 'homebridge-texecom-connect.TexecomConnect' 2/18/2021, 1:36:40 PM Loading 1 platforms... 2/18/2021, 1:36:40 PM [TexecomConnect] Initializing TexecomConnect platform... 2/18/2021, 1:36:40 PM [TexecomConnect] Accessory Loaded: Area B 2/18/2021, 1:36:40 PM [TexecomConnect] Accessory Loaded: Area A 2/18/2021, 1:36:40 PM [TexecomConnect] Accessory Loaded: Living Room 2/18/2021, 1:36:40 PM [TexecomConnect] Accessory Loaded: Front Door 2/18/2021, 1:36:40 PM Bridge is running on port 51826. 2/18/2021, 1:36:40 PM [TexecomConnect] Connected to SmartCom - 192.168.0.7:10001 2/18/2021, 1:37:43 PM [TexecomConnect] Disconnected from SmartCom - 192.168.0.7:10001

Here is my configuration areas [ { "name": "Area A", "number": 1, "accessory": "security" }, { "name": "Area B", "number": 2, "accessory": "security" } ] Zones { "accessory": "motion", "number": 18, "name": "Living Room" }, { "accessory": "contact", "number": 23, "name": "Front Door" } ]

The app on iPhone displays Area A and Area B There is no indication for Zones number 18 Living Room, or Zone 23 Front Door

Hopefully somone can suggest a resoloution. Please note I am an absolute beginner, no experience of coding

Rich-Chamberlain commented 3 years ago

I got mine working by changing the ComIP module protocol to Crestron.

I have a separate COMIP module to the Smartcom which gives me some freedom to tinker without screwing it up.

Make sure you take a backup in wintex of your config before continuing. Good luck.

erickkowalski commented 3 years ago

I got mine working by changing the ComIP module protocol to Crestron.

I have a separate COMIP module to the Smartcom which gives me some freedom to tinker without screwing it up.

Make sure you take a backup in wintex of your config before continuing. Good luck.

Hi Rich

i belive the problem here is to make it work with smartcom only.

Btw do you have your comIp wired to the raspberry via usb/erhernet cable permamently??

Anyone have any ideas how to make it work on smartcom

cheers Erick

5xPa commented 3 years ago

Thanks guys for the reply.

I got mine working by changing the ComIP module protocol to Crestron.

I have a separate COMIP module to the Smartcom which gives me some freedom to tinker without screwing it up.

Make sure you take a backup in wintex of your config before continuing. Good luck.

Ok fired up Wintex Connect to panel via Smartcom In Comms >> Radio Pad and Comports On Board Digi Com Nothing Fitted Com Port 1 Smartcom Com Port 2 ComIp ... changed to Crestron Com Port 3 Nothing Fitted

Com IP details Com 1 radio button selected Local IP addresss ... blank
Com 2 radio button selected Local IP 192.168.0.7 (the ip address added to homebridge-texecom-connect) port 1001 Com 3 radio button selected Local IP addresss ... blank

Now if I open front door or walk past living room sensor I get alerts on my phone. Yet in HomeKit I don't see motion sensor or contact.

Maybe I have messed up Homebridge, in HomeKit

Thanks for the assistance now I need to figure out why the sensor don't show up

5xPa commented 3 years ago

To Rich-Chamberlain and erickkowalski big thanks no have the plugin working correctly. Eventually figured the motion and contacts were sitting at the top of the screen in HomeKit selected them created rooms ( I had created rooms in HomeBridge thought that woul create rooms in HomeKit) set up notifications and test walking past sensor and opening doors. Now I just have to order up in wall modules for UK switches. Any recommendation greatly appreciated.

5xPa commented 3 years ago

I have connected the front door bell into Texecom Premier elite set as Moment Key Attributes set Monitor. Can be set to monitor only when armed. If I am in the garden get and alert someone at door.

When door bell is pressed Texecom app produces and alert. Would be a nice piece of integration if this could be added to homebridge-texecom-connect.

petersturrock commented 3 years ago

I have set this up as per 5xPa's instruction on Wintex with Crestron set for the ComIP on ComPort2. It looks like the plugin is detecting changes as I move through the house but I don't see any notification on Homekit. Homebridge set on debug.

[2/28/2021, 8:36:42 PM] [TexecomConnect] Socket Data: ����x�x���x�x�x [2/28/2021, 8:36:42 PM] [TexecomConnect] Reconnecting to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:36:42 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.122.224:10001 [2/28/2021, 8:36:52 PM] [TexecomConnect] Connected to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:11 PM] [TexecomConnect] Socket Data: ����x�x��x�x�x [2/28/2021, 8:37:11 PM] [TexecomConnect] Reconnecting to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:11 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:21 PM] [TexecomConnect] Connected to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:23 PM] [TexecomConnect] Socket Data: ����x�x���x�x [2/28/2021, 8:37:23 PM] [TexecomConnect] Reconnecting to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:23 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.122.224:10001 [2/28/2021, 8:37:33 PM] [TexecomConnect] Connected to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:38:30 PM] [TexecomConnect] Socket Data: ����x�x�x��x�x�x [2/28/2021, 8:38:30 PM] [TexecomConnect] Reconnecting to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:38:30 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.122.224:10001 [2/28/2021, 8:38:40 PM] [TexecomConnect] Connected to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:39:04 PM] [TexecomConnect] Socket Data: ����x�x����x�x�x [2/28/2021, 8:39:04 PM] [TexecomConnect] Reconnecting to SmartCom - 192.168.122.224:10001 [2/28/2021, 8:39:04 PM] [TexecomConnect] Disconnected from SmartCom - 192.168.122.224:10001 [2/28/2021, 8:39:14 PM] [TexecomConnect] Connected to SmartCom - 192.168.122.224:10001

I setup the zones on Homebridge UI as follows.

"zones": [ { "accessory": "contact", "name": "Front Door", "number": 9 }, { "accessory": "motion", "name": "Lower Hall", "number": 10 }, { "accessory": "motion", "name": "Office", "number": 11 }, { "accessory": "motion", "name": "Upper Hall", "number": 12 }, { "accessory": "contact", "name": "Back Door", "number": 13 }, { "accessory": "motion", "name": "Kitchen", "number": 14 }, { "accessory": "motion", "name": "Music Room", "number": 15 }, { "accessory": "motion", "name": "Bedroom", "number": 16 }

Any ideas ??

5xPa commented 3 years ago

Here is the Config I used. Also when I clicked on the config button after installing the plugin. The config as follows { "platform": "Texecom", "ip_address": "192.168.0.7", "ip_port": 10001, "zones": [ { "name": "Garage Pir", "zone_number": "17", "zone_type": "motion", "dwell": 1000 }, { "name": "Living Room Pir", "zone_number": "18", "zone_type": "motion", "dwell": 1000 }, { "name": "Dining Room Pir", "zone_number": "19", "zone_type": "motion", "dwell": 1000 }, { "name": "Kitchen Pir", "zone_number": "20", "zone_type": "motion", "dwell": 1000 }, { "name": "Upstairs Hall Pir", "zone_number": "21", "zone_type": "motion", "dwell": 1000 }, { "name": "Shed Pir", "zone_number": "22", "zone_type": "motion", "dwell": 1000 }, { "name": "Front Door", "zone_number": "23", "zone_type": "contact", "dwell": 1000 }, { "name": "Back Door", "zone_number": "24", "zone_type": "contact", "dwell": 1000 }, { "name": "Shed Window", "zone_number": "25", "zone_type": "contact", "dwell": 1000 }, { "name": "Garage Door", "zone_number": "27", "zone_type": "contact", "dwell": 1000 }, { "name": "Kitchen Window Left", "zone_number": "28", "zone_type": "contact", "dwell": 1000 }, { "name": "Kitchen Window Right", "zone_number": "29", "zone_type": "contact", "dwell": 1000 }, { "name": "Small Front Bedroom", "zone_number": "31", "zone_type": "motion", "dwell": 1000 } ], "areas": [ { "name": "Downstairs", "area_number": "2", "area_type": "securitysystem", "dwell": 1000 }, { "name": "Shed", "area_number": "4", "area_type": "securitysystem", "dwell": 1000 } ] }

petersturrock commented 3 years ago

5xPa, is that the config for this texecom-connect plugin or the config for the other texecom plugin ? I created the config with the GUI and it looks very different.

petersturrock commented 3 years ago

I managed to fix the issue. If you are seeing characters like this in the Socket Data:

����x�x����x�x�x

Then the baud rate on the ComIP port is incorrect. It needs to be set to 19200 when you set the port to Crestron

Once I changed the baud rate I see this

[3/1/2021, 1:34:01 PM] [TexecomConnect] Socket Data: "Z0151 [3/1/2021, 1:34:06 PM] [TexecomConnect] Socket Data: "Z0150 [3/1/2021, 1:34:19 PM] [TexecomConnect] Socket Data: "Z0101 [3/1/2021, 1:34:26 PM] [TexecomConnect] Socket Data: "Z0141 [3/1/2021, 1:34:27 PM] [TexecomConnect] Socket Data: "Z0100 [3/1/2021, 1:34:32 PM] [TexecomConnect] Socket Data: "Z0140

5xPa commented 3 years ago

petersturock its the homebride-texecom Not the homebridge-texecom-connect. Glad you got it running Ok, which ever one your using

abdulfhussain commented 2 years ago

Can someone please help me get this setup using SmartCom. I have added my areas and zones, I can see the alarm and sensors in The Home app but the sensors are not showing any movement,etc

I have SmartCom on port 1. Looking at the logs it connects to SmartCom, then disconnects, then reconnects and then disconnects.

I really want to get this working, please help

petersturrock commented 2 years ago

It's a long time since I set this up and I had a free issues with the comms format.

Have you reconfigured your alarm with Wintex and set up the comip port to Crestron?

Can you post you log file ? Are you seeing any data on the socket connection ? From memory, if it can't parse the data it just disconnects.

abdulfhussain commented 2 years ago

Thanks Peter for replying, I wasn't sure if anyone would get back.

I dont have Com IP, I just have SmartCom on port 1 and then a phone dialer on port 2.

Should I be setting the SmartCom port to Crestron?

Here is the log, I have removed the non-Texecom related entries

[12/31/2021, 12:16:25 AM] [TexecomConnect] Initializing TexecomConnect platform... [12/31/2021, 12:16:25 AM] Loading 8 accessories... [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Home [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Dining Room PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Cloakroom PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Kitchen PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Kitchen Door [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Living Room PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Landing PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Front Door [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Hallway PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Dads Living Room PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Study PIR [12/31/2021, 12:16:25 AM] [TexecomConnect] Accessory Loaded: Garage Door [12/31/2021, 12:16:26 AM] [TexecomConnect] Connected to SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:30 AM] [TexecomConnect] Reconnecting to SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:30 AM] [TexecomConnect] Disconnected from SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:40 AM] [TexecomConnect] Connected to SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:48 AM] [TexecomConnect] Reconnecting to SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:48 AM] [TexecomConnect] Disconnected from SmartCom - 192.168.3.58:10001 [12/31/2021, 12:16:58 AM] [TexecomConnect] Connected to SmartCom - 192.168.3.58:10001 [12/31/2021, 12:18:00 AM] [TexecomConnect] Disconnected from SmartCom - 192.168.3.58:10001

abdulfhussain commented 2 years ago

I dont have Winter either, so I am changing settings through the control panel. I tried setting the baud rate for the SmartCom port to 19200 but that did not make any difference so I set it back to 2400

petersturrock commented 2 years ago

https://www.texe.com/uk/uploads/INS760EN-2_Texecom_Connect_Guide_Web_11.pdf

Smartcom has two connectors, page 9 on the pdf above. It looks like the second connector acts as a com ip connection so wherever com port that's plugged into on your control panel will need reprogrammed to Crestron.

You can download wintex from the texecom site if you have a windows pc to run it. Just register as an installer.

abdulfhussain commented 2 years ago

Thank you so much, I set port 2 to Crestron and it did not work, I also changed the baud rate to 19200 and it started working.

really appreciate your help.

out of interest are you using the sensors to trigger any automation?

petersturrock commented 2 years ago

No problem. I was planning to use it to turn on lights as you walked through the house but I have the texecom pet PIRs and they don't always trigger.

5xPa commented 2 years ago

If you set in Wintex, the Richocet Device Mode Zone group options to "always awake" it. Will reduce battery life. I set some of mines to this and 2 years on still using the same batteries.

alexcr28 commented 2 years ago

I just got it to work with the SmartCom device after having some issues. Just is case it is of use to anyone:

-set COM2 to Crestron (assuming SmartCom was on COM1 and COM-IP on COM2) -set the baud rate to 19200

After this I was seeing messages stating "Connected to SmartCom' and then right after "Reconnecting to SmartCom" and the accessories that I defined were not updating.

My problem wast that on the panel, I had a different port number programmed into COM2 so I was using this in the config file. When I put in the original port number 10001 into the config file, things started working.