Can’t install/update/remove plugin’s after docker image update/pull
**Executive Summary of Problem:**
Can’t install/update/remove plugin’s after docker image update/pull

**Details of Problem:**
First a thank you followed by a question/confusion as I am SURE the problem has to be on MY side though I am beating my head against the wall here over what has got to be a simple problem (or two), so I am (somewhat embarrassedly) seeking higher powers with a different perspective here…. Any help would be greatly appreciated.

I have been running your Docker image for nearly a year on my QNAP with a number of plugins, all working fine during that time (with a _minor_ exception I have been living with as I haven’t had time to fix. I eventually NEED to get Docker somehow to staticly assign a given MAC address so it will always acquire the intended DHCP address), however that is NOT the reason for the issue I filed, and remains an effort I will pick up again in the future (tried setting up with NETWORK, and various other approaches that failed but I digress)... 

The STATED issue occurred after last night’s update from 30057a2810 to 1627d0da27 reported by my Ouroboros process. An update mechanism that has and continues to run flawlessly for at least 6 month (with the exception of the variable IP address mentioned above that I of course need to fix each time by reassigning the MAC address every time a new image is pulled). 

Unfortunately today after the expected MAC address fix/addition I find that I can't install/update/remove any plugins, and SUSPECT my startup script is no longer being executed at container launch.

I noticed a plugin was out of date and tried to updated via Homebridge-UI per previous. When I did I got a msg that the command failed:
```
USER: root
DIR: /homebridge
CMD: npm install --save homebridge-leviton@latest

execvp(3) failed.: No such file or directory

Command failed. Please review log for details.
```


I then tried restarting the container both though the HomeBridge UI and via Container station (as well as my Portainer set up). All methods that have always worked in the past and each time I getting the above NPM error. One note that I think is relevant, is that the restarts seems incredible fast compared to the past so I had a look at the logs of the start up.

It _seems_ like it the container isn't running the startup script so I revised the script per below adding an echo line to the script via the Home-Bridge UI. The line doesn’t seem to show in the log- further adding credibility to my assumption. I then shelled into the docker image and tried to MANUALLY execute npm. SEEMS npm is missing or not where expected (apologies for the extraneous file in the HomeBridge directory, also on my list to clean up).

```
/homebridge # ls -la                                                                                                                                                                             
total 1116                                                                                                                                                                                       
drwxrwx---+  8 abc  users   4096 Aug 26 11:48  .                                                                                                                                                 
drwxr-xr-x   1 root root    4096 Sep  2 10:21  ..                                                                                                                                                
-rwxrwxr--+  1 abc  users   6148 Sep  2 11:53  .DS_Store                                                                                                                                         
-rw-rw----+  1 abc  users     81 Mar 27 06:01  .docker.env                                                                                                                                       
-rw-rw----+  1 abc  users    697 Sep  2 12:52  .uix-dashboard.json                                                                                                                               
-rw-rw----+  1 abc  users     81 Mar 27 06:03  .uix-secrets                                                                                                                                      
drwxrwx---+  2 abc  users   4096 Aug 20 13:55  accessories                                                                                                                                       
drwxrwx---+  2 abc  users   4096 Mar 27 05:36 'accessories copy'                                                                                                                                 
-rwxrwx---+  1 abc  users    359 Sep 13  2019  auth.json                                                                                                                                         
-rwxrwx---+  1 abc  users   4553 Jan 22  2020 'config(withamp).json'                                                                                                                             
-rw-rw----+  1 abc  users   7058 Aug 20 13:55  config.json                                                                                                                                       
-rw-rw----+  1 abc  users   7242 Jul  5 00:37  config.json.1597955296799                                                                                                                         
-rw-rw----+  1 abc  users   7388 Aug 20 13:28  config.json.1597955478136                                                                                                                         
-rw-rw----+  1 abc  users   7242 Aug 20 13:31  config.json.1597956328957                                                                                                                         
-rw-rw----+  1 abc  users   7242 Aug 20 13:45  config.json.1597956835501                                                                                                                         
-rw-rw----+  1 abc  users   6912 Aug 20 13:53  config.json.1597956864545                                                                                                                         
-rw-rw----+  1 abc  users   6912 Aug 20 13:54  config.json.1597956914781                                                                                                                         
-rw-rw----+  1 abc  users 875628 Sep  2 13:02  homebridge.log                                                                                                                                    
drwxrwx---+  2 abc  users   4096 Mar 27 05:36  logs                                                                                                                                              
drwxrwx---+ 62 abc  users   4096 Sep  2 02:02  node_modules                                                                                                                                      
-rwxrwx---+  1 abc  users    508 Aug 26 11:43  package.json                                                                                                                                      
drwxrwx---+  2 abc  users   4096 Mar 27 05:36  persist                                                                                                                                           
drwxrwx---+  2 abc  users   4096 Mar 27 05:36 'persist copy'                                                                                                                                     
-rwxrwx---+  1 abc  users    573 Sep 11  2019 'startup (9:11:19, 12:37 PM).sh'                                                                                                                   
-rwxrwx---+  1 abc  users    767 Sep 11  2019 'startup (9:11:19, 2:31 PM).sh'                                                                                                                    
-rwxrwx--x+  1 abc  users   1069 Sep  2 12:30  startup.sh                                                                                                                                        
/homebridge # npm                                                                                                                                                                                
/bin/sh: npm: not found                                                                                                                                                                          
/homebridge # echo $PATH                                                                                                                                                                         
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin         
```                                                                                                                            



In case it’s relevant the accessories (controlled by the plugin I attempted to update) all moved back to default room in the HomeBridge-UI. I moved them back to where they belong and they (as well all other tested plugins/accessories) are functioning normally but I CAN NOT UPDATE/INSTALL or remove any plugin via the UI, and as I said suspect my Startup Script (that installs all my plugins), is not being updated.

**Image:** oznu/homebridge:latest@sha256:1627d0da2735e19db30ecef8b02752e81413951a8760c4c0bd6524fd538e2fb6
**System info** as follows:
```
Timezone | GMT-0700
OS | Alpine Linux (3.12.0)
Hostname | 2f425f1b297d
IPv4 (eth0) | 192.168.42.88
Node.js Version | v12.18.3
Npm Version | v6.14.6
User | root
Storage Path | /homebridge
Config Path | /homebridge/config.json
Plugin Path | /homebridge/node_modules
Docker | Yes
Service Mode | Yes
HomeBridge: Version 1.1.2
Homebridge Config UI X:  v4.27.1
```

Strangely this DOSEN'T seem to match your posted release notes for latest- https://github.com/oznu/docker-homebridge/releases/tag/3.1.0 
```
Node.js: v12.16.2
Homebridge: v1.0.2
Homebridge Config UI X: v4.16.0

```
Please let me know if you have any questions. While the matter is NOT urgent as plugins are functioning and APPEARS to be no data loss in config/persistent storage, I wanted to call attention to this as it could effect others and may be something that needs to be fixed in your image or perhaps something unusual about my set up that I can’t find.

Thanks again for any help and reading this LONG post! (I filled out the required sections below)
— Tom



**Logs:**
<-- Most recent restart -->

```
    Thank you for using the oznu/homebridge docker image!

  If you find this project useful please STAR it on GitHub:

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


[9/2/2020, 12:32:17 PM] [HB Supervisor] OS: Linux 4.14.24-qnap x64
[9/2/2020, 12:32:17 PM] [HB Supervisor] Node.js v12.18.3 /usr/local/bin/node
[9/2/2020, 12:32:17 PM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[9/2/2020, 12:32:17 PM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[9/2/2020, 12:32:17 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[9/2/2020, 12:32:17 PM] [HB Supervisor] Started Homebridge v1.1.2 with PID: 336
[9/2/2020, 12:32:17 PM] Loaded config.json with 4 accessories and 4 platforms.
[9/2/2020, 12:32:17 PM] ---
[9/2/2020, 12:32:18 PM] Loaded plugin: homebridge-directv@1.0.4
[9/2/2020, 12:32:18 PM] Plugin 'homebridge-directv' tried to register with an incorrect plugin identifier: 'homebridge-directv-location'. Please report this to the developer!
[9/2/2020, 12:32:18 PM] Registering accessory 'homebridge-directv.DirectvSTB'
[9/2/2020, 12:32:18 PM] Registering platform 'homebridge-directv.Directv'
[9/2/2020, 12:32:18 PM] ---
[9/2/2020, 12:32:18 PM] Loaded plugin: homebridge-dummy@0.4.1
[9/2/2020, 12:32:18 PM] Registering accessory 'homebridge-dummy.DummySwitch'
[9/2/2020, 12:32:18 PM] ---
[9/2/2020, 12:32:18 PM] Loaded plugin: homebridge-harmony@1.3.12
[9/2/2020, 12:32:18 PM] Registering platform 'homebridge-harmony.HarmonyHubWebSocket'
[9/2/2020, 12:32:18 PM] ---
[9/2/2020, 12:32:18 PM] Loaded plugin: homebridge-leviton@1.0.0
[9/2/2020, 12:32:18 PM] Registering platform 'homebridge-leviton.LevitonDecoraSmart'
[9/2/2020, 12:32:18 PM] ---
[9/2/2020, 12:32:18 PM] Loaded plugin: homebridge-onkyo@0.7.17
[9/2/2020, 12:32:18 PM] Registering platform 'homebridge-onkyo.Onkyo'
[9/2/2020, 12:32:18 PM] ---
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-qnap-qvrpro@0.0.7
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-qnap-qvrpro.Camera-QNAP-QVRPro'
[9/2/2020, 12:32:19 PM] ---
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-samsung-tizen@4.3.2
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-samsung-tizen.SamsungTizen'
[9/2/2020, 12:32:19 PM] ---
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-simple-shelly@0.0.2
[9/2/2020, 12:32:19 PM] Registering accessory 'homebridge-simple-shelly.SimpleShelly'
[9/2/2020, 12:32:19 PM] ---
/bin/sh: npm: not found
[9/2/2020, 12:32:19 PM] The plugin "homebridge-simple-shelly" defines 'homebridge' and/or 'hap-nodejs' in their 'dependencies' section, meaning they carry an additional copy of homebridge and hap-nodejs. This not only wastes disk space, but also can cause major incompatibility issues and thus is considered bad practice. Please inform the developer to update their plugin!
/bin/sh: npm: not found
[9/2/2020, 12:32:20 PM] [Config] Homebridge Config UI X v4.27.1 is listening on 0.0.0.0 port 8080
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-smartthings-tonesto7@1.5.16
Homebridge Version: 2.6
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-smartthings-tonesto7.SmartThings'
[9/2/2020, 12:32:19 PM] ---
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-zp@1.0.39
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-zp.Lib'
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-zp.ZP'
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-zp.ZPS1'
[9/2/2020, 12:32:19 PM] ---
[9/2/2020, 12:32:19 PM] Loaded plugin: homebridge-config-ui-x@4.27.1
[9/2/2020, 12:32:19 PM] Registering platform 'homebridge-config-ui-x.config'
[9/2/2020, 12:32:19 PM] ---
[9/2/2020, 12:32:19 PM] Loading 4 platforms...
[9/2/2020, 12:32:19 PM] [Onkyo] Initializing Onkyo platform...
[9/2/2020, 12:32:19 PM] [Onkyo] **************************************************************
[9/2/2020, 12:32:19 PM] [Onkyo]   homebridge-onkyo version 0.7.17
[9/2/2020, 12:32:19 PM] [Onkyo]   GitHub: https://github.com/ToddGreenfield/homebridge-onkyo 
[9/2/2020, 12:32:19 PM] [Onkyo] **************************************************************
[9/2/2020, 12:32:19 PM] [Onkyo] start success...
[9/2/2020, 12:32:19 PM] [Onkyo] **************************************************************
[9/2/2020, 12:32:19 PM] [Onkyo]   homebridge-onkyo version 0.7.17
[9/2/2020, 12:32:19 PM] [Onkyo]   GitHub: https://github.com/ToddGreenfield/homebridge-onkyo 
[9/2/2020, 12:32:19 PM] [Onkyo] **************************************************************
[9/2/2020, 12:32:19 PM] [Onkyo] start success...
[9/2/2020, 12:32:20 PM] Initializing platform accessory 'Onkyo TX-NR636 AVR'...
[9/2/2020, 12:32:20 PM] Initializing platform accessory 'Onkyo zone 2'...
[9/2/2020, 12:32:20 PM] [SamsungTizen] Initializing SamsungTizen platform...
[9/2/2020, 12:32:20 PM] [Config] Initializing config platform...
[9/2/2020, 12:32:20 PM] [Config] Running in Service Mode
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] Initializing LevitonDecoraSmart platform...
[9/2/2020, 12:32:20 PM] Loading 4 accessories...
[9/2/2020, 12:32:20 PM] [Bedroom sconse right] Initializing SimpleShelly accessory...
[9/2/2020, 12:32:20 PM] [Bedroom sconse left] Initializing SimpleShelly accessory...
[9/2/2020, 12:32:20 PM] [Basement] Initializing SimpleShelly accessory...
[9/2/2020, 12:32:20 PM] [Garage] Initializing SimpleShelly accessory...
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] configureAccessory Dinning Flood
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] setupService Dinning Flood
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] getStatus Dinning Flood
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] configureAccessory Backyard
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] setupService Backyard
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] getStatus Backyard
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] configureAccessory Driveway
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] setupService Driveway
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] getStatus Driveway
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] didFinishLaunching
[9/2/2020, 12:32:20 PM] [LevitonDecoraSmart] initialize
Setup Payload:
X-HM://0023ISYWY24EA
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ XXX-XX-XXX │     
    └────────────┘     
                       
[9/2/2020, 12:32:20 PM] Homebridge is running on port 51598.
[9/2/2020, 12:32:20 PM] Bedroom TV is running on port 36681.
[9/2/2020, 12:32:20 PM] Please add [Bedroom TV] manually in Home app. Setup Code: 031-45-154
(node:336) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (server_error) Server error on 192.168.42.86:60128 - Error: connect EALREADY 192.168.42.86:60128 - Local (192.168.42.88:51884)
    at internalConnect (net.js:923:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:351:12)
    at net.js:1011:9
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  errno: 'EALREADY',
  code: 'EALREADY',
  syscall: 'connect',
  address: '192.168.42.86',
  port: 60128
}
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (server_error) Server error on 192.168.42.86:60128 - Error: connect EALREADY 192.168.42.86:60128 - Local (192.168.42.88:51884)
    at internalConnect (net.js:923:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:351:12)
    at net.js:1011:9
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  errno: 'EALREADY',
  code: 'EALREADY',
  syscall: 'connect',
  address: '192.168.42.86',
  port: 60128
}
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "PWRQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "PWRQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "SLIQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "SLIQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] getInputState - INPUT QRY: ERROR - current i_state: 1
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "AMTQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "AMTQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "MVLQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "MVLQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZPWQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZPWQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "SLZQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "SLZQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] getInputState - INPUT QRY: ERROR - current i_state: 1
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZMTQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZMTQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZVLQSTN"
[9/2/2020, 12:32:20 PM] [Onkyo] eventError: ERROR (send_not_connected) Not connected, can't send data: "ZVLQSTN"
[9/2/2020, 1:02:16 PM] [Config] Running Command: npm install --save homebridge-leviton@latest
[9/2/2020, 1:02:16 PM] [Config] Command failed. Please review log for details.
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower Dinning Flood
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness Dinning Flood
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower Backyard
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness Backyard
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower Driveway
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness Driveway
[9/2/2020, 1:18:14 PM] [Onkyo] Event - Input changed: video2
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetBrightness callback 43
[9/2/2020, 1:18:14 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:14 PM] [Onkyo] Event - Input changed: source
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower Dinning Flood
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness Dinning Flood
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower Backyard
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness Backyard
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower Driveway
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness Driveway
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness callback 43
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:17 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:18:27 PM] [Basement] Setting Shelly { on: true }
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower Dinning Flood
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness Dinning Flood
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower Backyard
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness Backyard
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower Driveway
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness Driveway
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness callback 43
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:18:29 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:19:00 PM] [LevitonDecoraSmart] onGetPower Driveway
[9/2/2020, 1:19:00 PM] [LevitonDecoraSmart] onGetPower Backyard
[9/2/2020, 1:19:00 PM] [LevitonDecoraSmart] onGetPower Dinning Flood
[9/2/2020, 1:19:00 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:19:00 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetPower callback OFF
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness Backyard
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness Driveway
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness Dinning Flood
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness callback 43
[9/2/2020, 1:19:01 PM] [LevitonDecoraSmart] onGetBrightness callback 100
[9/2/2020, 1:19:24 PM] [Basement] Setting Shelly { on: false }
HAP Warning: Characteristic 0000011A-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000D8-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 00000119-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000D8-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 00000119-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000D8-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 0000011A-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000D8-0000-1000-8000-0026BB765291. Adding anyway.
```


**Homebridge Config:**

```
{
    "bridge": {
        "name": "Homebridge",
        "username": "XXXXX,
        "port": 51598,
        "pin": "XXXXX
    },
    "accessories": [
        {
            "accessory": "SimpleShelly",
            "name": "Bedroom sconse right",
            "url": "http://shelly1-6892d8.",
            "channel": 0
        },
        {
            "accessory": "SimpleShelly",
            "name": "Bedroom sconse left",
            "url": "http://shellyswitch25-ba74c2.",
            "channel": 0
        },
        {
            "accessory": "SimpleShelly",
            "name": "Basement",
            "url": "http://shelly1-68c4bf.",
            "channel": 0
        },
        {
            "accessory": "SimpleShelly",
            "name": "Garage",
            "url": "http://shelly1-B9d2d2",
            "channel": 0
        }
    ],
    "platforms": [
        {
            "name": "Onkyo",
            "receivers": [
                {
                    "name": "Onkyo TX-NR636 AVR",
                    "model": "TX-NR636",
                    "ip_address": "192.168.42.11",
                    "zone": "main",
                    "default_volume": "10",
                    "max_volume": "55",
                    "poll_status_interval": "3000",
                    "map_volume_100": true,
                    "volume_dimmer": true,
                    "switch_service": false,
                    "filter_inputs": true,
                    "inputs": [
                        {
                            "input_name": "cd",
                            "display_name": "Amazon"
                        },
                        {
                            "input_name": "fm",
                            "display_name": "fm"
                        },
                        {
                            "input_name": "net",
                            "display_name": "net"
                        },
                        {
                            "input_name": "video1",
                            "display_name": "DirectTV"
                        },
                        {
                            "input_name": "video2",
                            "display_name": "AppleTV"
                        },
                        {
                            "input_name": "video3",
                            "display_name": "Games"
                        },
                        {
                            "input_name": "video4",
                            "display_name": "Aux"
                        },
                        {
                            "input_name": "video6",
                            "display_name": "MacMini"
                        }
                    ]
                },
                {
                    "name": "Onkyo zone 2",
                    "model": "TX-NR636",
                    "ip_address": "192.168.42.86",
                    "default_input": "net",
                    "zone": "zone2",
                    "default_volume": "10",
                    "max_volume": "55",
                    "poll_status_interval": "3000",
                    "map_volume_100": true,
                    "volume_dimmer": false,
                    "switch_service": false,
                    "filter_inputs": true,
                    "inputs": [
                        {
                            "input_name": "cd",
                            "display_name": "Amazon"
                        },
                        {
                            "input_name": "fm",
                            "display_name": "fm"
                        },
                        {
                            "input_name": "net",
                            "display_name": "net"
                        },
                        {
                            "input_name": "video1",
                            "display_name": "DirectTV"
                        },
                        {
                            "input_name": "video2",
                            "display_name": "AppleTV"
                        },
                        {
                            "input_name": "video3",
                            "display_name": "Games"
                        },
                        {
                            "input_name": "video4",
                            "display_name": "Aux"
                        },
                        {
                            "input_name": "video6",
                            "display_name": "MacMini"
                        }
                    ]
                }
            ],
            "platform": "Onkyo"
        },
        {
            "platform": "SamsungTizen",
            "devices": [
                {
                    "name": "Bedroom TV",
                    "ip": "192.168.42.11",
                    "mac": "CC:B1:1A:CF:E8:D9",
                    "keys": {
                        "REWIND": "KEY_REWIND",
                        "FAST_FORWARD": "KEY_FF",
                        "BACK": "KEY_RETURN",
                        "EXIT": "KEY_HOME"
                    },
                    "inputs": [
                        {
                            "name": "DirectTV",
                            "type": "command",
                            "value": [
                                "KEY_SOURCE",
                                "KEY_LEFT*13",
                                "KEY_RIGHT*3",
                                "KEY_ENTER"
                            ]
                        },
                        {
                            "name": "Netflix",
                            "type": "app",
                            "value": "11101200001"
                        },
                        {
                            "name": "Plex",
                            "type": "app",
                            "value": "3201512006963"
                        },
                        {
                            "name": "MLB",
                            "type": "app",
                            "value": "3201603008210"
                        },
                        {
                            "name": "YouTube",
                            "type": "app",
                            "value": "111299001912"
                        },
                        {
                            "name": "Amazon",
                            "type": "app",
                            "value": "3201512006785"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "deep-purple",
            "tempUnits": "f",
            "accessoryControl": {
                "debug": false
            },
            "platform": "config"
        },
        {
            "email": "XXXX@me.com",
            "password": "XXXX",
            "platform": "LevitonDecoraSmart"
        }
    ]
}
```


**Startup Script:**
```
#!/bin/sh

#
# Docker Homebridge Custom Startup Script - oznu/homebridge
#
# This script can be used to customise the environment and will be executed as
# the root user each time the container starts.
#
# If using this to install plugins DO NOT use the global flag (-g).
#
# Example installing homebridge plugin:
#
# npm install homebridge-hue
#
# Example installing packages using default image (Alpine Linux):
#
# apk add --no-cache ffmpeg ffmpeg-libs libpcap-dev
#
# If you're running a debian based version of this container please use apt-get to install packages.
#

echo "Executing Tom's Startup Script"
#printf "Executing Tom's Startup Script\n"
# npm -g i npm@latest
npm install homebridge-harmony@latest
npm install homebridge-simple-shelly@latest
npm install homebridge-smartthings-tonesto7@latest
npm install homebridge-qnap-qvrpro@latest
npm install homebridge-samsung-tizen@latest
npm install homebridge-zp@latest
npm install homebridge-onkyo@latest
# npm install https://github.com/solowalker27/homebridge-onkyo.git
npm install homebridge-directv@latest

```

**Environment:**

* **Host Operating System**: QNAP-X86
* **Docker Version**: sha256:1627d0da2735e19db30ecef8b02752e81413951a8760c4c0bd6524fd538e2fb6
* **Image Tag / Type**: latest
