RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
318 stars 106 forks source link

Can't connect to my A/C #195

Open riccardobobbio opened 4 months ago

riccardobobbio commented 4 months ago

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:

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!

toughvj commented 4 months ago

add encryption_version: 2 to yaml

riccardobobbio commented 4 months ago

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 commented 3 months ago

Can someone have ideas?

RobHofmann commented 3 months ago

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

riccardobobbio commented 3 months ago

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

Srdiv commented 1 month ago

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

bugac commented 4 weeks ago

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

kielczu commented 4 weeks ago

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!