grivkees / homebridge-carrier-infinity

Standalone homebridge plugin for Carrier Infinity / Bryant Evolution / ICP Brands Ion thermostats.
MIT License
24 stars 6 forks source link

Login is not retried if api login call fails for whatever reason #527

Open rdeutsch3 opened 1 month ago

rdeutsch3 commented 1 month ago

Describe Your Problem:

The plug-in seemed to stop working, so I restarted the child bridge and it is returning 503 errors. My Infinity thermostats report they are connected and are working properly. Nothing has changed on my homebridge configuration, network or with this plug-in. Its been working fine, only occasionally I've restarted it when it seems to not communicate with the carrier servers. I say "seems" as there is nothing in the log showing any issue, but the thermostats don't update. A restart of the child bridge seems to right its world and everything is good, but not this time. I've restarted the bridge a few times across a few hours and no joy.

Thoughts?

Logs: [8/7/2024, 9:40:40 AM] [homebridge-carrier-infinity] Child bridge process ended [8/7/2024, 9:40:40 AM] [homebridge-carrier-infinity] Process Ended. Code: 143, Signal: null [8/7/2024, 9:40:47 AM] [homebridge-carrier-infinity] Restarting Process... [8/7/2024, 9:40:48 AM] [homebridge-carrier-infinity] Launched child bridge with PID 23459 [8/7/2024, 9:40:48 AM] Registering platform 'homebridge-carrier-infinity.CarrierInfinity' [8/7/2024, 9:40:48 AM] [homebridge-carrier-infinity] Loaded homebridge-carrier-infinity v1.6.13 child bridge successfully [8/7/2024, 9:40:48 AM] Loaded 8 cached accessories from cachedAccessories.XXXXXXXXXX. [8/7/2024, 9:40:49 AM] Homebridge v1.8.4 (HAP v0.12.2) (HB CarrierInfinity-Bridge) is running on port 59304. [8/7/2024, 9:40:49 AM]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] Login failed: Request failed with status code 503 [8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Could not refresh access token: Request failed with status code 503 [8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Failure sending activation signal: Request failed with status code 503 [8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] [API] Failed to fetch updates: Request failed with status code 503 [8/7/2024, 9:40:49 AM] [homebridge-carrier-infinity] Could not discover devices: Cannot read properties of undefined (reading 'locations')

Plugin Config:

{ "username": "MyEmail@whereever.com", "password": "***", "holdBehavior": "activity", "showOutdoorTemperatureSensor": true, "showFanControl": false, "showIndoorHumiditySensors": true, "showZoneComfortActivityControls": false, "_bridge": { "name": "HB CarrierInfinity-Bridge", "username": "XX:XX:XX:XX:XX:XX", "port": 59304 }, "platform": "CarrierInfinity" } Screenshots: n/a

Environment:

tjridge commented 1 month ago

I'm getting the same errors:

[API] Failure sending activation signal: Request failed with status code 503

rdeutsch3 commented 1 month ago

A little more info, when I attempt to log into the carrier site via: https://www.myinfinitytouch.carrier.com/login

I get a red "Network Error" message just above the login button and it fails. Perhaps they've got something going on internally, as I used to be able to log into the site directly.

rdeutsch3 commented 1 month ago

Seems like it was a backend issue at Carrier. The “Network Error” message is gone on the Carrier site, I can now login and the plug-in was fine after I restarted the child bridge.

Closed.

grivkees commented 1 month ago

This does look resolved now. But it looks like it may require a plugin restart for it to try logging in again. Going to reopen this to track fixing the plugin to retry login if the login fails.

rdeutsch3 commented 1 month ago

The retry would be cool. Thanks for reopening.