fjhorrillo / homebridge-airzone-cloud

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

WS updates not updating this.device.status #32

Open mtmcgrew opened 1 year ago

mtmcgrew commented 1 year ago

Describe The Bug: Updates received via the websocket are not reflected in this.device.status. For example, if i was to make a change to the device on the control panel it will not be reflected in homekit.

To Reproduce: Change the AC device via the local device panel (change temp, turn off, etc) then check in homekit and the status will not be reflected.

Expected behavior: If I turn off the device it is reflected in my Home app.

Logs: Below are logs of a WS change event, along with some debugging information I put in. Notice how "power" is False.

[12/04/2023, 22:49:14] [AirzoneCloud] [Websocket] ⬇ ["DEVICES_UPDATES.28:<redacted>",{"device_id":"<redacted>","ws_id":"<redacted>","change":{"status":{"power":false,"aq_quality":null,"aqpm1_0":null,"aqpm2_5":null,"aqpm10":null,"active":false}}}]
[12/04/2023, 22:49:14] [AirzoneCloud] false: false {"power":false,"aq_quality":null,"aqpm1_0":null,"aqpm2_5":null,"aqpm10":null,"active":false} DEBUG 
[12/04/2023, 22:49:14] [AirzoneCloud] {"units":0,"mode":2,"mode_available":[2,4,5],"step":{"fah":1,"celsius":1},"power":false,"setpoint_air_cool":{"celsius":20,"fah":68},"setpoint_air_heat":{"celsius":20,"fah":68},"setpoint_air_auto":{"celsius":20,"fah":68},"local_temp":{"celsius":23.3,"fah":74}} DEBUG 

A few seconds later the device status is printed out, notice how "power" is True.

[12/04/2023, 22:49:16] [AirzoneCloud] Bedroom: Status -> {"isConnected":true,"connection_date":"2023-04-12T18:41:04.623Z","ws_connected":true,"machineready":true,"errors":[],"timer":{"value":0,"count":0,"action":{}},"timer_values":[0,30,60,90],"fallback_active":false,"warnings":[],"mode":2,"auto_mode":null,"active":true,"mode_available":[2,4,5],"step":{"fah":1,"celsius":1},"tt_units":1,"range_sp_cool_air_max":{"celsius":32,"fah":90},"range_sp_cool_air_min":{"celsius":15.5,"fah":60},"manufacturer":{"_id":8,"text":"DA1"},"power":true,"aq_quality":null,"aqpm1_0":null,"aqpm2_5":null,"aqpm10":null,"setpoint_air_cool":{"celsius":20,"fah":68},"setpoint_air_heat":{"celsius":20,"fah":68},"setpoint_air_auto":{"celsius":20,"fah":68},"range_sp_hot_air_max":{"celsius":32,"fah":90},"range_sp_hot_air_min":{"celsius":15.5,"fah":60},"tai_temp":{"celsius":null,"fah":null},"local_temp":{"celsius":23.3,"fah":74},"range_sp_auto_air_max":{"celsius":32,"fah":90},"range_sp_auto_air_min":{"celsius":15.5,"fah":60},"speed_values":[2,4,6],"speed_type":0,"speed_conf":4,"ws_sched_calendar_available":false,"ws_sched_available":true,"range_air_max":{"celsius":30,"fah":86},"range_air_min":{"celsius":15,"fah":59},"pspeed":66,"block_fantemp":true,"block_drytemp":true,"block_dryspeed":true,"block_autotemp":false,"block_autospeed":false,"name":"Bedroom","units":1}

Plugin Config:

{
    "name": "AirzoneCloud",
    "system": "https://m.airzonecloud.com",
    "login": {
        "email": "<redacted>",
        "password": "<redacted>"
    },
    "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",
    "_bridge": {
        "username": "<redacted>",
        "port": 59769
    },
    "platform": "AirzoneCloud"
}

Screenshots:

Environment:

fjhorrillo commented 6 months ago

Hello, could you check it with the last version? thanks