aivus / com.gree

Control your Gree, Cooper&Hunter HVAC devices using Athom Homey
https://apps.athom.com/app/com.gree
GNU General Public License v3.0
7 stars 4 forks source link

Some devices cannot connect to the app #85

Open aivus opened 1 year ago

aivus commented 1 year ago

Could be caused by using different encryption key in new firmwares. See https://github.com/tomikaa87/gree-remote/issues/36

logs:

>>> cid:502cc6b01e79: 11/24/2022, 12:47:02 PM
SOCKET.SEND { t: 'scan' }
>>> cid:502cc6b01e79: 11/24/2022, 12:47:02 PM
IN.MSG {
  t: 'pack',
  i: 1,
  uid: 0,
  cid: '502cc6b01e79',
  tcid: 'app',
  pack: 'LP24Ek0OaYogxs3iQLjL4PD+1uB4aq/dGgEbn8pR7V1YT1PXPBDouOPiWHaG4G8lz22fUZtUbkblUYF5BzlKDV9xeQzMlsaP4RKBtrnsDrMmwHkrcyvRywIl52ZuUW8EzlDvl347hXSddiQKR6Iweu80HbfgK3MNVtBb+mRtQFyio7f3xDWMYEIeftEUXGX8V+aYzyhrw8Yt6UvgVWxkZdHmnfSQ8JdBj+nhexr6JgstnoBYFa+c0wD5j9MjNjAT'
}
>>> cid:502cc6b01e79: 11/24/2022, 12:47:02 PM
IN.MSG.UNPACK {
  t: 'dev',
  cid: '502cc6b01e79',
  bc: 'gree',
  brand: 'gree',
  catalog: 'gree',
  mac: '502cc6b01e79',
  mid: '9300',
  model: 'gree',
  name: '',
  series: 'gree',
  vender: '1',
  ver: 'V5.0.0.0',
  lock: 0
}
>>> cid:502cc6b01e79: 11/24/2022, 12:47:02 PM
SOCKET.SEND {
  cid: 'app',
  i: 1,
  t: 'pack',
  uid: 0,
  pack: 'DYtM4OpY0Xlx+jChSGr01CUUCFjuF79CQPESynbXOcqj9mrs/0p7GUTdWxmNaBUt'
}
>>> cid:502cc6b01e79: 11/24/2022, 12:47:05 PM
SOCKET Unable to connect. Retrying...
aivus commented 2 weeks ago

Starting from the AC firmware v1.21, module uses another way of the encrypting to interact in local network

Additional references:

patrykwozinski commented 1 week ago

Hey, I have exactly the same issue. Today I've installed 2 Gree Amber Prestige ACs, both connected to my 2.4G network. They are searchable via Gree app, but in Homey I see only info about "Your HVAC went Offline". Of course, I have the latest firmware - so it sounds like this problem with encryption.

dsaw703 commented 4 days ago

Confirmed for me as well with 1.21 firmware.

Is there anything I could do to assist,