Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi Connection to CNI (5500CN2)? #95

Open
jtjg1 opened this issue Nov 3, 2019 · 7 comments
Open

Pi Connection to CNI (5500CN2)? #95

jtjg1 opened this issue Nov 3, 2019 · 7 comments

Comments

@jtjg1
Copy link

jtjg1 commented Nov 3, 2019

Hi all. I have followed the excellent Homebridge instructions from Daryl McDougall and installed cgate and Homebridge on a new Raspberry Pi (ip 192.168.1.47). My Pi is connected to my network via wifi. On my network, I have a CNI at ip 192.168.1.48. Becuase I am not suing a wired connection, what changes do I need to make to my config.json and/or access.txt or C-GateConfig.txt or? I am a bit unclear on how to set up the interface from the Pi to the C-bus system. Thank you for any guidance!

@DarylMc
Copy link

DarylMc commented Nov 3, 2019

@jtjg1
I just sent you an email but after reading this I can be a bit more clear.
RPI IP address will be used for SSH connections to the RPI and in CBus Toolkit to setup a connection to a remote CGate if and when you need to use CGate to make changes to your CBus network programming.

If CGate is running on the RPI the config.json file should point to 127.0.0.1

CGate config text needs to have your CBus project name added in the places specified.
CGate will then use the CNI IP address data from your project xml.
Easy

@Brue24
Copy link

Brue24 commented May 16, 2021

Hi everyone. I came across a project by greiginsydney which allowed me to install homebridge and cgate package onto a PI 3 as my access to touchsoft has stopped working due to recent phone/ios updates anyhow, i have managed to install and get my light switches onto my phone in the home app which is great, howerver the lights do not work from within the app. I do see log entries supporting the interface between my phone and the PI. Im just wondering whether my configuration is correct. I am using the loopback interface address for the client connection I am not certain that things are working as they should as I am also getting some errors which I havent been able to fathom due to my lack of coding/cbus experience, have attached my log file which may also shed some light .. would greatly appreciate any help in resolving

cheers

Andrew

homebridge.log (3).txt

here's a partial from my config below.
{
"bridge": {
"name": "Homebridge Carlton",
"username": "0E:C0:83:57:16:E4",
"port": 51923,
"pin": "139-05-413",
"bind": [
"wlan0"
]
},
"platforms": [
{
"platform": "homebridge-cbus.CBus",
"name": "CBus",
"client_ip_address": "127.0.0.1",
"client_controlport": 20023,
"client_cbusname": "CARLTON",
"client_network": 254,
"client_application": 56,
"client_debug": true,
"platform_export": "/home/pi/my-platform.json",
"accessories": [
{
"type": "dimmer",
"id": 0,
"name": "Hall North",
"enabled": true
},
{
"type": "dimmer",
"id": 1,
"name": "lounge",
"enabled": true
},
{
"type": "dimmer",
"id": 3,
"name": "movie wall",
"enabled": true
},
{
"type": "dimmer",
"id": 4,
"name": "kitchen",
"enabled": true
},
{
"type": "dimmer",
"id": 5,
"name": "master bed",
"enabled": true
},
{
"type": "light",
"id": 6,
"name": "outside south",
"enabled": true
},
{
"type": "light",
"id": 7,
"name": "ens",
"enabled": true
},
{
"type": "light",
"id": 8,
"name": "kitchen bench",
"enabled": true
},
{
"type": "dimmer",
"id": 9,
"name": "dining table",
"enabled": true
},
{
"type": "light",
"id": 10,
"name": "Hall West Side",
"enabled": true
},
{
"type": "light",
"id": 11,
"name": "outside north",
"enabled": true
},
{
"type": "light",
"id": 12,
"name": "master bed hall",
"enabled": true
}
]
},
{
"name": "Config",
"port": 8581,
"platform": "config"
}
],
"accessories": []
}

@DarylMc
Copy link

DarylMc commented May 16, 2021

I haven't got time to look right away but you could log an issue on Greig's page.
https://github.com/greiginsydney/Homebridge-cbus-installer

As far as I know Greig's instructions and setup is all good so you could just try from the start again.

@Brue24
Copy link

Brue24 commented May 16, 2021 via email

@DarylMc
Copy link

DarylMc commented May 16, 2021

Greig’s setup will fully create the config file.
Did you make some changes to it?

@Brue24
Copy link

Brue24 commented May 16, 2021 via email

@Brue24
Copy link

Brue24 commented May 16, 2021

Sorry just realised i responded to your email thinking it was the issue 118 which I posted earlier. Sorry for any confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants