Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct Access reverts to Kumo API IP address even when manual IP is set and Kumo API IP is undefined #101

Open
clknight2111 opened this issue Nov 10, 2023 · 2 comments

Comments

@clknight2111
Copy link

  • I have two mini-splits connected with Kumo with reserved IPs that are manually set in the config file using the Address.[SerialNumber/ZoneName]=[IpAddress] option.
  • When I first restart homebridge-kumo (it’s a child bridge), everything is fine. However, eventually a connection times out—glitch in my home network, I assume.
  • When this happens, it appears that homebridge-kumo reverts to the Kumo API, but it then tries to retrieve the local IPs from Kumo (which return as ‘undefined’), and then continues in direct access mode with an undefined local IP (see log below)

[10/11/2023, 03:57:02] [homebridge-kumo] queryDevice_Direct error: Time out on local IP connection to 192.168.4.204..
[10/11/2023, 03:57:02] [homebridge-kumo] Kumo API: acquiring a new security token.
[10/11/2023, 03:57:04] [homebridge-kumo] Kumo API: Successfully connected to the Kumo API.
[10/11/2023, 03:57:04] [homebridge-kumo] Updated existing device. Serial: 3734P0087100072F. Label: Kids Bedroom
[10/11/2023, 03:57:04] [homebridge-kumo] Updated existing device. Serial: 3734P008C100291F. Label: Master bedroom
[10/11/2023, 03:57:04] [homebridge-kumo] Number of devices found: 0
[10/11/2023, 03:57:04] [homebridge-kumo] queryDevice_Direct error: FetchError: request to http//undefined/api?m=f4d8f58e9707feb2ad693a2f94f19de62be712aa2b4940914f85e0afc31cb39e failed, reason: getaddrinfo ENOTFOUND undefined at ClientRequest. (file:///usr/local/lib/node_modules/homebridge-kumo/node_modules/node-fetch/src/index.js:108:11)

  • The FetchError: request to http://undefined/api? errors persist until I manually restart the bridge, at which point everything works fine again until this process repeats (usually within 12-24 hours).
  • Request: if a device IP is set manually in the config, could the plugin continue to use that IP, rather than allowing Kumo API to override with faulty data? Thanks!
@jefferai
Copy link

I have maybe a similar issue:

[1/14/2024, 5:21:51 PM] [homebridge-kumo] queryDevice_Direct error: Time out on local IP connection to 192.168.4.36..
[1/14/2024, 5:21:51 PM] [homebridge-kumo] Kumo API: throttling acquireSecurityToken API call.
[1/14/2024, 5:21:53 PM] [homebridge-kumo] queryDevice_Direct error: Time out on local IP connection to 192.168.4.36..
[1/14/2024, 5:21:53 PM] [homebridge-kumo] Kumo API: throttling acquireSecurityToken API call.
[1/14/2024, 5:21:55 PM] [homebridge-kumo] queryDevice_Direct error: Time out on local IP connection to 192.168.4.36..
[1/14/2024, 5:21:55 PM] [homebridge-kumo] Failed to connect to device IP (0134P008L100114F) at 192.168.4.36
[1/14/2024, 5:21:55 PM] [homebridge-kumo] Disabling directAccess to Kumo devices

I don't have anything at 192.168.4.36 -- in fact that's not even a valid IP on my home network. I have no idea where that IP is coming from.

@mhoskins83
Copy link

I'm having the same issue

7/12/2024, 3:48:36 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 3:48:36 PMKumo CloudKumoKumo API: acquiring a new security token.
7/12/2024, 3:48:38 PMKumo CloudKumoKumo API: Successfully connected to the Kumo API.
7/12/2024, 3:48:38 PMKumo CloudKumoUpdated existing device. Serial: 9534P008G100224F. Label: Florida Room
7/12/2024, 3:48:38 PMKumo CloudKumoUpdated existing device. Serial: 9Y34P008E100020F. Label: Living Room
7/12/2024, 3:48:38 PMKumo CloudKumoUpdated existing device. Serial: 9Z34P0089100102F. Label: Main Bedroom
7/12/2024, 3:48:38 PMKumo CloudKumoUpdated existing device. Serial: 9934P008M100094F. Label: Guest Bedroom
7/12/2024, 3:48:38 PMKumo CloudKumoUpdated existing device. Serial: 9X34P0088100157F. Label: Office
7/12/2024, 3:48:38 PMKumo CloudKumoNumber of devices found: 0
7/12/2024, 3:48:40 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 3:48:40 PMKumo CloudKumoWARNINGKumo API: throttling acquireSecurityToken API call.
7/12/2024, 3:48:42 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 3:48:42 PMKumo CloudKumoWARNINGLiving Room (queryDevice_Direct): failed.
7/12/2024, 6:18:36 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 6:18:36 PMKumo CloudKumoKumo API: acquiring a new security token.
7/12/2024, 6:18:38 PMKumo CloudKumoKumo API: Successfully connected to the Kumo API.
7/12/2024, 6:18:38 PMKumo CloudKumoUpdated existing device. Serial: 9534P008G100224F. Label: Florida Room
7/12/2024, 6:18:38 PMKumo CloudKumoUpdated existing device. Serial: 9Y34P008E100020F. Label: Living Room
7/12/2024, 6:18:38 PMKumo CloudKumoUpdated existing device. Serial: 9Z34P0089100102F. Label: Main Bedroom
7/12/2024, 6:18:38 PMKumo CloudKumoUpdated existing device. Serial: 9934P008M100094F. Label: Guest Bedroom
7/12/2024, 6:18:38 PMKumo CloudKumoUpdated existing device. Serial: 9X34P0088100157F. Label: Office
7/12/2024, 6:18:38 PMKumo CloudKumoNumber of devices found: 0
7/12/2024, 6:18:40 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 6:18:40 PMKumo CloudKumoWARNINGKumo API: throttling acquireSecurityToken API call.
7/12/2024, 6:18:42 PMKumo CloudKumoWARNINGqueryDevice_Direct error: Time out on local IP connection to 192.168.1.84..
7/12/2024, 6:18:42 PMKumo CloudKumoWARNINGLiving Room (queryDevice_Direct): failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants