core icon indicating copy to clipboard operation
core copied to clipboard

Gree climate errors after the update

Open OleksandrChekmez opened this issue 1 year ago • 1 comments

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

OleksandrChekmez avatar Aug 28 '24 08:08 OleksandrChekmez

Hey there @cmroche, mind taking a look at this issue as it has been labeled with an integration (gree) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of gree can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign gree Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


gree documentation gree source (message by IssueLinks)

home-assistant[bot] avatar Aug 28 '24 08:08 home-assistant[bot]

same error here repeated daily

2024-08-28 07:00:01.045 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 Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))],

KeyError: 'val'
2024-08-28 22:18:06.882 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'
2024-08-28 22:18:09.023 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'

tammeryousef1006 avatar Aug 29 '24 02:08 tammeryousef1006

I am having the same issue.

Kind regards

DioCrafts avatar Sep 04 '24 20:09 DioCrafts

I think I have similar issue since the 2024.8 version. The gree add-on doesn't work. I fixed the IP in the discovery.py. There is the error : 2024-09-05 09:40:11.418 DEBUG (MainThread) [homeassistant.components.gree] Scanning network for Gree devices 2024-09-05 09:40:11.418 INFO (MainThread) [greeclimate.discovery] Scanning for Gree devices ... 2024-09-05 09:40:11.419 DEBUG (MainThread) [greeclimate.discovery] Listening for devices on 255.255.255.255 2024-09-05 09:40:11.421 DEBUG (MainThread) [greeclimate.network] Sending packet: -> {"t": "scan"} 2024-09-05 09:40:11.437 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1238, in _read_ready self._protocol.datagram_received(data, addr) File "/usr/local/lib/python3.12/site-packages/greeclimate/network.py", line 136, in datagram_received obj["pack"] = self._cipher.decrypt(obj["pack"]) ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'decrypt' With Home Assistant 2024.7, everything works well. Thanks

SirTerrific avatar Sep 05 '24 13:09 SirTerrific

+1 I have the same error in debug

2024-09-08 18:53:16.796 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 Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))], ~~~~~~~~~^^^^^^^ KeyError: 'val' 2024-09-08 18:53:18.848 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 Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))], ~~~~~~~~~^^^^^^^ KeyError: 'val'

bradleewright avatar Sep 10 '24 14:09 bradleewright

check this solution to update temperature

https://github.com/home-assistant/core/issues/124007#issuecomment-2341794691

akhunduqji avatar Sep 10 '24 19:09 akhunduqji

Is there any progress with fix?

drob3k avatar Sep 24 '24 08:09 drob3k

@cmroche it seems that depending on the firmware version, not all result responses contain the 'val' key

hindenbyte avatar Nov 30 '24 16:11 hindenbyte

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

This issue still hasn't been fixed

hindenbyte avatar Feb 28 '25 17:02 hindenbyte

there is PR for this issue waiting to merge from october 2024 :/ https://github.com/cmroche/greeclimate/pull/110

about temperature update it should be fixed by #139469 when HA pool data from AC (each minute)

filipagh avatar Mar 01 '25 12:03 filipagh

I'm having the same issue with a fully-updated system. Whose responsibility is it to merge the PR that @filipagh mentioned above?

mattbrown319 avatar Apr 18 '25 00:04 mattbrown319

When will the PR that @filipagh mentioned be merged? Having the same error

jjfs127 avatar May 02 '25 14:05 jjfs127

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

The issue is still open

OleksandrChekmez avatar Aug 01 '25 06:08 OleksandrChekmez

same error here repeated daily

2024-08-28 07:00:01.045 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 Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))],

KeyError: 'val'
2024-08-28 22:18:06.882 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'
2024-08-28 22:18:09.023 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'

mine solved

tammeryousef1006 avatar Aug 03 '25 06:08 tammeryousef1006

same error here repeated daily 2024-08-28 07:00:01.045 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 Response.RESULT.value: lambda o, a: [dict(zip(o["pack"]["opt"], o["pack"]["val"]))],

KeyError: 'val'
2024-08-28 22:18:06.882 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'
2024-08-28 22:18:09.023 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'

mine solved

How did u solve this? From what I can tell the PR hasn't been merged.

jjfs127 avatar Aug 03 '25 12:08 jjfs127

For couple of days I'm getting this error, as well:

Logger: greeclimate.network
Sursa: /usr/local/lib/python3.13/site-packages/greeclimate/network.py:240
Prima dată când a avut loc: 11:12:48 (3 occurrences)
Ultima înregistrare: 11:27:22

Error while handling packet
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/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.13/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'

Any update on it? I understand that it is already a PR which waits to be merged?

Thanks

Edit

@tammeryousef1006 , how did you solved it? I'm very curious!! 🤔

valimaties avatar Sep 12 '25 09:09 valimaties