Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find Homebridge installation #280

Closed
asm09fsu opened this issue May 5, 2019 · 7 comments
Closed

Unable to find Homebridge installation #280

asm09fsu opened this issue May 5, 2019 · 7 comments

Comments

@asm09fsu
Copy link

asm09fsu commented May 5, 2019

For some reason, homebridge-config-ui-x fails to get the current version of Homebridge, although can successfully display the QR and the port number of it.

screenshot:
Screen Shot 2019-05-04 at 8 13 20 PM

logs:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐
    │ 087-45-154 │
    └────────────┘
                       
[2019-5-4 20:24:37] Homebridge is running on port 51826.
[2019-5-4 20:24:38] [Bedroom Fan] (MQTT) Offline
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Reconnect
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Connected to xxx.xxx.xxx.xxx
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Received message from topic: 475/NM7-US-KJA0233A/status/current
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Message is: {"msg":"CURRENT-STATE","time":"2019-05-05T03:24:39.000Z","mode-reason":"LAPP","state-reason":"MODE","dial":"OFF","rssi":"-59","product-state":{"fmod":"OFF","fnst":"OFF","fnsp":"0005","qtar":"0004","oson":"OFF","rhtm":"ON","filf":"3311","ercd":"02C9","nmod":"OFF","wacd":"NONE"},"scheduler":{"srsc":"2eb2","dstv":"0001","tzid":"0001"}}
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Got fan state. Power: off. Nightmode: true. Speed: 50% / 5. Swing: off. Auto: off
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Received message from topic: 475/NM7-US-KJA0233A/status/current
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Message is: {"msg":"ENVIRONMENTAL-CURRENT-SENSOR-DATA","time":"2019-05-05T03:24:39.001Z","data":{"tact":"2964","hact":"0047","pact":"0003","vact":"0002","sltm":"OFF"}}
[2019-5-4 20:24:39] [Bedroom Fan] (MQTT) Received sensor data. Temperature: xxx. Humidity: 47
[2019-5-4 20:24:40] [TV] webOS - Error: connect EHOSTUNREACH xxx.xxx.xxx.xxx:xxxx
[2019-5-4 20:25:07] [homebridge-config-ui-x] Console v4.2.0 is listening on :: port 8080
[2019-5-4 20:25:38] [homebridge-config-ui-x] Unable To Find Homebridge Installation
      pi : TTY=pts/1 ; PWD=/home/pi/.homebridge ; USER=root ; COMMAND=/bin/journalctl -o cat -n 500 -f -u homebridge
pam_unix(sudo:session): session opened for user root by (uid=0)

config snippet:

{
    "bridge": {
        "name": "Homebridge",
        "username": "xx:xx:xx:xx:xx:xx",
        "port": 51826,
        "pin": "087-45-154"
    },
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "blue",
            "restart": "sudo systemctl restart homebridge",
            "tempUnits": "f",
            "sudo": true,
            "log": {
                "method": "systemd",
                "service": "homebridge"
            },
            "platform": "config"
        }
    ]
}
@oznu
Copy link
Member

oznu commented May 5, 2019

Where have you installed homebridge?

@asm09fsu
Copy link
Author

asm09fsu commented May 5, 2019

Homebridge is installed at /home/pi/.homebridge.

I've been using homebridge-config-ui-x for about a year, yet I think I updated it about a week ago and since then it has been malfunctioning. I've tried reverted back all the way to 4.0.6 yet no improvements.

@oznu
Copy link
Member

oznu commented May 5, 2019

Is that your config location or where the actual package has been installed to? In a standard setup this would just be for config.

If it's actually where the package has been installed to you can, as of 4.3.0, set the homebridgePackagePath option which will direct the UI where to look when checking for updates.

https://github.com/oznu/homebridge-config-ui-x/wiki/Config-Options#homebridgepackagepath

@asm09fsu
Copy link
Author

asm09fsu commented May 5, 2019

Apologies, you are correct. It's installed in /opt/node/lib/node_modules

@asm09fsu
Copy link
Author

asm09fsu commented May 5, 2019

I tried setting the homebridgePackagePath to both /opt/node/lib/node_modules/homebridge/bin/homebridge (just the result from which homebridge) and /opt/node/lib/node_modules in 4.3.0 but to no success.

May 05 00:52:12 homebridge homebridge[3440]: [2019-5-5 00:52:12] [homebridge-config-ui-x] Console v4.3.0 is listening on :: port 8080
May 05 00:52:32 homebridge homebridge[3440]: [2019-5-5 00:52:32] [homebridge-config-ui-x] "homebridgePath" (/opt/node/lib/node_modules/homebridge/bin/homebridge) does not exist
May 05 00:52:32 homebridge homebridge[3440]: [2019-5-5 00:52:32] [homebridge-config-ui-x] Unable To Find Homebridge Installation

@oznu
Copy link
Member

oznu commented May 5, 2019

You'll want to set it to /opt/node/lib/node_modules/homebridge.

The UI is trying to find the homebridge package.json file, so this file needs to exist:

/opt/node/lib/node_modules/homebridge/package.json

@asm09fsu
Copy link
Author

asm09fsu commented May 5, 2019

This worked beautifully, thanks for adding it as a feature. I’ll close this issue, but would you mind updating the documentation to specify to use the location where homebridge’s package.json exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants