homebridge-cbus icon indicating copy to clipboard operation
homebridge-cbus copied to clipboard

Having trouble connecting home bridge and CGATE

Open Jamesconnect opened this issue 6 years ago • 6 comments

Hi everyone I am having trouble connecting home bridge to cbus. Here is my situation: I am using parallels to run cgate (through toolkit) while also attempting to run homebridge on the same iMac. I am in a similar situation to peterconn was about this time last year. https://github.com/anthonywebb/homebridge-cbus/issues/58

The IP address of the iMac is 192.168.17.182 as you can see in the config.json file below

screen shot 2018-06-02 at 5 04 50 pm

In the access file found in Clipsal, C-gate2, config I have entered the appropriate information to allow the iMac access to C-gate, as you can see below.

screen shot 2018-06-02 at 5 03 55 pm

However, when I try to run homebridge through terminal, I get the following message

screen shot 2018-06-02 at 5 05 28 pm

I am thinking I should should perhaps run homebridge on a separate computer which is on the network?

How do you people think I should resolve this issue?

Jamesconnect avatar Jun 02 '18 07:06 Jamesconnect

73b8bb96-061f-4289-a125-e62402d4be39

DarylMc avatar Jun 02 '18 20:06 DarylMc

It looks like IP address works. Try changing operate to program.

DarylMc avatar Jun 02 '18 20:06 DarylMc

Ok, tried changing it to remote 255.255.255.255 Program

screen shot 2018-06-03 at 8 56 20 am

Now I get a different error when running in terminal

screen shot 2018-06-03 at 8 58 18 am

Could it be that the 20023 port is wrong in the config.json file? what does that actually mean? is to the port of the computer running c-gate? I know peterconn #58 said they had to " success i think, i had to change the port to the port shown on the current cgate client settings. It seems to change every time i restart cgate"

Jamesconnect avatar Jun 02 '18 23:06 Jamesconnect

I’m out just now Check the port number on Anthony’s example

DarylMc avatar Jun 02 '18 23:06 DarylMc

I reset the port to the default 20023 and changed the ip address from the iMacs to the virtual machines Ip. Now i get this message: Loaded plugin: homebridge-cbus [6/4/2018, 9:50:15 PM] Registering platform 'homebridge-cbus.CBus' [6/4/2018, 9:50:15 PM] --- [6/4/2018, 9:50:15 PM] Loaded config.json with 0 accessories and 1 platforms. [6/4/2018, 9:50:15 PM] --- [6/4/2018, 9:50:15 PM] Loading 1 platforms... [6/4/2018, 9:50:15 PM] [CBus] Initializing homebridge-cbus.CBus platform... cbus:client Opening connection to C-Gate… +0ms [6/4/2018, 9:50:15 PM] Loading 0 accessories... cbus:client C-Gate socket error: Error: connect ETIMEDOUT 10.211.55.3:20023 +1m cbus:client C-Gate connection could not be opened; exiting. +0ms iMac-in-Kitchen:~ homebridge$

Jamesconnect avatar Jun 04 '18 11:06 Jamesconnect

@peterconn and I use raspberry pi 3 to run CGate and Homebridge。

If you want to continue trying on a VM this needs to work first. Using telnet, try connect from the iMac OS to CGate on the virtual machine port 20023. Send noop command, look for reply.

DarylMc avatar Jun 04 '18 21:06 DarylMc