Problems with Homebridge on HyperVM on Windows connecting to Local c-gate (v3.3.2)

Discussion in 'General Discussion' started by allanf, Jul 11, 2024.

  1. allanf

    allanf

    Joined:
    Aug 11, 2014
    Messages:
    45
    Likes Received:
    4
    Location:
    Sydney
    Setup:
    Windows 11 Pro

    C-Bus Toolkit 1.17.6 (build 2721)
    C-Gate v3.3.2 (build 1855)
    *** Toolkit works perfectly okay ***

    Homebridge installed in HyperVM


    =-=-=-=-Getting the following in homebridge log

    2024-07-11T00:06:04.529Z cbus:client Opening connection to C-Gate…
    2024-07-11T00:06:04.545Z cbus:client C-Gate connection open.
    2024-07-11T00:06:04.564Z cbus:client C-Gate session not ready -- unexpected message: 201 Service ready: Schneider Electric C-Gate Version: v3.3.2 (build 1855) #cmd-syntax=1.0
    =-=-=-=-


    Not sure if I am seeing the same issue being discussed here : https://github.com/anthonywebb/homebridge-cbus/issues/84


    Has anyone else seen this?
    Any solutions?
     
    allanf, Jul 11, 2024
    #1
  2. allanf

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    242
    Likes Received:
    35
    Location:
    Melbourne
    Not seen it, but it makes sense, especially the "unexpected message" bit, which means Homebridge is looking for specific text.

    (This is bad code in my opinion. It should probably just look for a version return at most, or probably perfectly fine to just look for 201/Created status, which would be far simpler and more reliable, and wouldn't require a specific name being set, and also would account for Clipsal being acquired by Schneider, and also wouldn't leave you asking this question...)

    It's probably a mis-match of C-Gate name in C-GateConfig.txt, and Homebridge is expecting something else. I'm thinking yours has 'Schneider Electric C-Gate'. Change it to 'Clipsal C-Gate' in that file and re-start C-Gate and see if magic happens. Then contact the Homebridge folk by raising an issue to suggest a simple check for 201/Created status if I'm right.

    The C-Gate name should not matter.

    Code:
    #### cgate-name:
    # Name of this server
    # Default Value: Schneider Electric C-Gate
    # Scope:         global
    # Effective on:  restart
    ###
    cgate-name=Clipsal C-Gate
    
     
    ssaunders, Jul 11, 2024
    #2
    DarylMc likes this.
  3. allanf

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    242
    Likes Received:
    35
    Location:
    Melbourne
    (Correction, probably contact the C-Bus plugin coder for Homebridge...)
     
    ssaunders, Jul 11, 2024
    #3
  4. allanf

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,313
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Hi
    CGate changed a name parameter which is causing the problem with Homebridge CBus.
    Fixes discussed here.
    https://github.com/anthonywebb/homebridge-cbus/issues/140

    I think this is the easiest way to go about it.
    https://github.com/anthonywebb/homebridge-cbus/issues/140#issuecomment-1876192871
     
    DarylMc, Jul 11, 2024
    #4
  5. allanf

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,313
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    On Windows the config file should be at C:\ProgramData\Schneider Electric\C-Gate 3\config\C-GateConfig.txt
     
    DarylMc, Jul 11, 2024
    #5
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.