pradeepmouli / homebridge-isy-js

Homebridge platform plugin for the ISY series of home controllers from Universal Devices.
MIT License
28 stars 9 forks source link

Unraid Docker error #9

Closed dwightstanley closed 2 years ago

dwightstanley commented 4 years ago

Using this Unraid Docker: SiwatINC/unraid-ca-repository https://github.com/SiwatINC/unraid-ca-repository

Works fine with rodtoll/homebridge-isy-js

Throws this error with plugin as follows:

Is this due to the container not being on the beta? This docker installs as Version 0.4.53 - after it is running it updates to 1.03 but i can't get it to start to update To use this docker the plugins are indicated on the docker pull.

apnar commented 4 years ago

Have you tried the "official" docker container for homebridge here:

https://github.com/oznu/docker-homebridge

apnar commented 4 years ago

Looks like the SiwatINC images install homebridge globally with "npm -g" while the official repo above installs them in /usr/local/lib. Pradeep just pushed a fix yesterday for issue number 7 (paths in official docker container) that may have broken the paths in some other containers.

I'd definitely suggest trying the official image I linked to above. It adds the GUI in and has some nice management features around it.

dwightstanley commented 4 years ago

Thanks - I will try that docker.

pradeepmouli commented 4 years ago

try the latest update - homebridge-isy imports homebridge & hap-nodesjs as modules. I've added a post install script that tries to find the installation path of homebridge and hap-nodes, wherever it is, and updates the source files.

dwightstanley commented 4 years ago

Cannot install using this Unraid Docker: SiwatINC/unraid-ca-repository https://github.com/SiwatINC/unraid-ca-repository Just too many errors. Will try using a different docker (I like HOOBS)

dwightstanley commented 4 years ago

config.json.txt

Trying to use oznu/homebridge docker with this plugin - getting a whole bunch of different errors now - no devices showing under Accessories for this plugin Homebridge-isy-oznu.log.txt

pradeepmouli commented 4 years ago

Looks like the issue here is that Guest Bedroom Light Switch (53 D5 A1 1) has blank notes (no location or spoken name) and is not in a folder. I’ll work on handling this better, but if you update your config to have a deviceNameRules entry as below:

"deviceNameRules": { "format":"${location ?? folder ?? ' '} ${spokenName ?? name}" },

this should fix the issue.

On May 1, 2020, at 4:09 PM, Dwight Stanley notifications@github.com wrote:

Trying to use oznu/homebridge docker with this plugin - getting a whole bunch of different errors now - no devices showing under Accessories for this plugin Homebridge-isy-oznu.log.txt https://github.com/pradeepmouli/homebridge-isy-js/files/4566118/Homebridge-isy-oznu.log.txt — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pradeepmouli/homebridge-isy-js/issues/9#issuecomment-622545188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5XAFOPUVUVJGFGE7WQZP3RPMT7HANCNFSM4MUBIVCQ.

dwightstanley commented 4 years ago

I added a spoken name to that device - also added your code to config. It throws errors still but completes. The names are not working properly at all. using the Rodtoll plugin and looking at the device properties has much useful information. This plugin seems to be different and data is different. Anything you can do to help sort this out for me? config.json.txt

Homebridge-isy-oznu.log.txt Screenshot Rodtoll Screenshot Pradeepmouli

dwightstanley commented 4 years ago

Also want to mention that I have a scene with one switch. Clicking the scene button illuminates the switch but not the scene. The scene remains dark and does not toggle the switch off - only on.

dwightstanley commented 4 years ago

Using this Unraid Docker: SiwatINC/unraid-ca-repository https://github.com/SiwatINC/unraid-ca-repository

Works fine with rodtoll/homebridge-isy-js

The missing plugin.js is located in this docker at: ./usr/lib/node_modules/homebridge/lib/plugin.js

dwightstanley commented 4 years ago

Ok - I tried your plugin on Unraid using the Homebridge-oznu container. As soon as I restart with your plugin it throws errors and Homebridge crashes. Attached are the files for you to look at.

config.json.txt ISYNodesDump.json.txt package.json.txt

Hope this helps

dwightstanley commented 2 years ago

Abandoned this plugin for the ‘old’ Rodtoll until it becomes necessary to change that one