C-Bus Homebridge - 421 Connection Refused

Discussion in 'C-Gate Developers' started by sac63, Jan 17, 2021.

  1. sac63

    sac63

    Joined:
    Nov 6, 2013
    Messages:
    7
    Likes Received:
    1
    Location:
    Perth
    Attempting to get Homebridge Cbus Interface running on Raspberry Pi but hitting problems with connecting to Cgate and 421 Connection Refused Error. Can anyone offer any advice, pretty new to this. Homebridge server won't run, log below:

    [17/01/2021, 8:47:05 am] [Homebridge UI] Homebridge restart request received
    [17/01/2021, 8:47:05 am] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
    [17/01/2021, 8:47:05 am] [HB Supervisor] Sending SIGTERM to Homebridge
    [17/01/2021, 8:47:05 am] Got SIGTERM, shutting down Homebridge...
    [17/01/2021, 8:47:11 am] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
    [17/01/2021, 8:47:16 am] [HB Supervisor] Restarting Homebridge...
    [17/01/2021, 8:47:16 am] [HB Supervisor] Starting Homebridge with extra flags: -I
    [17/01/2021, 8:47:16 am] [HB Supervisor] Started Homebridge v1.1.7 with PID: 9253
    [17/01/2021, 8:47:17 am] Loaded config.json with 0 accessories and 2 platforms.
    [17/01/2021, 8:47:17 am] ---
    [17/01/2021, 8:47:18 am] Loaded plugin: [email protected]
    [17/01/2021, 8:47:18 am] Registering platform 'homebridge-cbus.CBus'
    [17/01/2021, 8:47:18 am] ---
    [17/01/2021, 8:47:18 am] Loaded plugin: [email protected]
    [17/01/2021, 8:47:18 am] Registering platform 'homebridge-config-ui-x.config'
    [17/01/2021, 8:47:18 am] ---
    [17/01/2021, 8:47:18 am] Loading 2 platforms...
    [17/01/2021, 8:47:18 am] [CBus] Initializing homebridge-cbus.CBus platform...
    2021-01-17T00:47:18.279Z cbus:client Opening connection to C-Gate…
    [17/01/2021, 8:47:18 am] [Config] Initializing config platform...
    [17/01/2021, 8:47:18 am] [Config] Running in Service Mode
    2021-01-17T00:47:18.314Z cbus:client C-Gate connection open.
    2021-01-17T00:47:18.322Z cbus:client C-Gate session not ready -- unexpected message: 421 Connection refused.
    2021-01-17T00:47:18.326Z cbus:client C-Gate socket terminated.
     
    sac63, Jan 17, 2021
    #1
  2. sac63

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Have you looked here?
    Homebridge-cbus-installer/SETUP.md at master · greiginsydney/Homebridge-cbus-installer · GitHub
     
    DarylMc, Jan 17, 2021
    #2
  3. sac63

    sac63

    Joined:
    Nov 6, 2013
    Messages:
    7
    Likes Received:
    1
    Location:
    Perth
    Thanks for your reply, I have had a look and can't find anything to help where I am currently at. I feel I have setup as per directions in your spreadsheet but must have something wrong. In the log it says 0 Accessories loaded, which I assume is a problem but then also can't understand the C-Gate Session not ready and 421 Connection refused at the end
     
    sac63, Jan 17, 2021
    #3
  4. sac63

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Greig's instructions and setup script is the easiest way to setup Homebridge and CGate on a raspberry pi.
    His script will find the accessories in your project and create the config.json file.
    I don't know the exact steps you have taken so I recommend just start from scratch there.
     
    DarylMc, Jan 17, 2021
    #4
  5. sac63

    sac63

    Joined:
    Nov 6, 2013
    Messages:
    7
    Likes Received:
    1
    Location:
    Perth
    Thanks for advice, started from scratch and reflashed SD Card, all working now, awesome, very impressed
     
    sac63, Jan 21, 2021
    #5
    DarylMc likes this.
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.