Skip to content
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

Cannot add one of three devices. Error getting device encryption key! #216

Open
kielczu opened this issue Oct 27, 2024 · 4 comments
Open

Comments

@kielczu
Copy link

kielczu commented Oct 27, 2024

I have the same problem with XE7A-24/HC. I have added two devices succesfully, but the third one is always unavailable.

Gree A/C version 2.14.2.
Wifi version v1.38.

These are my settings:

platform: gree
name: GREE-S1
host: 192.168.8.221
port: 7000
mac: '50:2C:C6:DF:73:21'
target_temp_step: 1
platform: gree
name: GREE-S3
host: 192.168.8.223
port: 7000
mac: 'C0:39:37:0F:E9:A3'
target_temp_step: 1
encryption_version: 2
platform: gree
name: GREE-S2
host: 192.168.8.222
port: 7000
mac: '94:24:B8:01:7A:44'
target_temp_step: 1
And the log for GREE-S3 is always:
2024-10-27 14:41:44.590 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2024-10-27 14:41:44.590 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2024-10-27 14:41:44.590 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2024-10-27 14:41:44.590 INFO (MainThread) [custom_components.gree.climate] name(): GREE-S3
2024-10-27 14:41:44.590 INFO (MainThread) [custom_components.gree.climate] name(): GREE-S3
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): ..C
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] hvac_modes(): [<HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>, <HVACMode.HEAT: 'heat'>, <HVACMode.OFF: 'off'>]
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-10-27 14:41:44.591 INFO (MainThread) [custom_components.gree.climate] swing_modes(): ['Default', 'Swing in full range', 'Fixed in the upmost position', 'Fixed in the middle-up position', 'Fixed in the middle position', 'Fixed in the middle-
2024-10-27 14:41:44.592 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-10-27 14:41:44.592 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2024-10-27 14:41:44.592 INFO (MainThread) [custom_components.gree.climate] update()
2024-10-27 14:41:44.592 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2024-10-27 14:41:44.593 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.8.223, 7000, 10, {"cid": "app","i": 1,"pack": "cF75QLiR1N9+XupJ+VKg4Z3xM9Wmdxq80T4WdlHY+7ej9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"c039370fe9a3","uid":
2024-10-27 14:41:44.593 INFO (MainThread) [custom_components.gree.climate] 3
2024-10-27 14:41:54.604 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!

Please assist.

@kielczu kielczu changed the title Cannot Cannot add one of three devices. Error getting device encryption key! Oct 27, 2024
@bugac
Copy link

bugac commented Oct 27, 2024

i cant add even one device...
2024-10-27 18:56:44.173 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!
how to get it in windows or iphone?

@kielczu
Copy link
Author

kielczu commented Oct 27, 2024 via email

@bugac
Copy link

bugac commented Oct 27, 2024

my gree unit are new, seller mentioned, that it is very new model, just cooked in china factory...
also, borrowed android phone, cant find "key" ir logcat

`10-27 20:38:43.266 23333 23333 I ##### : onNativeToJsMessageAvailable evaluateJavascript js=cordova.callbackFromNative('PluginInterface572233016',true,1,["{"data":{"bc":"","AppTimer":0,"ver":"V3.2.M","hid":"362001065634+U-WB04BRT13V1.38.bin","host":"hk.dis.gree.com","name":"","mid":"6400","vender":"","mac":"9424b8a4ca56","Pow":0,"GetEr":0,"Mod":3,"WdSpd":0,"SwUpDn":0,"SwingLfRig":0,"TemUn":0,"SetTem":24,"Add0.5":0,"Add0.1":0,"SetDeciTem":240,"CoolSvStTemMin":24,"CoolSvStTemMinD":240,"HumiSvStTemMin":16,"HumiSvStTemMinD":160,"HeatSvStTemMax":30,"HeatSvStTemMaxD":300,"SetCoolHumi":0,"Lig":1,"Health":0,"Blo":0,"AidHeat":1,"SvSt":0,"SwhSlp":0,"Quiet":0,"AirLevel":10,"Air":0,"GoOut":0,"LowDeHumi":0,"AutoClean":0,"CleanState":0,"TemBody":0,"HumiEnable":0,"AutoSetTemEn":1,"HalfTemEn":0,"CleanEn":1,"FClTime":0,"PlProg":0,"FClRes":0,"CleanTime":100,"IDURunMod":1,"ExtraMod":0,"IDUModSet":0,"MasSubEn":1,"MasSub":1,"Can1MasSubEn":1,"Can1MasSub":0,"LigEn":0,"Lamp":0,"Heat3DSvStTemMax":0,"Heat3DSvStTemMaxD":0,"Heat2SvStTemMax":0,"Heat2SvStTemMaxD":0,"Humi2SvStTemMin":0,"UaeEn":0,"Idemand":0,"DREDEn":1,"DRED":0,"NewGB":0,"InSeries":6,"MSysStatus":3,"InTem":61,"OutTem":105,"InHumi":0,"ElcEn":0,"RefLeak":0,"ErrType":0,"TemRec":0,"ModelType":"0","header":"ZmcAipQkuKTKVgAAAAAAAJQkuKTKVgAAZAAAAAAABgAYChsUJikC","ReportClientID":"3_2_9bcf7f88aed1"},"deviceState":4,"status":true}"],true);

10-27 20:35:04.890 657 2389 I BufferQueueProducer: com.gree.ewpesmart/io.gree.activity.home.HomeActivity#0 queueBuffer: fps=0.25 dur=8034.43 max=8007.79 min=26.64
10-27 20:35:04.892 23333 23333 E Plugin_6400: origin mac=9424b8a4ca5600@9424b8a4ca56
10-27 20:35:04.893 23333 23333 E Plugin_6400: position:14||mac=9424b8a4ca5600||mainMac=9424b8a4ca56
10-27 20:35:04.896 941 1031 D AAL : DRECurveCalculation: BLKNUM = 16 8
10-27 20:35:04.897 23333 23333 E Plugin_6400: setStates:[0.0,3.0,0.0,24.0,0.0,100.0,0.0,24.0,30.0,16.0,0.0,0.0,1.0,240.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,6.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,240.0,300.0,160.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0]
10-27 20:35:04.897 23333 23333 E Plugin_6400: before prase:json= [0.0,3.0,0.0,24.0,0.0,100.0,0.0,24.0,30.0,16.0,0.0,0.0,1.0,240.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,6.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,240.0,300.0,160.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0]
10-27 20:35:04.900 23333 23333 E Plugin_6400: after prase: CurrentObj= {"Add0_1":0,"Air":0,"AppTimer":0,"AutoClean":0,"AutoSetTemEn":1,"Blo":0,"CleanEn":1,"CleanState":0,"CleanTime":100,"CoolSvStTemMin":24,"CoolSvStTemMinD":240,"DRED":0,"DREDEn":1,"ErrType":0,"ExtraMod":0,"GoOut":0,"HalfTemEn":0,"Heat2SvStTemMax":0,"Heat2SvStTemMaxD":0,"Heat3DSvStTemMax":0,"Heat3DSvStTemMaxD":0,"HeatSvStTemMax":30,"HeatSvStTemMaxD":300,"HumiEnable":0,"HumiSvStTemMin":16,"HumiSvStTemMinD":160,"Idemand":0,"InSeries":6,"Lamp":0,"LigEn":0,"LowDeHumi":0,"MasSub":1,"Mod":3,"Pow":0,"Quiet":0,"RefLeak":0,"SetCoolHumi":0,"SetDeciTem":240,"SetTem":24,"SvSt":0,"SwUpDn":0,"SwhSlp":0,"SwingLfRig":0,"TemRec":0,"TemUn":0,"UaeEn":0,"WdSpd":0}
10-27 20:35:04.907 543 543 I hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:1.289784,dur:1550.65,max:1358.46,min:192.19
10-27 20:35:04.912 657 657 I SurfaceFlinger: operator()(), mtkRenderCntDebug 4974, screenshot (com.gree.ewpesmart/io.gree.activity.home.HomeActivity#0)

this is all i find from logcat

@kielczu
Copy link
Author

kielczu commented Nov 17, 2024

I have spoken to gree suppor and i found out that there are different versions of the same XE7A-24/HC wifi module. The one which does not work (failed to get encryption key) apparently is a newer one that only uses bluetooth and does not have the legacy hotspot feature.

So it seems when we add the new module using bleetooth the encryption key is different.

Can anybody help with that? Perhaps the default encryption keys must be updated in the code?

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

No branches or pull requests

2 participants