nfarina / homebridge-dummy

Dummy switches for Homebridge: https://github.com/nfarina/homebridge
278 stars 83 forks source link

Switches "not responding" after reboot until homebridge is manually restarted #28

Open tannebil opened 4 years ago

tannebil commented 4 years ago

Pre Steps

Homebridge installed on Catalina VM following the standard install instructions

Expected Behavior

When machine boots with auto login enabled, Homebridge will automatically start, dummy plug-in will load, and switches will become active in Hone

Current Behavior

Homebridge starts but switches show as “Not Responding” until Homebridge is restarted either through the web gui or with the “sudo hb-service restart” command

Steps to Reproduce (for bugs)

Boot machine Check accessories in Home app and see “Not Responding” open terminal and run “sudo hb-service restart” Check accessories in Home app and see they are working normally

Versions

{ "bridge": { "name": "Homebridge A6FE", "username": “xx:xx:xx:xx:xx:xx”, "port": 51764, "pin": “xxx-xx-xxx" }, "accessories": [ { "name": "Bill Occupancy 1", "stateful": true, "reverse": false, "time": 1000, "accessory": "DummySwitch" }, { "name": "Chris Occupancy 1", "stateful": true, "reverse": false, "time": 1000, "accessory": "DummySwitch" }, { "name": "Joint Occupancy 1", "stateful": true, "reverse": false, "time": 1000, "accessory": "DummySwitch" }, { "name": "Laundry Room Kittens", "stateful": true, "reverse": false, "time": 600000, "accessory": "DummySwitch" }, { "name": "Patio Motion Timer", "stateful": false, "reverse": false, "time": 360000, "accessory": "DummySwitch" }, { "name": "Garage Door Open Timer", "stateful": true, "reverse": false, "time": 1000, "accessory": "DummySwitch" }, { "name": "Garage Door Left Open Timer", "stateful": true, "reverse": false, "time": 1000, "accessory": "DummySwitch" } ], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" } ] }

*** com.homebridge.server.plist **

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

RunAtLoad KeepAlive Label com.homebridge.server ProgramArguments /usr/local/bin/node /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js run -I -U /Users//.homebridge WorkingDirectory /Users//.homebridge StandardOutPath /Users//.homebridge/homebridge.log StandardErrorPath /Users//.homebridge/homebridge.log UserName EnvironmentVariables PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin HOME /Users/ UIX_STORAGE_PATH /Users//.homebridge

Homebridge Log / Command Output

* restart machine *** [6/6/2020, 1:59:58 AM] [HB Supervisor] Homebridge Storage Path: /Users//.homebridge [6/6/2020, 1:59:58 AM] [HB Supervisor] Homebridge Config Path: /Users//.homebridge/config.json [6/6/2020, 1:59:58 AM] [HB Supervisor] Logging to /Users//.homebridge/homebridge.log [6/6/2020, 1:59:58 AM] [HB Supervisor] OS: Darwin 19.5.0 x64 [6/6/2020, 1:59:58 AM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge [6/6/2020, 1:59:58 AM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js [6/6/2020, 1:59:58 AM] [HB Supervisor] Starting Homebridge with extra flags: -I [6/6/2020, 1:59:58 AM] [HB Supervisor] Started Homebridge v1.1.0 with PID: 259 [6/6/2020, 1:59:58 AM] Loaded config.json with 7 accessories and 1 platforms. [6/6/2020, 1:59:58 AM] --- [6/6/2020, 1:59:59 AM] Loaded plugin: homebridge-config-ui-x@4.21.0 [6/6/2020, 1:59:59 AM] Registering platform 'homebridge-config-ui-x.config' [6/6/2020, 1:59:59 AM] --- [6/6/2020, 1:59:59 AM] Loaded plugin: homebridge-dummy@0.4.1 [6/6/2020, 1:59:59 AM] Registering accessory 'homebridge-dummy.DummySwitch' [6/6/2020, 1:59:59 AM] --- [6/6/2020, 1:59:59 AM] Loading 1 platforms... [6/6/2020, 1:59:59 AM] [Config] Initializing config platform... [6/6/2020, 1:59:59 AM] [Config] Running in Service Mode [6/6/2020, 1:59:59 AM] Loading 7 accessories... [6/6/2020, 1:59:59 AM] [Bill Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Bill Occupancy 1] Setting switch to true [6/6/2020, 1:59:59 AM] [Chris Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Chris Occupancy 1] Setting switch to true [6/6/2020, 1:59:59 AM] [Joint Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Joint Occupancy 1] Setting switch to true [6/6/2020, 1:59:59 AM] [Laundry Room Kittens] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Laundry Room Kittens] Setting switch to true [6/6/2020, 1:59:59 AM] [Patio Motion Timer] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Garage Door Open Timer] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Garage Door Open Timer] Setting switch to false [6/6/2020, 1:59:59 AM] [Garage Door Left Open Timer] Initializing DummySwitch accessory... [6/6/2020, 1:59:59 AM] [Garage Door Left Open Timer] Setting switch to false Setup Payload: X-HM://0024J1OBOH2PA Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxx-xx-xxx │     
└────────────┘     

[6/6/2020, 1:59:59 AM] Homebridge is running on port 51764. [6/6/2020, 1:59:59 AM] [Config] Homebridge Config UI X v4.21.0 is listening on :: port 8581

Accessories are not responding so I manually restart **

[6/6/2020, 2:00:41 AM] [HB Supervisor] Stopping services... [6/6/2020, 2:00:41 AM] Got SIGTERM, shutting down Homebridge... [6/6/2020, 2:00:48 AM] [HB Supervisor] Homebridge Storage Path: /Users//.homebridge [6/6/2020, 2:00:48 AM] [HB Supervisor] Homebridge Config Path: /Users//.homebridge/config.json [6/6/2020, 2:00:48 AM] [HB Supervisor] Logging to /Users//.homebridge/homebridge.log [6/6/2020, 2:00:48 AM] [HB Supervisor] OS: Darwin 19.5.0 x64 [6/6/2020, 2:00:48 AM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge [6/6/2020, 2:00:48 AM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js [6/6/2020, 2:00:48 AM] [HB Supervisor] Starting Homebridge with extra flags: -I [6/6/2020, 2:00:48 AM] [HB Supervisor] Started Homebridge v1.1.0 with PID: 565 [6/6/2020, 2:00:49 AM] Loaded config.json with 7 accessories and 1 platforms. [6/6/2020, 2:00:49 AM] --- [6/6/2020, 2:00:49 AM] Loaded plugin: homebridge-config-ui-x@4.21.0 [6/6/2020, 2:00:49 AM] Registering platform 'homebridge-config-ui-x.config' [6/6/2020, 2:00:49 AM] --- [6/6/2020, 2:00:49 AM] Loaded plugin: homebridge-dummy@0.4.1 [6/6/2020, 2:00:49 AM] Registering accessory 'homebridge-dummy.DummySwitch' [6/6/2020, 2:00:49 AM] --- [6/6/2020, 2:00:49 AM] Loading 1 platforms... [6/6/2020, 2:00:49 AM] [Config] Initializing config platform... [6/6/2020, 2:00:49 AM] [Config] Running in Service Mode [6/6/2020, 2:00:49 AM] Loading 7 accessories... [6/6/2020, 2:00:49 AM] [Bill Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Bill Occupancy 1] Setting switch to true [6/6/2020, 2:00:49 AM] [Chris Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Chris Occupancy 1] Setting switch to true [6/6/2020, 2:00:49 AM] [Joint Occupancy 1] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Joint Occupancy 1] Setting switch to true [6/6/2020, 2:00:49 AM] [Laundry Room Kittens] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Laundry Room Kittens] Setting switch to true [6/6/2020, 2:00:49 AM] [Patio Motion Timer] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Garage Door Open Timer] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Garage Door Open Timer] Setting switch to false [6/6/2020, 2:00:49 AM] [Garage Door Left Open Timer] Initializing DummySwitch accessory... [6/6/2020, 2:00:49 AM] [Garage Door Left Open Timer] Setting switch to false Setup Payload: X-HM://0024J1OBOH2PA Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxx-xx-xxx │     
└────────────┘     

[6/6/2020, 2:00:49 AM] Homebridge is running on port 51764. [6/6/2020, 2:00:49 AM] [Config] Homebridge Config UI X v4.21.0 is listening on :: port 8581 *** Accessories Responding **