anthonywebb / homebridge-cbus

CBus plugin for homebridge
MIT License
35 stars 20 forks source link

Unable to connect to Toolkit #143

Open luke-b5114 opened 10 months ago

luke-b5114 commented 10 months ago

Hi all,

Recently installed homebridge-cbus on a raspberry pi and working well.

I am having the issue of not being to access toolkit on my windows computer and open the network. Is anyone able to help me with this ?

Thank you,

wrh75 commented 10 months ago

Your raspberry pi will be running C-Gate. Toolkit will also want to run an instance of C-Gate on the windows computer. I don't think 2 instances of C-Gate can connect to the cbus network at the same time. Try stopping C-Gate on the raspberry pi before running toolkit.

luke-b5114 commented 10 months ago

What's the easiest solution to stopping C-Gate on the raspberry pi ?

I am adding another device on the CBus network, am I needing to update the XML on the raspberry pi afterwards ? or will it pick the address up automatically ?

wrh75 commented 10 months ago

If the raspberry pi isn't doing anything else important, I would just switch it off to be sure and restart after you're finished in toolkit. If you're using the Homebridge GUI you could try going to the Homebridge Cbus plugin and disabling it under the little spanner icon.

luke-b5114 commented 10 months ago

Disabled and also turned off the raspberry pi.

Toolkit is still unable to open my network

luke-b5114 commented 10 months ago

Is there somehow I can set up remote G-Gate connection?

Thank you for the help

wrh75 commented 10 months ago

Sorry to hear that. That was the issue that I ran into a while back and stopping the C-Gate on the pi solved it. I remember it being a bit fussy. I had to make sure that C-Gate stopped and restarted on the pc after stopping the instance on the pi. If you've tried that it must be some other issue. I think it would be easier to solve the issue with toolkit on the pc rather than a remote C-Gate connection. Good luck.

conformist66 commented 10 months ago

Using toolkit on your pc, go to file>disconnect cgate Then go file>connect remote cgate. Enter the IP address of your pi and click OK. If cgate is running on your pi and you allowed for remote programming in the cgate access config file on your pi, toolkit will connect. Bear in mind, there's a bug in toolkit/cgate that will not allow configuration of eDLTs. All other devices can be configured. When finished, do NOT close cgate. You must just disconnect. We use this all the time to access remote sitesSent from my Galaxy -------- Original message --------From: luke-b5114 @.> Date: 12/1/24 8:21 pm (GMT+09:30) To: anthonywebb/homebridge-cbus @.> Cc: Subscribed @.***> Subject: Re: [anthonywebb/homebridge-cbus] Unable to connect to Toolkit (Issue #143) Is there somehow I can set up remote G-Gate connection? Thank you for the help

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

luke-b5114 commented 10 months ago

I did try that but does not seem to be working.

I believe I've done this correctly..

C-Gate won't let remote clients connect to it if they're not in the file /usr/local/bin/cgate/config/access.txt. Add your Admin machine's IP address here, or to whitelist an entire network add it with '255' as the last octet. e.g.: 192.168.1.7 whitelists just the one machine, whereas 192.168.1.255 whitelists the whole 192.168.1.x network. The more IPs you whitelist, the less secure C-Gate becomes.

Enter an IP or network address to allow/whitelist : 192.168.1.255

When selecting remote C-Gate 192.168.1.112: 20123

DarylMc commented 10 months ago

What Java version have you got? java --version

luke-b5114 commented 10 months ago

How do I check which Java Version is installed ?

DarylMc commented 10 months ago

How do I check which Java Version is installed ?

Sorry I misread what you are doing there last night. I thought you were using CGate on the pi. I was also wrong. You need to type "java -version" into the pi terminal to find the version not "--version"

luke-b5114 commented 10 months ago

This is the version I am using below...

java version "1.8.0_381" Java(TM) SE Runtime Environment (build 1.8.0_381-b09) Java HotSpot(TM) Client VM (build 25.381-b09, mixed mode)

luke-b5114 commented 10 months ago

overall, I am just trying to gain access to CBus Toolkit on my Windows machine while Raspberry Pi is still on running C-Gate.

I have bought a CBus coupler I am wanting to address and add to the system.

DarylMc commented 10 months ago

That version of java on the pi will probably need the java security settings changed if you want to use CBus Toolkit and connect to a remote CGate on the pi but I recommend you use the local CGate on the Windows machine to add your new device. Make a copy/backup your project xml before you do anything. Once you have the new unit added in Toolkit and backed up again, then copy the xml over to the pi.

DarylMc commented 10 months ago

Keep in mind the latest Cbus Toolkit 17 is a major upgrade. Stick with Cbus Toolkit 16 for now.

luke-b5114 commented 10 months ago

I am unable to open network on Windows machine toolkit. prompts me with "PCI failed to reset, unable to open network".

yep, i am still on 1.16.3

DarylMc commented 10 months ago

This video I made may help with remote and local CGate Or confuse you more :) https://www.youtube.com/watch?v=L1tet3Espu8

DarylMc commented 10 months ago

This is the java security fix for Toolkit access to a remote CGate on a pi. https://www.cbusforums.com/threads/c-gate-command-port-issue-with-toolkit.10610/#post-57718

DarylMc commented 10 months ago

Go steady if you're not sure what you are doing. Backup your project before doing anything.

luke-b5114 commented 10 months ago

Looks like I'm in the same position you were years back. going off this link https://www.cbusforums.com/threads/c-gate-command-port-issue-with-toolkit.10610/#post-57718 "An error has occurred while initializing the secure socket layer - Cannot connect to C-Gate Server"

DarylMc commented 10 months ago

Since you have to manually install jre8 on the latest raspberry pi OS If I had to build a new image I would use jdk-8u202-linux-arm32-vfp-hflt.tar.gz If you use this version you won't have to alter the security settings which block TLSv1 and prevent CBus Toolkit from connecting to the remote CGate.

There is a currently working raspberry pi setup guide here. https://github.com/greiginsydney/Homebridge-cbus-installer/blob/master/SETUP.md

luke-b5114 commented 10 months ago

I'm am unable to find that version of Java available.

I followed Greigs steps, working fine. But still unable to access Toolkit and open network

DarylMc commented 10 months ago

jdk-8u202-linux-arm32-vfp-hflt.tar.gz jdk-8u202-linux-arm32-vfp-hflt.tar.gz

luke-b5114 commented 10 months ago

Is this a matter of installing this straight to the existing raspberry pi? or do I have to go through https://github.com/greiginsydney/Homebridge-cbus-installer/blob/master/SETUP.md all over again ?

luke-b5114 commented 10 months ago

Re-installed a different version of Java and now works. can remote into toolkit now.

Thanks all for the help

JasonY00 commented 10 months ago

Please close the issue if resolved.

thanks

Jason