Closed FlightMedic376 closed 1 year ago
This is working as expected. The access token is valid for 2 hours. The plugin must request a new token at least every two hours. The plugin tries to do this shortly before the 2 hours is up so that it does not get an error when making a request just after two hours, so it always has a valid token. This activity is logged for informational purposes (reassurance that things are still working).
Describe The Bug: In the homekit logs Yolink plugin continually prompts that "Current access token expired, or close to expiry, request new one"
To Reproduce: I have canceled and resigned a new access token. The plugin seems to be working; I don't know if there is a time limit on the access token.
Logs: [2/17/2023, 8:46:49 AM] [YoLink] YoLinkAPI.getDeviceState for Garage Door Controller (d88b4c0100059769) [2/17/2023, 8:46:49 AM] [YoLink] At 2/17/2023, 8:46:49 AM: Device state for Garage Door Controller (d88b4c0100059769) is: Garage Door or Finger: , rc: 1 [2/17/2023, 9:22:45 AM] [YoLink] At 2/17/2023, 9:16:30 AM: Device state for Garage Door Controller (d88b4c0100059769) is: Garage Door or Finger: , rc: 1 [2/17/2023, 10:06:42 AM] [YoLink] Current access token expired, or close to expiry, request new one [2/17/2023, 10:53:05 AM] [Ring] Reconnecting location socket.io connection [2/17/2023, 10:53:06 AM] [Ring] Creating location socket.io connection - Bellevue [2/17/2023, 10:53:07 AM] [Ring] Ring connected to socket.io server [2/17/2023, 12:00:42 PM] [YoLink] Current access token expired, or close to expiry, request new one [2/17/2023, 12:48:29 PM] [YoLink] YoLinkAPI.getDeviceState for Garage Door Controller (d88b4c0100059769) [2/17/2023, 12:48:30 PM] [YoLink] At 2/17/2023, 12:48:30 PM: Device state for Garage Door Controller (d88b4c0100059769) is: Garage Door or Finger: , rc: 1 [2/17/2023, 1:54:42 PM] [YoLink] Current access token expired, or close to expiry, request new one [2/17/2023, 2:36:58 PM] [YoLink] At 2/17/2023, 1:46:55 PM: Device state for Garage Door Controller (d88b4c0100059769) is: Garage Door or Finger: , rc: 1
Plugin Config:
Screenshots:
Environment: