Gree climate errors after the update
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
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 closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign greeRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove 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)
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
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'
I am having the same issue.
Kind regards
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
+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
check this solution to update temperature
https://github.com/home-assistant/core/issues/124007#issuecomment-2341794691
Is there any progress with fix?
@cmroche it seems that depending on the firmware version, not all result responses contain the 'val' key
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
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)
I'm having the same issue with a fully-updated system. Whose responsibility is it to merge the PR that @filipagh mentioned above?
When will the PR that @filipagh mentioned be merged? Having the same error
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
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
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.
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!! 🤔