Giter VIP home page Giter VIP logo

Comments (3)

thenewwazoo avatar thenewwazoo commented on August 19, 2024

That config doesn't appear to be properly formed. Where did it come from? If you're not using it already, I highly recommend using the homebridge-config-ui-x tool. That should help you set up Homebridge, at which point the plugin will work. Please let me know if it doesn't.

from homebridge-lutron-caseta-leap.

QuillaciousD avatar QuillaciousD commented on August 19, 2024

Not sure what happened with the config file as It was generated from from the hombridge-config-ui-x tool.

I decided to reinstall my homebridge docker and start from scratch to see if that addressed some of the issues.

The config file format still looks a bit different from the boilerplate one though. So far, I am still getting an error.
I am going to try and write my config file manually too to see if there is something odd going on there. I should also note that the server with the docker container is running on a separate VLAN than the Lutron Hub however I do have rules set up to allow homebridge to talk across the VLAN.

Thanks

Plugin Config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "X",
        "port": "X",
        "pin": "X"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "secrets": [
                {
                    "bridgeid": "#####",
                    "ca": "MII...",
                    "key": "MII...",
                    "cert": "MII..."
                }
            ],
            "platform": "LutronCasetaLeap"
        },
        {
            "controllers": [
                {
                    "address": "###.###.#.#",
                    "password": "X",
                    "username": "X"
                }
            ],
            "options": [
                "Enable.Motion.SmartDetect.NvrEvents",
                "Enable.Motion.Switch"
            ],
            "platform": "UniFi Protect"
        },
        {
            "email": "X",
            "password": "X",
            "name": "X",
            "platform": "myQ"
        }
    ]
}

Logs:

2022-01-11T20:37:55.343Z leap:protocol:discovery checking HostAndPort { host: 'X.X.X.X', port: 22 }
2022-01-11T20:37:55.348Z leap:protocol:discovery was not ipv6: Error [AddressError]: Incorrect number of groups found

at new AddressError (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/ip-address/dist/lib/address-error.js:20:28)

at Address6.parse (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/ip-address/dist/lib/ipv6.js:599:19)
at new Address6 (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/ip-address/dist/lib/ipv6.js:141:35)
at BridgeFinder.extractIp (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/lutron-leap/src/BridgeFinder.ts:68:30)
at BridgeFinder.handleDiscovery (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/lutron-leap/src/BridgeFinder.ts:156:29)
at MDNSServiceDiscovery.<anonymous> (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/lutron-leap/src/BridgeFinder.ts:44:18)
at Event.emit (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/atvik/src/sync.ts:65:29)
at MDNSServiceDiscovery.BasicServiceDiscovery.updateService (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/tinkerhub-discovery/src/discovery/basic-service-discovery.ts:67:24)
at MDNSServiceDiscovery.refreshService (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/tinkerhub-mdns/src/discovery/mdns-discovery.ts:346:8)
at Timeout._onTimeout (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/tinkerhub-mdns/src/discovery/mdns-discovery.ts:206:27) {
parseMessage: undefined
}
2022-01-11T20:37:55.399Z leap:protocol:discovery got useful ipaddr X.X.X.X
2022-01-11T20:37:55.407Z leap:protocol:discovery got hostname from IP: Lutron-########.local
2022-01-11T20:37:55.407Z leap:protocol:discovery extracted bridge ID: X
2022-01-11T20:37:55.407Z leap:protocol new LeapClient being constructed
2022-01-11T20:37:55.408Z leap:protocol:discovery failed to handle discovery: Error: error:0909006C:PEM routines:get_name:no start line

at node:internal/tls/secure-context:65:13
at Array.forEach (<anonymous>)
at setCerts (node:internal/tls/secure-context:63:3)
at configSecureContext (node:internal/tls/secure-context:152:5)
at createSecureContext (node:_tls_common:117:3)
at new LeapClient (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/lutron-leap/src/LeapClient.ts:50:44)
at BridgeFinder.handleDiscovery (/homebridge/node_modules/homebridge-lutron-caseta-leap/node_modules/lutron-leap/src/BridgeFinder.ts:178:28) {
library: 'PEM routines',
function: 'get_name',
reason: 'no start line',
code: 'ERR_OSSL_PEM_NO_START_LINE'
}

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024

In both cases, you don't have the keys configured correctly. If you're using the GUI, just paste the key files in as they are, copied straight out of the files written by the pylutron-caseta script.

from homebridge-lutron-caseta-leap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.