dkerr64 / homebridge-yolink

Apache License 2.0
12 stars 2 forks source link

Log message: Current access token expired, or close to expiry, request new one #81

Closed threeonparfive closed 1 year ago

threeonparfive commented 1 year ago

Describe Your Problem:

I get the message "Current access token expired, or close to expiry, request new one" frequently, even on a token that's only a day old. The Yolink app gives no indication that there's a problem with the token. The plug-in appears to be functioning normally despite this message.

Logs:

[11/5/2023, 6:33:12 AM] Registering platform 'homebridge-yolink.YoLink'
[11/5/2023, 6:33:12 AM] [YoLink] Initializing YoLink platform...
[11/5/2023, 6:33:12 AM] [YoLink] Initializing child bridge 0E:22:68:53:7B:5C
[11/5/2023, 6:33:13 AM] [YoLink] Launched child bridge with PID 21583
[11/5/2023, 6:33:13 AM] Registering platform 'homebridge-yolink.YoLink'
[11/5/2023, 6:33:13 AM] [YoLink] Loaded homebridge-yolink v1.3.4 child bridge successfully
[11/5/2023, 6:33:13 AM] [YoLink] YoLink plugin for HomeBridge version 1.3.4 (c) 2022 David A. Kerr
[11/5/2023, 6:33:13 AM] [YoLink] Login to YoLink API with credentials from config
[11/5/2023, 6:33:13 AM] Homebridge v1.7.0 (HAP v0.11.1) (YoLink) is running on port 30870.
[11/5/2023, 6:33:14 AM] [YoLink] Starting interval timer to refresh accessToken every 6480 seconds
[11/5/2023, 6:33:15 AM] [YoLink] Not registering device YoLink Hub (d88b4c160303664a) as config 'hide=true'
[11/5/2023, 6:33:15 AM] [YoLink] Create MQTT client to connect to YoLink message service
[11/5/2023, 6:33:15 AM] [YoLink] MQTT subscribed: yl-home/b34dd4fd014b47879fa4b1051fca6440/+/report
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:58:34 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 4:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 19°C (66.2°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:25:47 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:07:39 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:46:30 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F)
[11/5/2023, 6:33:15 AM] [YoLink] At 11/5/2023, 5:16:37 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F)
[11/5/2023, 8:20:15 AM] [YoLink] At 11/5/2023, 8:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 8:27:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 9:07:39 AM] [YoLink] At 11/5/2023, 9:07:39 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:16:37 AM] [YoLink] At 11/5/2023, 9:16:37 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:25:47 AM] [YoLink] At 11/5/2023, 9:25:47 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:46:30 AM] [YoLink] At 11/5/2023, 9:46:30 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:58:35 AM] [YoLink] At 11/5/2023, 9:58:35 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:59:21 AM] [YoLink] At 11/5/2023, 9:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/5/2023, 10:21:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 12:15:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 12:20:15 PM] [YoLink] At 11/5/2023, 12:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:07:39 PM] [YoLink] At 11/5/2023, 1:07:39 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:16:38 PM] [YoLink] At 11/5/2023, 1:16:38 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:25:47 PM] [YoLink] At 11/5/2023, 1:25:47 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:46:30 PM] [YoLink] At 11/5/2023, 1:46:29 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:58:35 PM] [YoLink] At 11/5/2023, 1:58:35 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 1:59:21 PM] [YoLink] At 11/5/2023, 1:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 2:09:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 4:03:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 4:20:15 PM] [YoLink] At 11/5/2023, 4:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:07:39 PM] [YoLink] At 11/5/2023, 5:07:39 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:16:39 PM] [YoLink] At 11/5/2023, 5:16:39 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:25:47 PM] [YoLink] At 11/5/2023, 5:25:47 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:46:29 PM] [YoLink] At 11/5/2023, 5:46:29 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:57:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 5:58:35 PM] [YoLink] At 11/5/2023, 5:58:35 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 5:59:21 PM] [YoLink] At 11/5/2023, 5:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 7:51:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 8:20:15 PM] [YoLink] At 11/5/2023, 8:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:07:39 PM] [YoLink] At 11/5/2023, 9:07:39 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 26°C (78.8°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:16:39 PM] [YoLink] At 11/5/2023, 9:16:39 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:25:47 PM] [YoLink] At 11/5/2023, 9:25:47 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 18°C (64.4°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:45:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/5/2023, 9:46:29 PM] [YoLink] At 11/5/2023, 9:46:29 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:58:35 PM] [YoLink] At 11/5/2023, 9:58:35 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 9:59:21 PM] [YoLink] At 11/5/2023, 9:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/5/2023, 11:39:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 12:20:15 AM] [YoLink] At 11/6/2023, 12:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:07:38 AM] [YoLink] At 11/6/2023, 1:07:38 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:16:40 AM] [YoLink] At 11/6/2023, 1:16:40 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:25:47 AM] [YoLink] At 11/6/2023, 1:25:47 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:33:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 1:46:29 AM] [YoLink] At 11/6/2023, 1:46:29 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:58:35 AM] [YoLink] At 11/6/2023, 1:58:35 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:59:21 AM] [YoLink] At 11/6/2023, 1:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 3:27:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 4:20:16 AM] [YoLink] At 11/6/2023, 4:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:07:38 AM] [YoLink] At 11/6/2023, 5:07:38 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:16:40 AM] [YoLink] At 11/6/2023, 5:16:40 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:21:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 5:25:47 AM] [YoLink] At 11/6/2023, 5:25:47 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:46:28 AM] [YoLink] At 11/6/2023, 5:46:28 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:58:35 AM] [YoLink] At 11/6/2023, 5:58:35 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:59:21 AM] [YoLink] At 11/6/2023, 5:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 7:15:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 8:20:15 AM] [YoLink] At 11/6/2023, 8:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:07:38 AM] [YoLink] At 11/6/2023, 9:07:38 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:09:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 9:16:41 AM] [YoLink] At 11/6/2023, 9:16:41 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:25:47 AM] [YoLink] At 11/6/2023, 9:25:47 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:46:28 AM] [YoLink] At 11/6/2023, 9:46:28 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:58:36 AM] [YoLink] At 11/6/2023, 9:58:36 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:59:21 AM] [YoLink] At 11/6/2023, 9:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 11:03:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 12:20:15 PM] [YoLink] At 11/6/2023, 12:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 12:57:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 1:07:38 PM] [YoLink] At 11/6/2023, 1:07:38 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:16:41 PM] [YoLink] At 11/6/2023, 1:16:41 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:25:48 PM] [YoLink] At 11/6/2023, 1:25:47 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:46:28 PM] [YoLink] At 11/6/2023, 1:46:28 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:58:36 PM] [YoLink] At 11/6/2023, 1:58:36 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 1:59:21 PM] [YoLink] At 11/6/2023, 1:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 2:51:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 4:20:15 PM] [YoLink] At 11/6/2023, 4:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 4:45:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 5:07:38 PM] [YoLink] At 11/6/2023, 5:07:38 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 26°C (78.8°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:16:42 PM] [YoLink] At 11/6/2023, 5:16:42 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:25:48 PM] [YoLink] At 11/6/2023, 5:25:48 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 18°C (64.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:46:27 PM] [YoLink] At 11/6/2023, 5:46:27 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:58:36 PM] [YoLink] At 11/6/2023, 5:58:36 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 5:59:21 PM] [YoLink] At 11/6/2023, 5:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 6:39:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 8:20:15 PM] [YoLink] At 11/6/2023, 8:20:15 PM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 8:33:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/6/2023, 9:07:38 PM] [YoLink] At 11/6/2023, 9:07:38 PM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:16:42 PM] [YoLink] At 11/6/2023, 9:16:42 PM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:25:48 PM] [YoLink] At 11/6/2023, 9:25:48 PM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 18°C (64.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:46:27 PM] [YoLink] At 11/6/2023, 9:46:27 PM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 23°C (73.4°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:58:36 PM] [YoLink] At 11/6/2023, 9:58:36 PM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 9:59:21 PM] [YoLink] At 11/6/2023, 9:59:21 PM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/6/2023, 10:27:14 PM] [YoLink] Current access token expired, or close to expiry, request new one
[11/7/2023, 12:20:15 AM] [YoLink] At 11/7/2023, 12:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/7/2023, 12:21:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/7/2023, 1:07:38 AM] [YoLink] At 11/7/2023, 1:07:38 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 25°C (77.0°F) (MQTT: LeakSensor.Report)
[11/7/2023, 1:16:43 AM] [YoLink] At 11/7/2023, 1:16:43 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/7/2023, 1:25:48 AM] [YoLink] At 11/7/2023, 1:25:48 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 18°C (64.4°F) (MQTT: LeakSensor.Report)
[11/7/2023, 1:46:27 AM] [YoLink] At 11/7/2023, 1:46:27 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/7/2023, 1:58:36 AM] [YoLink] At 11/7/2023, 1:58:36 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/7/2023, 1:59:21 AM] [YoLink] At 11/7/2023, 1:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/7/2023, 2:15:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/7/2023, 4:09:14 AM] [YoLink] Current access token expired, or close to expiry, request new one
[11/7/2023, 4:20:15 AM] [YoLink] At 11/7/2023, 4:20:15 AM: Device state for Heat Pump (d88b4c0100084d5d) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:07:38 AM] [YoLink] At 11/7/2023, 5:07:38 AM: Device state for Refrigerator (d88b4c010008519d) is: Leak: normal, Battery: 4, DevTemp: 24°C (75.2°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:16:43 AM] [YoLink] At 11/7/2023, 5:16:43 AM: Device state for Washer (d88b4c0100085195) is: Leak: normal, Battery: 4, DevTemp: 22°C (71.6°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:25:48 AM] [YoLink] At 11/7/2023, 5:25:48 AM: Device state for Main Shutoff (d88b4c0100084ceb) is: Leak: normal, Battery: 4, DevTemp: 17°C (62.6°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:46:27 AM] [YoLink] At 11/7/2023, 5:46:27 AM: Device state for Sink (d88b4c0100084d17) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:58:36 AM] [YoLink] At 11/7/2023, 5:58:36 AM: Device state for Hall Bath (d88b4c0100084e49) is: Leak: normal, Battery: 4, DevTemp: 21°C (69.8°F) (MQTT: LeakSensor.Report)
[11/7/2023, 5:59:21 AM] [YoLink] At 11/7/2023, 5:59:21 AM: Device state for Master Bath (d88b4c0100084ce8) is: Leak: normal, Battery: 4, DevTemp: 20°C (68.0°F) (MQTT: LeakSensor.Report)
[11/7/2023, 6:03:14 AM] [YoLink] Current access token expired, or close to expiry, request new one

Plugin Config:

 "name": "YoLink",
            "platform": "YoLink",
            "tokenURL": "https://api.yosmart.com/open/yolink/token",
            "apiURL": "https://api.yosmart.com/open/yolink/v2/api",
            "mqttPort": 8003,
            "userAccessId": "xxxxxxxx",
            "secretKey": "xxxxxxx",
            "refreshAfter": 14500,
            "verboseLog": false,
            "liteLog": true,
            "allDevices": true,
            "excludeTypes": [
                "Hub",
                "SpeakerHub"
            ],
            "deviceTemperatures": false,
            "enableExperimental": false,
            "_bridge": {
                "username": "xxxxxxxxxx",
                "port": 30870

Screenshots:

Environment:

dkerr64 commented 1 year ago

This is expected. Yolink expires their access tokens approx every 3 hours. I try and anticipate this and have set a timer in the plugin to renew the tokens before they expire. Now it is a good question as to whether I should be logging this, as it does clutter the log... in other words, only log if something goes wrong with the renewal.

David