8000 Gree climate errors after the update · Issue #124759 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Gree climate errors after the update #124759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OleksandrChekmez opened this issue Aug 28, 2024 · 13 comments
Open

Gree climate errors after the update #124759

OleksandrChekmez opened this issue Aug 28, 2024 · 13 comments

Comments

@OleksandrChekmez
Copy link

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

@home-assistant
Copy link

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)

@tammeryousef1006
Copy link

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'

@DioCrafts
Copy link

I am having the same issue.

Kind regards

@SirTerrific
Copy link

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

@bradleewright
Copy link

+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'

@akhunduqji
Copy link

check this solution to update temperature

#124007 (comment)

@drob3k
Copy link
drob3k commented Sep 24, 2024

Is there any progress with fix?

@hindenbyte
Copy link

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

@issue-triage-workflows
Copy link

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.

@hindenbyte
Copy link

This issue still hasn't been fixed

@filipagh
Copy link
Contributor
filipagh commented Mar 1, 2025

there is PR for this issue waiting to merge from october 2024 :/
cmroche/greeclimate#110

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

@mattbrown319
Copy link

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

@jjfs127
Copy link
jjfs127 commented May 2, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0