hello everyone, I have a problem … I can not install a homebridge plugin on hassio to show a soundtouch at homebridge. I should install it with a npm command but I do not understand how to do it since ssh does not let me install anything. thanks and sorry but I’m not an expert on this and I’m trying to make do
Hassio’s ssh is only for using their CLI. If you want to install homebridge, instead of using npm, install this addon: Community Hass.io Add-on: Homebridge.
thanks for the reply, I had already installed homebridge from the repository … my problem is that I have to install a plugin for a device and I have to install it using the npm command but I do not know how to do it
Same here…
I need to install Broadlink from here: https://www.npmjs.com/package/homebridge-broadlink-rm
And I need to run npm install -g homebridge-broadlink-rm - any idea how do i do that?
Read the home bridge addon docs. There is an option in there thAt allows you to install additional plugins…
So there is no need to execute the npm command, the addon does that for you…
I have found nothing related to this issue, @frenck - can you help me or point me to one?
I get this:
/usr/lib/node_modules/homebridge/lib/api.js:122
throw new Error(“The requested platform '” + name + “’ was not registered by any plugin.”);
^
Error: The requested platform ‘BroadlinkRM’ was not registered by any plugin.
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:294:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:635:30)
at Object.Module._extensions…js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
Hello Frenck, this is what I added to the config file on hassio:
{
“log_level”: “info”,
“avahi_interfaces”: “”,
“avahi_hostname”: “”,
“avahi_domainname”: “local”,
“enable_ipv6”: true,
“packages”: ,
“init_commands”: ,
“plugins”: [
“homebridge-soundtouch”
]
}
and this is what I get out of the log refresh:
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] 10-homebridge: applying…
[fix-attrs.d] 10-homebridge: exited 0.
[fix-attrs.d] 20-dbus: applying…
[fix-attrs.d] 20-dbus: exited 0.
[fix-attrs.d] 30-avahi: applying…
[fix-attrs.d] 30-avahi: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 00-banner.sh: executing…
Hass.io Add-on: Homebridge v2.3.0
HomeKit support for your Home Assistant instance using Homebridge
From: Community Hass.io Add-ons
By: Franck Nijhof [email protected]
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing…
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 03-version-requirements.sh: executing…
INFO: Supervisor version requirements checks passed.
[cont-init.d] 03-version-requirements.sh: exited 0.
[cont-init.d] 20-dbus.sh: executing…
[cont-init.d] 20-dbus.sh: exited 0.
[cont-init.d] 30-avahi.sh: executing…
[cont-init.d] 30-avahi.sh: exited 0.
[cont-init.d] 50-config.sh: executing…
[cont-init.d] 50-config.sh: exited 0.
[cont-init.d] 60-ipv6-hotfix.sh: executing…
[cont-init.d] 60-ipv6-hotfix.sh: exited 0.
[cont-init.d] 80-user-packages.sh: executing…
[cont-init.d] 80-user-packages.sh: exited 0.
[cont-init.d] 81-user-scripts.sh: executing…
[cont-init.d] 81-user-scripts.sh: exited 0.
[cont-init.d] 82-user-plugins.sh: executing…
[email protected] install /usr/lib/node_modules/homebridge-soundtouch/node_modules/mdns
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19)
gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:397:16)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.50
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/homebridge-soundtouch/node_modules/mdns
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Thanks @jolly. I actually find this one few hours ago, the trick was:
“plugins”: [
“homebridge-broadlink-rm”
]
Now iOS recognize it and send commands, but the light is not impacted.
Now I need to understand what is wrong, since I see in the logs the command is sent towards the broadlink, but the light is not turning on and off.
Hass.io hides a lot from me, so I am not sure where to look. How exactly did it know my broadlink address is not clear to me.
Also, not sure what are the right format of hex codes, I copy pasted from the HA configuration.yaml which works well, but the homebridge does not seem to work. That’s my working HA configuraiton.yaml:
switch:
- platform: broadlink
host: RMPROPLUS-x-xx-xx
mac: ':::
friendly_name: ‘Living room’
timeout: 15
switches:
light:
friendly_name: “Hall Light”
command_on: ‘6Qo0ACULDSINIiQLDSIlCw0iDSIkCw0iDSINIiULJAwkDCQMDCMkDAwjDCMNIyMMDCMNIg0AAWIAAAAA’
command_off: ‘6Qo0ACULDSINIiQLDSIlCw0iDSIkCw0iDSINIiULJAwkDCQMDCMkDAwjDCMNIyMMDCMNIg0AAWIAAAAA’
And that’s my config.yaml:
“platform”:“BroadlinkRM”,
“name”:“Broadlink RM”,
“accessories”:[
{
“name”:“TV On/Off”,
“type”:“switch”,
“data”:{
“on”:“6Qo0ACULDSINIiQLDSIlCw0iDSIkCw0iDSINIiULJAwkDCQMDCMkDAwjDCMNIyMMDCMNIg0AAWIAAAAA”,
“off”:“6Qo0ACULDSINIiQLDSIlCw0iDSIkCw0iDSINIiULJAwkDCQMDCMkDAwjDCMNIyMMDCMNIg0AAWIAAAAA”
}
}
Any idea?
I have same issue, some plugins worked (ex: Raspberry Pi CPU temp)
Does anyone know how to add plugins to the HassIO inbuilt homebridge plugin? As this addon is deprecated I would like to know if you can do this with the inbuilt version. Thanks