Homebridge server

Is homebridge possible on OSMC? I’ve seen instructions for LibreElec using docker.

https://discourse.osmc.tv/search?q=homebridge

It seems that you can install it in Docker or as a Debian package. However, you’ll need a Raspberry Pi for anything that needs the GPIO pins.

1 Like

No I don’t need GPIO control, just looking to connect my nest thermostat to HomeKit. I do have a Pi in a draw doing nothing, if I can’t get it working on the vero, I’ll have to dig it out.

Hi,

i tried to install homebridge on the vero4k ( using this link [Install Homebridge on Debian or Ubuntu Linux · homebridge/homebridge Wiki · GitHub])

but im getting the error message when i install it:

osmc@osmc:~$ node -v

v14.17.0

osmc@osmc:~$ sudo npm install -g --unsafe-perm homebridge homebridge-config-ui-x

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)

npm WARN deprecated class-transformer@0.3.2: This release contains a breaking change from 0.3.1 but otherwise functions properly. Please read the changelog on Github to learn more.

added 458 packages, and audited 459 packages in 2m

64 packages are looking for funding

run npm fund for details

10 vulnerabilities (3 moderate, 6 high, 1 critical)

To address all issues, run:

npm audit fix

Run npm audit for details.

osmc@osmc:~$

osmc@osmc:~$ sudo npm audit fix

npm ERR! code ENOLOCK

npm ERR! audit This command requires an existing lockfile.

npm ERR! audit Try creating one first with: npm i --package-lock-only

npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2021-06-17T17_25_10_227Z-debug.log

osmc@osmc:~$ cat /root/.npm/_logs/2021-06-17T17_25_10_227Z-debug.log

cat: /root/.npm/_logs/2021-06-17T17_25_10_227Z-debug.log: Permission denied

osmc@osmc:~$ sudo cat /root/.npm/_logs/2021-06-17T17_25_10_227Z-debug.log

0 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘audit’, ‘fix’ ]

1 info using npm@7.17.0

2 info using node@v14.17.0

3 timing npm:load:whichnode Completed in 8ms

4 timing config:load:defaults Completed in 12ms

5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 10ms

6 timing config:load:builtin Completed in 11ms

7 timing config:load:cli Completed in 10ms

8 timing config:load:env Completed in 1ms

9 timing config:load:file:/home/osmc/.npmrc Completed in 2ms

10 timing config:load:project Completed in 8ms

11 timing config:load:file:/root/.npmrc Completed in 1ms

12 timing config:load:user Completed in 2ms

13 timing config:load:file:/usr/local/etc/npmrc Completed in 1ms

14 timing config:load:global Completed in 2ms

15 timing config:load:validate Completed in 1ms

16 timing config:load:credentials Completed in 9ms

17 timing config:load:setEnvs Completed in 7ms

18 timing config:load Completed in 65ms

19 timing npm:load:configload Completed in 66ms

20 timing npm:load:setTitle Completed in 1ms

21 timing npm:load:setupLog Completed in 15ms

22 timing npm:load:cleanupLog Completed in 17ms

23 timing npm:load:configScope Completed in 0ms

24 timing npm:load:projectScope Completed in 1ms

25 timing npm:load Completed in 114ms

26 timing config:load:flatten Completed in 22ms

27 timing arborist:ctor Completed in 5ms

28 timing command:audit Completed in 40ms

29 verbose stack Error: loadVirtual requires existing shrinkwrap file

29 verbose stack at Arborist.loadVirtual (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:57:18)

29 verbose stack at async Arborist.audit (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/audit.js:24:18)

29 verbose stack at async Audit.audit (/usr/local/lib/node_modules/npm/lib/audit.js:66:5)

30 verbose cwd /home/osmc

31 verbose Linux 3.14.29-160-osmc

32 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “audit” “fix”

33 verbose node v14.17.0

34 verbose npm v7.17.0

35 error code ENOLOCK

36 error audit This command requires an existing lockfile.

37 error audit Try creating one first with: npm i --package-lock-only

38 error audit Original error: loadVirtual requires existing shrinkwrap file

39 verbose exit 1

osmc@osmc:~$ sudo hb-service install --user homebridge

:information_source: Installing Homebridge Service

:warning: WARNING: HOMEBRIDGE CONFIG UI PORT IN /var/lib/homebridge/config.json CHANGED TO 8581

:information_source: Starting Homebridge Service…

:heavy_check_mark: Homebridge Started

Manage Homebridge by going to one of the following in your browser:

Default Username: admin

Default Password: admin

:heavy_check_mark: Homebridge Setup Complete

im not sure if its due to the error message but i cant load the gui in the webbrowser. Any help is appricated. even if its it cannot be installed with vero4k :slight_smile:
Cheers,
Fred

I’m afraid that debugging Homebridge problems is outside the scope of this fourum. You would have a better chance at the Homebridge site.

Hi again,

i actually manage to resolve it myself looking up further on internet. So i followed everything installing the debian version. Then i comment away the two line items as per this link:
https://github.com/oznu/homebridge-config-ui-x/issues/637

and it all worked! just wanted to share this for anyone else that thinking to use their Vero4k for Homebridge

Is there any chance fir an idiots guide for setting this up on a Vero 4K? Thanks!

1 Like