fjhorrillo / homebridge-airzone-cloud

Homebridge Airzone Cloud
Apache License 2.0
21 stars 3 forks source link

Fetch error message from the logs and fan accessories showing but not reflecting anything #43

Closed bobybob69 closed 3 months ago

bobybob69 commented 5 months ago

Describe Your Problem:

Hi team !

Since the plugin installation, I've this error message appearing on the log :

[06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error

Sometimes it breaks the plugin and sometimes not. As I install it on a child bridge, I ofter restart it to prevent issues.

Also, when I used the plugin I can see an accessory as a Fan appearing under the main location for the AirZone system. I don't have it in other location (like the 3 bedrooms, I only have the thermostat option.). It doesn't change status when the AC is on and air flow is coming from the ceiling (if enable via wall command or AirZone app) If I activate it from the Home app, nothing happen. I don't understand what is this accessories to be honest. If you could clarify it would be great as I try to obtain the status of the Airzone system if airflow is coming or not.

Logs:

[06/02/2024 21:56:40] [AirzoneCloud] Restarting child bridge... [06/02/2024 21:56:40] Got SIGTERM, shutting down child bridge process... [06/02/2024 21:56:45] [AirzoneCloud] Child bridge process ended [06/02/2024 21:56:45] [AirzoneCloud] Process Ended. Code: 143, Signal: null [06/02/2024 21:56:52] [AirzoneCloud] Restarting Process... [06/02/2024 21:56:54] [AirzoneCloud] Launched child bridge with PID PIDNUMBER [06/02/2024 21:56:54] Registering platform 'homebridge-airzone-cloud.AirzoneCloud' [06/02/2024 21:56:55] [AirzoneCloud] Loaded homebridge-airzone-cloud v0.5.0 child bridge successfully [06/02/2024 21:56:55] Loaded 4 cached accessories from cachedAccessories.CACHEDNUMBER. [06/02/2024 21:56:55] [AirzoneCloud] Loading accessory from cache: Léna [06/02/2024 21:56:55] [AirzoneCloud] Loading accessory from cache: Parents [06/02/2024 21:56:55] [AirzoneCloud] Loading accessory from cache: Maël [06/02/2024 21:56:55] [AirzoneCloud] Loading accessory from cache: Salon [06/02/2024 21:56:55] [AirzoneCloud] Initialice conection to Airzone Cloud [06/02/2024 21:56:55] Homebridge v1.7.0 (HAP v0.11.1) (AirzoneCloud) is running on port XXXXXX. [06/02/2024 21:56:56] [AirzoneCloud] Logged in successfully as USER@EMAIL.COM [06/02/2024 21:56:56] [AirzoneCloud] [Websocket] Websocket connected [06/02/2024 21:56:57] [AirzoneCloud] [Websocket] The installation status was fully received [06/02/2024 21:56:58] [AirzoneCloud] Restoring existing accessory from cache: Léna (UUID: XXXXX) [06/02/2024 21:56:58] [AirzoneCloud] Restoring existing accessory from cache: Parents (UUID: XXXX) [06/02/2024 21:56:58] [AirzoneCloud] Restoring existing accessory from cache: Maël (UUID: XXXXX) [06/02/2024 21:56:58] [AirzoneCloud] Restoring existing accessory from cache: Salon (UUID: XXXXX) [06/02/2024 21:57:51] [AirzoneCloud] [Sets] Salon: Set Characteristic TargetTemperature -> 20.5 0 [06/02/2024 21:57:51] [AirzoneCloud] [Sets] Salon: Set Characteristic TargetTemperature -> 20.5ºC in 0.027s [06/02/2024 21:57:58] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:57:58] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 21:57:58] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:57:58] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 21:57:58] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:57:58] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 21:57:58] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:57:58] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 21:59:17] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:59:17] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 21:59:17] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 21:59:17] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:05:33] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:05:33] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:05:33] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:05:33] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:05:33] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:05:33] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:05:33] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:05:33] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:05:34] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:05:34] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:14:46] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:14:46] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:14:46] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:14:46] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:14:46] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:14:46] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:14:46] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:14:46] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:14:47] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:14:47] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error [06/02/2024 22:17:40] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [06/02/2024 22:17:40] [AirzoneCloud] Error in getDeviceStatus. Error

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

{ "platform": "AirzoneCloud", "login": { "email": "USR", "password": "PSW" }, "name": "AirzoneCloud", "auto_off": true, "system": "https://m.airzonecloud.com", "_bridge": { "port": PORTNUMBER, "username": "MACADRESS" }, "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15", "debug": false }

Screenshots:

fan accessories on main room

2 accessories show on the main room

only thermostat for bedroom

Environment:

juliensantos87 commented 4 months ago

Hi!

I have the same error, I think it due to "429 Too Many Requests". It's look like the plugin try refresh foreach attributes

[28/02/2024, 12:00:08] [AirzoneCloud] Chambre: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Chambre: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Chambre: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Chambre: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Chambre: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Cuisine: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis
[28/02/2024, 12:00:08] [AirzoneCloud] Salon: Starting refresh device statis

@fjhorrillo any way to refresh only once for all the Characteristics ?

fjhorrillo commented 3 months ago

Fixed in version 0.5.1