Reply
Emerging Member
Posts: 103
Registered: ‎04-15-2015
Kudos: 17
Solutions: 1

Homebridge

Hi,

 

I am coming late to the discussion about mFi and its future.  I went looking on the Ubiquiti web site for info on the products and noticed it was buried (had to use a google search to find it).  I found a thread here with a discussion regarding mFi and the disappointing news that development has been suspended.

 

I was wondering if anyone has considered using Homebridge to connect mFi stuff to Apple's HomeKit API (https://github.com/nfarina/homebridge)?  There is already one plugin available that supports mPower (https://github.com/wr/homebridge-mpower).  I believe this project could be extended to include the other mFi products as well.

 

What I would really like to see is the UniFI G3 video camera brought into the HomeKit ecosystem.  Seems like Homebridge might be a possible way to do this.

 

Regards,

New Member
Posts: 1
Registered: ‎02-02-2017

Re: Homebridge

If the UniFI G3 video cam has an RTSP stream you should be able to use this homebridge pluggin to get it to register with homekit.

https://github.com/legotheboss/homebridge-camera-ffmpeg-omx

 

I've done it with samsungs p6410bn IP cam.

Running homebridge on a PI3 and the above homebridge plugin is all it took.

My config setup for my samsung is outlined on this wiki. If the UniFI camera has similar accesable RTSP streams, it should work too.

https://github.com/KhaosT/homebridge-camera-ffmpeg/wiki/Tested-Configuration

Regular Member
Posts: 405
Registered: ‎10-21-2013
Kudos: 120
Solutions: 23

Re: Homebridge

Just to add...

UniFi G3 cameras do support RTSP in 2 ways:

1) If managed by UFV - the RTSP stream is hosted by the NVR
2) if in standalone mode - the RTSP stream is handled by the camera directly
Emerging Member
Posts: 50
Registered: ‎08-29-2015
Kudos: 20

Re: Homebridge

I cannot get my configuration to pull up the mPower units... Homebridge loads 0 accessories and 0 platforms.

 

Config.json

 

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-144"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

   
    "platforms": {
        "platform": "mPower",
        "name": "mPower",
        "outlets": [{
                "name": "Living Room Lamp",
                "username": "admin",
                "password": "Password",
                "url": "192.168.1.157",
                "id": "1"
            },
            {
                "name": "Upstairs Light",
                "username": "admin",
                "Password": "Password",
                "url": "192.168.1.160",
                "id": "1"
            }
        ]
    }
}



Path Config is in:
/home/cwindsor/.homebridge/config.json


Terminal Screen:

cwindsor@Homebridge:~$ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[12/2/2017, 4:00:45 PM] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-mpower' since we already loaded the same plugin from '/usr/lib/node_modules/homebridge-mpower'.
[12/2/2017, 4:00:45 PM] Loaded plugin: homebridge-mpower
[12/2/2017, 4:00:45 PM] Registering platform 'homebridge-mpower.mPower'
[12/2/2017, 4:00:45 PM] ---
[12/2/2017, 4:00:45 PM] Loaded config.json with 0 accessories and 0 platforms.
[12/2/2017, 4:00:45 PM] ---
[12/2/2017, 4:00:45 PM] Loading undefined platforms...
Setup Payload:
X-HM://0023ISYWOFO9I
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

 

 

 

 

If anyone would have an idea for me, it would be greatly appreciated.

New Member
Posts: 3
Registered: ‎12-17-2017

Re: Homebridge

Hi,

 

i guess the accessory tag and 2 square brackets are missing in your config. Try this:

 

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-144"
    },

    "description": "Homebridge",

    "accessories": [

    ],
   
    "platforms": [{
        "platform": "mPower",
        "name": "mPower",
        "outlets": [{
                "name": "Living Room Lamp",
                "username": "admin",
                "password": "Password",
                "url": "192.168.1.157",
                "id": "1"
            },
            {
                "name": "Upstairs Light",
                "username": "admin",
                "Password": "Password",
                "url": "192.168.1.160",
                "id": "1"
            }
        ]
    }]
}
Reply