tonesto7 / homebridge-smartthings

SmartThings Homebridge Plugin
384 stars 770 forks source link

DIRECT not detecting the IP address on macOS Catalina VM #352

Open tannebil opened 3 years ago

tannebil commented 3 years ago

Verify the following before opening an trouble issue

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!


About Your Setup

Expected Behavior

That the plug-in will detect the host IP address and use it in DIRECT

Current Behavior

Plug-in returns 0.0.0.0 when the VM starts. I shut it down nightly for a backup. I can't rule out that it fails every time as my logs are not clear.

Steps to Reproduce (for bugs)

Start VM Accessories show as not responding Login with the browser from another machine Check the log and see that DIRECT is using 0.0.0.0

Context

I'm working around it by setting the value in config.json but thought you'd want to know that it was not working with a macOS Catalina 10.15.6 VM running under Parallels 16.0.0.

All the configuration was done through the homebridge-config-ui-x interface.



[8/16/2020, 12:27:25 AM] [HB Supervisor] Homebridge Config Path: /Users/btanner/.homebridge/config.json
[8/16/2020, 12:27:25 AM] [HB Supervisor] Logging to /Users/btanner/.homebridge/homebridge.log
[8/16/2020, 12:27:25 AM] [HB Supervisor] OS: Darwin 19.6.0 x64
[8/16/2020, 12:27:25 AM] [HB Supervisor] Node.js v12.18.3 /usr/local/bin/node
[8/16/2020, 12:27:25 AM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[8/16/2020, 12:27:25 AM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[8/16/2020, 12:27:25 AM] [HB Supervisor] Starting Homebridge with extra flags: -I
[8/16/2020, 12:27:25 AM] [HB Supervisor] Started Homebridge v1.1.2 with PID: 253
[8/16/2020, 12:27:25 AM] Loaded config.json with 0 accessories and 2 platforms.
[8/16/2020, 12:27:25 AM] ---
[8/16/2020, 12:27:26 AM] Loaded plugin: homebridge-config-ui-x@4.25.2
[8/16/2020, 12:27:26 AM] Registering platform 'homebridge-config-ui-x.config'
[8/16/2020, 12:27:26 AM] ---
[8/16/2020, 12:27:26 AM] Loaded plugin: homebridge-smartthings@2.3.4
[8/16/2020, 12:27:26 AM] Registering platform 'homebridge-smartthings.SmartThings-v2'
[8/16/2020, 12:27:26 AM] ---
[8/16/2020, 12:27:26 AM] Loading 2 platforms...
[8/16/2020, 12:27:26 AM] [Config] Initializing config platform...
[8/16/2020, 12:27:26 AM] [Config] Running in Service Mode
[8/16/2020, 12:27:26 AM] [SmartThings-v2] Initializing SmartThings-v2 platform...
INFO: Homebridge Version: 2.6
INFO: SmartThings-v2 Plugin Version: 2.3.4
INFO: Checking Package Version for Updates...
INFO: Fetching SmartThings-v2 Devices. NOTICE: This may take a moment if you have a large number of device data is being loaded!
GOOD: Refreshing All Device Data | Source: (First Launch)
Setup Payload:
X-HM://0023TB4E74EIE
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

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

[8/16/2020, 12:27:27 AM] Homebridge is running on port 51904.
ERROR: getDevices Error: undefined | Message: getaddrinfo ENOTFOUND graph.api.smartthings.com
ALERT: Total Initialization Time: (0 seconds)
NOTICE: Unknown Capabilities: []
INFO: SmartThings DeviceCache Size: (10)
INFO: WebServer Initiated...
INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false)
INFO: Direct Connect Active | Listening at 0.0.0.0:8000
ERROR: sendStartDirect Error: undefined | Message: getaddrinfo ENOTFOUND graph.api.smartthings.com
[8/16/2020, 12:27:27 AM] [Config] Homebridge Config UI X v4.25.2 is listening on :: port 8581```