joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
62 stars 20 forks source link

After initialization - RequestUnsuccessful #127

Open yasmath opened 1 month ago

yasmath commented 1 month ago

Describe Your Problem:

[5/26/2024, 12:37:02 PM] [homebridge-alexa-smarthome] After initialization - RequestUnsuccessful(Error getting smart home device state(s). Response: { "message": "Unsuccessful call to IotaService.retrieveStates with customerId=XXXXXXXXXX", "code": null })

Logs:

[5/26/2024, 12:37:02 PM] [homebridge-alexa-smarthome] After initialization - RequestUnsuccessful(Error getting smart home device state(s). Response: { "message": "Unsuccessful call to IotaService.retrieveStates with customerId=AOEGTL40ZIQ85", "code": null }) [5/26/2024, 12:38:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:39:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:40:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:41:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:42:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:43:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:44:02 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:45:03 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:46:03 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:47:03 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:47:03 PM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication check successfull [5/26/2024, 12:48:03 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:49:03 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:50:04 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:51:04 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:52:04 PM] [homebridge-alexa-smarthome] Updating device states [5/26/2024, 12:53:04 PM] [homebridge-alexa-smarthome] Updating device states

Plugin Config:

{ "devices": [], "excludeDevices": [], "auth": { "refreshInterval": 4, "proxy": { "clientHost": "nas.local", "port": 9000 } }, "amazonDomain": "amazon.com", "language": "en-US", "performance": { "cacheTTL": 30, "backgroundRefresh": true }, "debug": true, "_bridge": { "username": "0E:79:96:90:74:89", "port": 58856 }, "platform": "HomebridgeAlexaSmartHome" }

Screenshots:

[5/26/2024, 12:37:02 PM] [homebridge-alexa-smarthome] After initialization - RequestUnsuccessful(Error getting smart home device state(s). Response: { "message": "Unsuccessful call to IotaService.retrieveStates with customerId=XXXXXXXXXX", "code": null })

Environment:

aovr1234 commented 1 week ago

I just started getting the same issue. It was fixed in 2.1.5 and then like one week later it started again

fmottaz commented 1 week ago

I have the same behaviour. Had the problem before, 2.1.5 update solved it but it is coming back with a vengeance and also a slight difference. Although the message logged "Too many requests. Try again in some time." is the same, behaviour in Homekit is different: the command will work but can take up to three minutes to execute. Also, my homebridge server runs with a 55% load. Normally it is around 6%.

joeyhage commented 1 week ago

Interesting that this was fixed with 2.1.5. It must be related to the rate limiting that Amazon is doing. Please see #137 for context.