HomeAssistant-GreeClimateComponent icon indicating copy to clipboard operation
HomeAssistant-GreeClimateComponent copied to clipboard

Can't connect to my A/C

Open riccardobobbio opened this issue 1 year ago • 6 comments

I have a Gree A/C (XE7A-24/HC) but i'm unable to connect to him.

Using Gree A/C ver. 2.14.0 Gree Firmware version V1.38 (the app says that is the last version)

This is my code il configuration.yaml

`climate:

  • platform: gree name: Gree AC host: 192.168.1.199 port: 7000 mac: '94:24:B8:F2:C8:1D' target_temp_step: 1 temp_sensor: sensor.t_h_openspace_temperature lights: input_boolean.gree_ac_lights xfan: input_boolean.gree_ac_xfan health: input_boolean.gree_ac_health sleep: input_boolean.gree_ac_sleep powersave: input_boolean.gree_ac_powersave

The A/C is currently configured on my home wifi with 2.4ghz, with statit IP and already connecter to the cloud and Gree APP.

I have no error in yaml files.

I'm doing something wrong? Thanks!

riccardobobbio avatar Jul 16 '24 20:07 riccardobobbio

add encryption_version: 2 to yaml

toughvj avatar Jul 17 '24 04:07 toughvj

add encryption_version: 2 to yaml

I have tryed it pic3

same bad results.

I have the Entity Gree AC but is "unaviable" pic1 pic2

This is my log:

`2024-07-17 21:07:24.772 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-07-17 21:07:24.773 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-17 21:07:24.773 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-07-17 21:07:24.773 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-17 21:07:24.773 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-17 21:07:24.774 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-17 21:07:24.774 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-17 21:07:24.774 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-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2024-07-17 21:07:24.774 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2024-07-17 21:07:24.775 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-17 21:07:24.775 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-07-17 21:07:24.776 INFO (MainThread) [custom_components.gree.climate] should_poll()
2024-07-17 21:07:24.794 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 10.06 seconds


2024-07-17 21:11:24.781 INFO (MainThread) [custom_components.gree.climate] should_poll()
2024-07-17 21:11:24.783 INFO (SyncWorker_53) [custom_components.gree.climate] update()
2024-07-17 21:11:24.783 INFO (SyncWorker_53) [custom_components.gree.climate] Retrieving HVAC encryption key
2024-07-17 21:11:24.788 INFO (SyncWorker_53) [custom_components.gree.climate] Fetching(192.168.1.199, 7000, 10, {"cid": "app","i": 1,"pack": "Jtod3XIt89Lqss6DOHETBcx5uYcAzgfkbQU3H+DJn/zDIm9Xi1M9ctnx9aCGHseEwf35XMKtIPQDq97Iev6J","t":"pack","tcid":"9424b8f2c81d","uid": 0, "tag" : "k5f/vfXAUlEa52x+nxsr1w=="})
2024-07-17 21:11:34.782 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.gree_ac is taking over 10 seconds
2024-07-17 21:11:34.800 INFO (SyncWorker_53) [custom_components.gree.climate] Error getting device encryption key!
2024-07-17 21:11:34.803 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-07-17 21:11:34.804 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-17 21:11:34.804 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-07-17 21:11:34.804 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-17 21:11:34.805 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-17 21:11:34.805 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-17 21:11:34.805 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-17 21:11:34.805 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-low position', 'Fixed in the lowest position', 'Swing in the downmost region', 'Swing in the middle-low region', 'Swing in the middle region', 'Swing in the middle-up region', 'Swing in the upmost region']
2024-07-17 21:11:34.805 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2024-07-17 21:11:34.806 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-17 21:11:34.806 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425`

I Think the problem is:

INFO (SyncWorker_53) [custom_components.gree.climate] Error getting device encryption key!

riccardobobbio avatar Jul 17 '24 19:07 riccardobobbio

Can someone have ideas?

riccardobobbio avatar Aug 03 '24 22:08 riccardobobbio

It appears your device is incompatible. Maybe you can pass the encryption key?

RobHofmann avatar Aug 04 '24 12:08 RobHofmann

It appears your device is incompatible. Maybe you can pass the encryption key?

The model is XE7A-24/HC I don't have the Encryption Key, i don't know hot to obain it

riccardobobbio avatar Aug 04 '24 14:08 riccardobobbio

Hi , try this https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent/issues/214#issuecomment-2420559353

Srdiv avatar Oct 17 '24 21:10 Srdiv

It appears your device is incompatible. Maybe you can pass the encryption key?

The model is XE7A-24/HC I don't have the Encryption Key, i don't know hot to obain it

did you solved yours problem? i have exactly the same problem. Device unavailable XE7A-24/HC

bugac avatar Oct 27 '24 12:10 bugac

And i have the exact same problem on XE7A-24/HC. Two devices added ok. Third device fails to obtain encryption key.

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!

kielczu avatar Oct 27 '24 15:10 kielczu

Closing stale issue. Feel free to reopen if still relevant.

RobHofmann avatar Jun 09 '25 14:06 RobHofmann

still cant obtain encryption keys with newer devices

bugac avatar Jun 09 '25 14:06 bugac