home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.45k stars 29.38k forks source link

My Viessmann AC that I control using Gree+ won't get detected inside HA. #89247

Closed kubo6472 closed 10 months ago

kubo6472 commented 1 year ago

The problem

It won't recognize my AC. I use https://play.google.com/store/apps/details?id=com.gree.greeplus&gl=US this app to manage it, also I have it inside Google Home. The HA integration just says: image

What version of Home Assistant Core has the issue?

20230202.0 - latest

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Gree Climate

Link to integration documentation on our website

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

home-assistant[bot] commented 1 year ago

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.

(message by CodeOwnersMention)


gree documentation gree source (message by IssueLinks)

jodewee commented 1 year ago

Hi there, hi @cmroche I have the same issue over here. Saunier duval ac's (spinoff gree). Visible in the gree+ app, but get the same error.

Log error: Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1035, in _read_ready self._protocol.datagram_received(data, addr) File "/usr/local/lib/python3.10/site-packages/greeclimate/network.py", line 107, in datagram_received obj["pack"] = DeviceProtocol2.decrypt_payload(obj["pack"], key) File "/usr/local/lib/python3.10/site-packages/greeclimate/network.py", line 131, in decrypt_payload decrypted = cipher.decrypt(decoded).decode() File "/usr/local/lib/python3.10/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

cmroche commented 1 year ago

Looks like encryption keys/mode has changed. Consider these models/firmware unsupported until someone can identify the keys and add it to open source.

kubo6472 commented 1 year ago

Looks like encryption keys/mode has changed. Consider these models/firmware unsupported until someone can identify the keys and add it to open source.

I'm a bit too curious, how does that process normally go? Like I have the AC, I have the app(s) that work with it, I have a computer with putty on in and friends who are capable of disassembling the unit, shall that need occur.

cmroche commented 1 year ago

@kubo6472 The original encryption key was extracted from the Android APK directly, there's a new key being used but from what I can tell through GitHUB no one has been able to identify what that key is yet. The greeremote project is likely a good source to follow this effort, there was an issue created there some time ago now about it.

issue-triage-workflows[bot] commented 1 year ago

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.

ayncron commented 1 year ago

No please, dont close it. The issue is still present. I watch this issue everyday begging for an update.

malllin commented 1 year ago

@cmroche anything changed since your last comment on this? I also would like to use my Viessmann AC with this integration.

issue-triage-workflows[bot] commented 10 months ago

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.