GithubHelp home page GithubHelp logo

Comments (17)

aenglish86 avatar aenglish86 commented on June 12, 2024

I can send you screenshots via email of the actual configuration page

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

Sure. The error is that you haven't configured a controller. If you can post the relevant portion of your config.json as well, it would be helpful.

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

1C2E02DC-3C52-4BF0-A4CA-717F1DFD6F00

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

A few questions:

  • What version of the plugin are you on?
  • What are you using for your UniFi Protect controller? UCKgen2+, UDM-Pro, UNVR, etc?
  • Can you verify that 192.168.1.1 takes you to the UniFi Protect webUI?

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

Plugin version Unifi Protect2
3.3.0 published 8/17/2020

I am using the UDM Pro for my unifi protect. As with the udm pro accessing the unit is only accessible via: unifi.ui.com

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

Well, the good news is that it looks like your config.json is right.
The bad news is that you can't access UniFi Protect locally. That's necessary for this plugin to work.

If you go to https://192.168.1.1 that should take you to your UDM-Pro login page. When you login, if you look in the top right you should see 9 "dots"...clicking on that should allow you to go to your local UniFi Protect. You should be able to login there.

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

Ok, so when I go to https://192.168.1.1 it does take me to the login page which it has never done before in the past. But when I put that address into the config, it still says no host or ip has been configured in the hoobs logs

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

No. Your prior config was correct. You shouldn't have modified it.

You need to confirm that you, not the plugin, can successfully login to your UniFi Protect installation. Once you do, you can turn your focus to the plugin.

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

here is my config file in its entirety minus passwords:

"platforms": [
        {
            "platform": "TplinkSmarthome",
            "plugin_map": {
                "plugin_name": "homebridge-tplink-smarthome"
            }
        },
        {
            "platform": "Camera-ffmpeg",
            "plugin_map": {
                "plugin_name": "homebridge-camera-ffmpeg"
            },
            "name": "Camera FFmpeg"
        },
        {
            "platform": "UniFi Protect",
            "plugin_map": {
                "plugin_name": "homebridge-unifi-protect2"
            },
            "debug": false,
            "controllers": [
                {
                    "platform": "UniFi Protect",
                    "controllers": [
                        {
                            "address": "192.168.1.1",
                            "username": "aenglish86",
                            "password": "password"
                        }
                    ]
                }
            ]
        }
    ]
}

and here is the log:

2020-08-17, 7:54:40 PM Got SIGINT, shutting down Bridge...
2020-08-17, 7:54:45 PM Loaded plugin "homebridge-camera-ffmpeg".
2020-08-17, 7:54:45 PM Loaded plugin "homebridge-chamberlain".
2020-08-17, 7:54:46 PM Loaded plugin "homebridge-tplink-smarthome".
2020-08-17, 7:54:46 PM Loaded plugin "homebridge-unifi-protect2".
2020-08-17, 7:54:46 PM [TplinkSmarthome] homebridge-tplink-smarthome v5.1.0, node v12.16.3, homebridge v3.2.6
2020-08-17, 7:54:46 PM [UniFi Protect] No host or IP address has been configured.
2020-08-17, 7:54:46 PM [TplinkSmarthome] Configuring cached accessory: [Kids Bedroom] 800640B417ABB297FD65A2A8C91FDBEF1A75B6D4 01ef84df-6376-4f09-a926-f0cb8f5a2c9d
2020-08-17, 7:54:46 PM [TplinkSmarthome] Configuring cached accessory: [Laundry Room] 8006551926FEC0E86030E84D9B6DEF681A7587B4 ef11bec1-d034-4090-86c1-9a08f31e9c35
2020-08-17, 7:54:46 PM Bridge is running on port 51826.
2020-08-17, 7:54:46 PM [TplinkSmarthome] New Device Online: [Laundry Room] plug [8006551926FEC0E86030E84D9B6DEF681A7587B4] 192.168.1.61 9999
2020-08-17, 7:54:46 PM [TplinkSmarthome] Adding: [Laundry Room] plug [8006551926FEC0E86030E84D9B6DEF681A7587B4]
2020-08-17, 7:54:46 PM [TplinkSmarthome] New Device Online: [Kids Bedroom] plug [800640B417ABB297FD65A2A8C91FDBEF1A75B6D4] 192.168.1.203 9999
2020-08-17, 7:54:46 PM [TplinkSmarthome] Adding: [Kids Bedroom] plug [800640B417ABB297FD65A2A8C91FDBEF1A75B6D4]

If it couldn't connect to the controller wouldn't it throw some kind of error instead of saying no host or ip configured?

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

Your configuration is in fact incorrect. Try this:

"platforms": [
        {
            "platform": "TplinkSmarthome",
            "plugin_map": {
                "plugin_name": "homebridge-tplink-smarthome"
            }
        },
        {
            "platform": "Camera-ffmpeg",
            "plugin_map": {
                "plugin_name": "homebridge-camera-ffmpeg"
            },
            "name": "Camera FFmpeg"
        },
        {
            "platform": "UniFi Protect",
            "plugin_map": {
                "plugin_name": "homebridge-unifi-protect2"
            },
            "debug": false,
            "controllers": [
              {
                  "address": "192.168.1.1",
                  "username": "aenglish86",
                  "password": "password"
               }
           ]
        }
    ]
}

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

copied and pasted the updated config file you posted for me to try and i still get this:

2020-08-17, 8:17:20 PM HOOBS listening on port 80.
2020-08-17, 8:17:23 PM Loaded plugin "homebridge-camera-ffmpeg".
2020-08-17, 8:17:23 PM Loaded plugin "homebridge-chamberlain".
2020-08-17, 8:17:23 PM Loaded plugin "homebridge-tplink-smarthome".
2020-08-17, 8:17:24 PM Loaded plugin "homebridge-unifi-protect2".
2020-08-17, 8:17:24 PM [TplinkSmarthome] homebridge-tplink-smarthome v5.1.0, node v12.16.3, homebridge v3.2.6
2020-08-17, 8:17:24 PM [UniFi Protect] No host or IP address has been configured.

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 12, 2024

@aenglish86 I'm afraid I'm at the end of my ability to help you troubleshoot this on HOOBS. You might want to look at a regular homebridge install instead. Perhaps someone who is more familiar with HOOBS can provide some additional insight.

from homebridge-unifi-protect.

aenglish86 avatar aenglish86 commented on June 12, 2024

I appreciate the troubleshooting help that you tried. I ended up using camera ffmpeg and got it working that way

from homebridge-unifi-protect.

zellunit avatar zellunit commented on June 12, 2024

i have exactly the same problem. has worked for 4 months flawlessly with 8 cameras then as soon as the last version bumped this happened @hjdhjd

from homebridge-unifi-protect.

Altivec-Dan avatar Altivec-Dan commented on June 12, 2024

Have you tried replacing your username with email address? Unifi Protect login has been flaky for me if not using the full email address.

from homebridge-unifi-protect.

Tom-Enns avatar Tom-Enns commented on June 12, 2024

I realize this is an old thread but if anyone else on hoobs has a similar experience. If you follow the instructions for install for homebridge you'll end up with this error. Hoobs already puts most of the config together for you. the only thing you need to add to the config through the config editor for the Unifi Protect Plugin is this:

image

You'll notice the platform callouts, the controller callout etc are all missing, Hoobs adds those in the config afterwards and if you put them here you'll be entering them twice and thus no IP is found.

Not sure if this is the same issue but it solved it for me.

from homebridge-unifi-protect.

github-actions avatar github-actions commented on June 12, 2024

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.

from homebridge-unifi-protect.

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.