fjhorrillo / homebridge-airzone-cloud

Homebridge Airzone Cloud
Apache License 2.0
22 stars 4 forks source link

Doesn't show remote zones correctly #42

Open chbuilds opened 9 months ago

chbuilds commented 9 months ago

Describe The Bug: We have three "master" thermostats that each control an air handler, and several other "remote" thermostats that are assigned under different master thermostats (these remote zones will take priority when they need to heat or cool, then hand off control to whatever thermostat in the zone needs it next). In the Home app, this plugin shows these remote zones as not operating and without the ability to do "Auto" mode (only heat/cool/off).

To Reproduce: Find a system with master and remote thermostats, install v0.5.0 and add thermostats to Home app.

Expected behavior: Master and remote zones should appear the same. The plugin should display their current status (Heat/Cool/Auto/Off) and what they are set to (heat to 65, cool to 75, etc).

Logs: There are two errors mixed in these logs, one for issue 40 and the other characteristic warning perhaps related to this master/remote error?

[1/29/2024, 5:19:45 PM] [AirzoneCloud] Logged in successfully as [redacted] [1/29/2024, 5:19:45 PM] [AirzoneCloud] [Websocket] Websocket connected [1/29/2024, 5:19:47 PM] [AirzoneCloud] [Websocket] The installation status was fully received [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:19:47 PM] [AirzoneCloud] Adding new accessory [redacted] [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value 3 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value 3 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value 3 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Current Heating Cooling State': characteristic was supplied illegal value: number 3 exceeded maximum of 2. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value 3 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info. [1/29/2024, 5:22:07 PM] [AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests [1/29/2024, 5:22:07 PM] [AirzoneCloud] Error in getDeviceStatus. Error

Plugin Config:

{ "bridge": { "name": "Homebridge", "username": [redacted], "port": [port], "pin": [pin], "advertiser": "bonjour-hap" }, "accessories": [], "platforms": [ { "name": "Config", "port": [port], "auth": "form", "theme": "auto", "tempUnits": "f", "lang": "auto", "platform": "config" }, { "name": "AirzoneCloud", "system": "https://m.airzonecloud.com", "login": { "email": [email], "password": [pw] }, "debug": { "general": false, "time": false, "sets": true, "gets": false, "fetch": false, "websocket": false, "status": false }, "auto_off": true, "cache": { "max": 1000, "ttl": 10000 }, "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", "platform": "AirzoneCloud" }, ], "disabledPlugins": [ "homebridge-airzone-cloud" //currently disabled because it's spamming the Airzone API, see issue 40 https://github.com/fjhorrillo/homebridge-airzone-cloud/issues/40 ] }

Screenshots:

Environment:

fjhorrillo commented 7 months ago

Hello, could you try it with version 0.5.1 or higher to validate if the problem was related to "429 Too Many Requests" error which has been fixed on this version? Thanks.

chbuilds commented 7 months ago

Thank you! Testing with 0.5.2. The 429 error was corrected! The remote zones are displaying current temperature correctly. Unfortunately, I am now getting these errors below, and the remote zones are showing as "no response."

`[3/11/2024, 10:57:09 AM] [homebridge-airzone-cloud] This plugin generated a warning from the characteristic 'Target Heating Cooling State': characteristic value 3 is not contained in valid values array. See https://homebridge.io/w/JtMGR for more info.

[3/11/2024, 10:57:09 AM] [homebridge-airzone-cloud] This plugin threw an error from the characteristic 'Target Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'fah'). See https://homebridge.io/w/JtMGR for more info.`