Skip to content

Gree climate errors after the update #124759

@OleksandrChekmez

Description

@OleksandrChekmez

The problem

Every time I execute any action on my AC I get error in logs. In addition to this, it looks like AC temperature is not updated.

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Gree Climate

Link to integration documentation on our website

https://www.home-assistant.io/integrations/gree/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-28 11:17:36.618 DEBUG (MainThread) [greeclimate.cipher] Decrypted data: {"t":"res","mac":"9424b84e5556","p":[1],"opt":["Pow"],"r":200}
2024-08-28 11:17:36.618 DEBUG (MainThread) [greeclimate.network] Received packet from 192.168.0.208:
<- {"t": "pack", "i": 0, "uid": 0, "cid": "9424b84e5556", "tcid": "app", "pack": {"t": "res", "mac": "9424b84e5556", "p": [1], "opt": ["Pow"], "r": 200}}
2024-08-28 11:17:36.618 ERROR (MainThread) [greeclimate.network] Error while handling packet
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/greeclimate/network.py", line 235, in packet_received
    param = params.get(resp, lambda o, a: (o, a))(obj, addr)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/greeclimate/network.py", line 225, in <lambda>
    Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))],
                                                                    ~~~~~~~~~^^^^^^^
KeyError: 'val'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions