bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

Multiple instances of the same plugin #516

Open heyjohnnyb opened 8 months ago

heyjohnnyb commented 8 months ago

HI, I would like to expose two different eWelink configurations to Homekit. Basically the second one only has a few devices, so that I can have two different child bridges each running a different eWelink configuration, and so the Home app linked to each bridge will show different devices. Is this possible? Thanks, JB

adrianjagielak commented 5 months ago

For anyone searching for this in the future you need to manually add a second instance/bridge in Homebridge json config like this:

        {
            "name": "eWeLink 1",
            "username": "<< your username >>",
            "password": "<< your password >>",
            "mode": "auto",
            "language": "en",
            "platform": "eWeLink",
            "_bridge": {
                "username": "90:6C:FB:DF:27:BF",
                "port": 33333
            }
        },
        {
            "name": "eWeLink 2",
            "username": "<< your username >>",
            "password": "<< your password >>",
            "mode": "auto",
            "language": "en",
            "platform": "eWeLink",
            "_bridge": {
                "username": "0E:70:4A:64:89:88",
                "port": 53965
            }
        },