fjhorrillo / homebridge-airzone-cloud

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

Plugin load OK but accessories AIRZONE do not appear in HomeKit or HomeBridge Accessories #18

Closed jalacain closed 2 years ago

jalacain commented 2 years ago

Good afternoon. I've been with this for several days and I can't figure out what's going on.

The plugin load is correct, without errors, the plugin communicates with m.airzonecloud.com and receives all the information of my user and device.

The problem is that then no new device appears in Homekit or HomeBridge Accessories.

I have removed the plugin and reinstalled, and everything is the same. I've tried older versions and the same.

I have many plugins installed on HomeBridge and this never happens to me.

I paste some information to help:

image

New AirZone device does not appear, I try to add new device AirZone in iPhone does not appear either.

image

[2/13/2022, 5:07:24 PM] [Airzone] Initializing AirzoneCloud platform... [2/13/2022, 5:07:24 PM] [Airzone] config.json: {"name":"Airzone","system":"https://m.airzonecloud.com","login":{"email":"xxxxxxxxxxxxxx@gmail.com","password":"************"},"debug":true,"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"} [2/13/2022, 5:07:24 PM] [Airzone] Finished initializing platform: Airzone [2/13/2022, 5:07:24 PM] [Airzone] Executed didFinishLaunching callback [2/13/2022, 5:07:24 PM] [Airzone] Initialice conection to Airzone Cloud [2/13/2022, 5:07:24 PM] [Airzone] [Fetch] ⬆ Request: POST https://m.airzonecloud.com/api/v1/auth/login body={"email":"xxxxxxxxxxxxxxx@gmail.com","password":"****"} [2/13/2022, 5:07:25 PM] [Airzone] [Fetch] ⬇ Response: {"_id":"6206899fb1b4f26a01de7e8f","email":"xxxxxxxxxxxx@gmail.com","data":{"name":"xxxxxx","lastName":"xxxxx xxxxxx","commercial":true},"config":{"lang":"es","ampm":false,"units":0,"noHaptic":false,"sundayFirst":false,"notification":true},"created_at":"2022-02-11T16:06:55.879Z","confirmation_date":"2022-02-11T16:07:19.072Z","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc","refreshToken":"50bdc528-0aab-4f4e-aec7-b223580ad79a"} [2/13/2022, 5:07:25 PM] [Airzone] Logged in successfully as xxxxxxxxxxxx@gmail.com [2/13/2022, 5:07:25 PM] [Airzone] Websocket: {"path":"/api/v1/websockets/conn","secure":true,"query":{"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc"},"transports":["websocket"],"transportOptions":{"polling":{"extraHeaders":{"Authorization":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc"}}},"autoConnect":false} [2/13/2022, 5:07:25 PM] [Airzone] Websocket connected [2/13/2022, 5:07:25 PM] [Airzone] [Websocket] ⬆ ["clear_listeners"] [2/13/2022, 5:07:25 PM] [Airzone] [Websocket] ⬇ [null] [2/13/2022, 5:07:25 PM] [Airzone] [Fetch] ⬆ Request: GET https://m.airzonecloud.com/api/v1/installations [2/13/2022, 5:07:25 PM] [Airzone] [Fetch] ⬇ Response: {"total":1,"installations":[{"_id":"62068b163ac05cac65822de0","installation_id":"62068b163ac05cac65822ddf","location_id":"60f14ebc061c028018122b4d","location_text":{"city":{"de":"Sevilla, Provinz Sevilla","en":"Seville","es":"Sevilla","fr":"Séville","it":"Siviglia","pt":"Sevilha"},"country":{"de":"Spanien","en":"Spain","es":"España","fr":"Espagne","it":"Spagna","pt":"Espanha"}},"name":"Casa","ws_ids":["28:CC:FF:80:9E:AD"],"access_type":"admin","icon":1,"color":4}]} [2/13/2022, 5:07:25 PM] [Airzone] Installation: Casa<62068b163ac05cac65822ddf> [2/13/2022, 5:07:25 PM] [Airzone] [Fetch] ⬆ Request: GET https://m.airzonecloud.com/api/v1/devices/ws/28:CC:FF:80:9E:AD/status/?installation_id=62068b163ac05cac65822ddf [2/13/2022, 5:07:26 PM] [Airzone] [Fetch] ⬇ Response: {"ws_type":"ws_aidoo","status":{"isConnected":true,"stat_rssi":-52,"stat_quality":3,"sshost":"skaidoo2.airzonecloud.com","pending_ws_schedules_update":false,"ssport":"443","connection_date":"2022-02-13 16:53:59 +0100","disconnection_date":"2022-02-13 16:53:59 +0100"},"config":{"mac":"28:CC:FF:80:9E:AD","pin":4494,"units":0,"ws_fw":"3.06","stat_channel":1,"ws_sched_available":true,"server_sched_active":true,"ota":true,"tunnel":false,"stat_ssid":"MIKASITA2.4"}} [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬆ ["clear_listeners"] [2/13/2022, 5:07:26 PM] [Airzone] Cleaned cached installationId and webserverId [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬇ [null] [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬆ ["listen_installation", "62068b163ac05cac65822ddf"] [2/13/2022, 5:07:26 PM] [Onkyo] Event - Input changed: video6 [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬇ [null] [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬇ ["DEVICE_STATE",{"device_id":"61fa39b3b0567ee7b0f1a168","device_type":"aidoo","ws_id":"28:CC:FF:80:9E:AD","status":{"isConnected":true,"speed_type":0,"step":{"fah":1,"celsius":1},"ws_sched_calendar_available":false,"ws_sched_available":true,"range_air_max":{"celsius":30,"fah":86},"range_air_min":{"celsius":15,"fah":59},"machineready":true,"errors":[],"warnings":[],"aqpm1_0":null,"aqpm2_5":null,"aqpm10":null,"aq_active":null,"aq_quality":null,"aq_mode_values":[],"manufacturer":{"_id":4,"text":"Fujitsu 3 wires"},"power":false,"active":true,"mode_available":[1,2,3,4,5],"mode":4,"setpoint_air_cool":{"celsius":25,"fah":77},"setpoint_air_heat":{"celsius":25,"fah":77},"speed_conf":6,"speed_values":[0,2,3,4,6],"setpoint_air_auto":{"celsius":25,"fah":77},"setpoint_air_dry":{"celsius":25,"fah":77},"range_sp_cool_air_min":{"celsius":18,"fah":64},"range_sp_cool_air_max":{"celsius":30,"fah":86},"range_sp_hot_air_min":{"celsius":16,"fah":61},"range_sp_hot_air_max":{"celsius":30,"fah":86},"range_sp_dry_air_min":{"celsius":18,"fah":64},"range_sp_dry_air_max":{"celsius":30,"fah":86},"range_sp_auto_air_min":{"celsius":18,"fah":64},"range_sp_auto_air_max":{"celsius":30,"fah":86},"pspeed":100,"block_fantemp":true,"block_autospeed":false,"block_drytemp":false,"block_dryspeed":true,"block_autotemp":false,"setpoint_air_vent":{"celsius":null,"fah":null}},"ws_type":"ws_aidoo","units":0,"sched_conf":{"step":{"fah":1,"celsius":1},"aq_mode_values":[],"mode_available":[1,2,3,4,5],"speed_values":[0,2,3,4,6],"speed_type":0,"range_sp_cool_air_min":{"celsius":18,"fah":64},"range_sp_cool_air_max":{"celsius":30,"fah":86},"range_sp_hot_air_min":{"celsius":16,"fah":61},"range_sp_hot_air_max":{"celsius":30,"fah":86},"range_sp_dry_air_min":{"celsius":18,"fah":64},"range_sp_dry_air_max":{"celsius":30,"fah":86},"range_sp_auto_air_min":{"celsius":18,"fah":64},"range_sp_auto_air_max":{"celsius":30,"fah":86}}}] [2/13/2022, 5:07:26 PM] [Airzone] [Websocket] ⬇ ["DEVICE_STATE_END"] [2/13/2022, 5:07:26 PM] [Airzone] The installation status was fully received [2/13/2022, 5:07:26 PM] [Airzone] [Fetch] ⬆ Request: GET https://m.airzonecloud.com/api/v1/installations/62068b163ac05cac65822ddf [2/13/2022, 5:07:27 PM] [Airzone] [Fetch] ⬇ Response: {"_id":"62068b163ac05cac65822de0","plugins":{"schedules":{"calendar_ws_ids":[],"activated":true,"week_ws_ids":["28:CC:FF:80:9E:AD"],"acs_ws_ids":[]}},"installation_id":"62068b163ac05cac65822ddf","location_id":"60f14ebc061c028018122b4d","name":"Casa","icon":1,"color":4,"groups":[{"group_id":"62068b173ac05cac65822de1","name":"","devices":[{"device_id":"61fa39b3b0567ee7b0f1a168","type":"aidoo","ws_id":"28:CC:FF:80:9E:AD","meta":{"units":0}}]}],"scenes":[],"added_at":"2022-02-11T16:13:10.812Z","access_type":"admin","user_id":"6206899fb1b4f26a01de7e8f"} [2/13/2022, 5:07:27 PM] [Airzone] Group: <62068b173ac05cac65822de1> [2/13/2022, 5:08:17 PM] [Airzone] [Websocket] ⬇ ["auth","authenticate"] [2/13/2022, 5:08:17 PM] [Airzone] [Websocket] ⬆ ["eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc"] [2/13/2022, 5:08:17 PM] [Airzone] authenticate event, replied with a valid token [2/13/2022, 5:08:58 PM] [Airzone] [Websocket] ⬇ ["WEBSERVER_UPDATES.28:CC:FF:80:9E:AD",{"ws_id":"28:CC:FF:80:9E:AD","change":{"status":{"stat_rssi":-49,"stat_quality":4}}}] [2/13/2022, 5:09:17 PM] [Airzone] [Websocket] ⬇ ["auth","authenticate"] [2/13/2022, 5:09:17 PM] [Airzone] [Websocket] ⬆ ["eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc"] [2/13/2022, 5:09:17 PM] [Airzone] authenticate event, replied with a valid token [2/13/2022, 5:10:17 PM] [Airzone] [Websocket] ⬇ ["auth","authenticate"] [2/13/2022, 5:10:17 PM] [Airzone] [Websocket] ⬆ ["eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJTZU9WNkhkNUtMVVIxVXI3eXE3SGJPZGczREtnTkZtbiIsInRva2VuSWQiOiJhYmJmZjE1ZS1mOGI2LTQ1YzktODVmZS1lODM0MjhmNzU1MWUiLCJzY29wZXMiOnsiYXoiOiI2MjA2ODliNzZiNTlmM2MwNzhiOGM4YjMifSwianRpIjoiNTJkZWIzODEtMWE3YS00NTE1LWI3MjQtOTY3NjE1M2E5ODAxIiwiaWF0IjoxNjQ0NzY4NDQ1LCJleHAiOjE2NDQ5NDEyNDV9.Q4IGchz8g7rCXOeV9S9dl7WlmCdlgmcUEka77fm1UFc"] [2/13/2022, 5:10:17 PM] [Airzone] authenticate event, replied with a valid token

In homebridge accessories no new AirZone device appears:

image

If you can help me I thank you very much!!

BLRPERES commented 2 years ago

Aidoo devices are not supported yet

BertoTavira commented 2 years ago

Same happened to me and all went ok as soon I set it as a child bridge

jalacain commented 2 years ago

Thank BertoTavira, I have tried what you mention (child bridge) but still nothing appears in my homekit. I have added the new bridge in homekit, but ...Everything remains the same :(

Can you give me some additional information?

image

fjhorrillo commented 2 years ago

Hello @jalacain, @BertoTavira, as @BLRPERES mentioned, Aidoo devices aren’t supported yet, as soon as I have time I will include it. Thanks for your collaboration

jalacain commented 2 years ago

Ok FjHorrillo, great job. I don't know if it's a big effort to adapt Aidoo device, but congratulations, great job. We eagerly await an update to enable Aidoo devices.

Thx

fjhorrillo commented 2 years ago

Added support for Aidoo in version 0.3.0