rapi3 / HA-OS-Gree

Gree climate integration that work from another LAN segment / you can specify AC IP address
10 stars 1 forks source link

Unable to connect AC even on IP #2

Open dirkronsmans opened 2 weeks ago

dirkronsmans commented 2 weeks ago
2024-10-08 15:25:37.614 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-10-08 15:25:37.615 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gree which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-10-08 15:29:01.457 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 107, in datagram_received
    obj["pack"] = DeviceProtocol2.decrypt_payload(obj["pack"], key)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/greeclimate/network.py", line 131, in decrypt_payload
    decrypted = cipher.decrypt(decoded).decode()
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/Crypto/Cipher/_mode_ecb.py", line 196, in decrypt
    raise ValueError("Data must be aligned to block boundary in ECB mode")
ValueError: Data must be aligned to block boundary in ECB mode
2024-10-08 15:30:42.549 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 107, in datagram_received
    obj["pack"] = DeviceProtocol2.decrypt_payload(obj["pack"], key)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/greeclimate/network.py", line 131, in decrypt_payload
    decrypted = cipher.decrypt(decoded).decode()
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/Crypto/Cipher/_mode_ecb.py", line 196, in decrypt
    raise ValueError("Data must be aligned to block boundary in ECB mode")
ValueError: Data must be aligned to block boundary in ECB mode
rapi3 commented 2 weeks ago

Hi, I am using it without any problem with version:

Core 2024.3.3 Supervisor 2024.10.0 Operating System 12.3 Frontend 20240307.0

I think they changed a lot in the new version and the integration needs an update which I can't do right now.