Problem with Gree Conditioner

Hi!
I have a Gree Climate conditioner (compatible with HA) but i have troubles to integrate it.

The conditioner is correctly on my LAN (with static IP) and connected to the GREE+ app, i tryed some to integrate it on HA but without results.

  • The Gree Climate integration is unable to find it on my network
  • Gree A/C via HACS, i tryed to insert the IP and MAC address (i don’t have the uid and encryption_key) but i see only the AC entity and nothing else, i can’t control or ready any states.

Someone have a solution?
Very thanks

I use Gree A/C and there js only ac entity.
Show us what you see.

Thanks for your reply.

That’s my code in config.yaml
1

Thant’s the only entity i have

And it does not work…

Shouldn’t lines below “climate” have just 2 leading blank columns, and not 4?

Yes that’s true, i have corrected it (i hate identation system on HA).
But the problem is always the same, nothing changed.

4

Have you tried changing MAC format from XX-XX to XX:XX? Docu says both can be used depending on model, I have mine configured as XX:XX
Are there any logs in system-logs? Have you tried turning on the debug as documented on the integration page?

I already tryied to change MAC address format, but nothing changed.
I will check later if something on log

Well logs, but debug in the first place could tell you more.

This is debug logs about Gree AC :

2024-07-01 21:12:32.517 INFO (MainThread) [homeassistant.components.climate] Setting up gree.climate
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up temperature sensor: sensor.t_h_openspace_temperature
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up lights entity: input_boolean.gree_ac_lights
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up xfan entity: input_boolean.gree_ac_xfan
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up health entity: input_boolean.gree_ac_health
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up powersave entity: input_boolean.gree_ac_powersave
2024-07-01 21:12:32.518 INFO (MainThread) [custom_components.gree.climate] Setting up sleep entity: input_boolean.gree_ac_sleep
2024-07-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-01 21:12:32.519 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-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-01 21:12:32.519 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-01 21:12:32.520 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-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2024-07-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] update()
2024-07-01 21:12:32.520 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2024-07-01 21:12:32.528 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.1.199, 7000, 10, {"cid": "app","i": 1,"pack": "TxaBrFw9esre/YnXrOF97G1J9e37l7ERT00WUeFyiY+j9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"9424b8f2c81d","uid": 0})


2024-07-01 21:12:42.545 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key!
2024-07-01 21:12:42.545 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:12:42.546 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-01 21:12:42.546 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-01 21:12:42.546 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-01 21:12:42.546 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-01 21:12:42.546 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-01 21:12:42.546 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-01 21:12:42.546 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-01 21:12:42.547 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2024-07-01 21:12:42.547 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-01 21:12:42.547 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:12:42.547 INFO (MainThread) [custom_components.gree.climate] should_poll()

2024-07-01 21:12:57.394 INFO (MainThread) [custom_components.gree.climate] temp_sensor state changed | sensor.t_h_openspace_temperature from None to unavailable
2024-07-01 21:12:57.395 INFO (MainThread) [custom_components.gree.climate] Thermostat updated with changed temp_sensor state | unavailable
2024-07-01 21:12:57.395 INFO (MainThread) [custom_components.gree.climate] Current state temp_sensor: unavailable
2024-07-01 21:12:57.395 INFO (MainThread) [custom_components.gree.climate] temp_sensor state represents_float |unavailable
2024-07-01 21:12:57.399 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor 0x00158d0009439622 humidity from external application Zigbee2MQTT, version: 1.38.0, support URL: https://www.zigbee2mqtt.io
2024-07-01 21:12:57.403 INFO (SyncWorker_28) [custom_components.gree.climate] update()
2024-07-01 21:12:57.403 INFO (SyncWorker_28) [custom_components.gree.climate] Retrieving HVAC encryption key
2024-07-01 21:12:57.403 INFO (SyncWorker_28) [custom_components.gree.climate] Fetching(192.168.1.199, 7000, 10, {"cid": "app","i": 1,"pack": "TxaBrFw9esre/YnXrOF97G1J9e37l7ERT00WUeFyiY+j9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"9424b8f2c81d","uid": 0})

2024-07-01 21:13:02.229 INFO (MainThread) [custom_components.gree.climate] temp_sensor state changed | sensor.t_h_openspace_temperature from unavailable to unknown
2024-07-01 21:13:02.229 INFO (MainThread) [custom_components.gree.climate] Thermostat updated with changed temp_sensor state | unknown
2024-07-01 21:13:02.229 INFO (MainThread) [custom_components.gree.climate] Current state temp_sensor: unknown
2024-07-01 21:13:02.229 INFO (MainThread) [custom_components.gree.climate] temp_sensor state represents_float |unknown
2024-07-01 21:13:02.234 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:13:02.234 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-01 21:13:02.234 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-01 21:13:02.234 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-01 21:13:02.234 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-01 21:13:02.234 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-01 21:13:02.235 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-01 21:13:02.235 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-01 21:13:02.235 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2024-07-01 21:13:02.235 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-01 21:13:02.235 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441

2024-07-01 21:13:17.639 WARNING (MainThread) [homeassistant.components.homekit] Cannot add climate.gree_ac as this would exceed the 150 device limit. Consider using the filter option

2024-07-01 21:13:42.549 INFO (MainThread) [custom_components.gree.climate] should_poll()
2024-07-01 21:13:42.551 INFO (SyncWorker_14) [custom_components.gree.climate] update()
2024-07-01 21:13:42.551 INFO (SyncWorker_14) [custom_components.gree.climate] Retrieving HVAC encryption key
2024-07-01 21:13:42.554 INFO (SyncWorker_14) [custom_components.gree.climate] Fetching(192.168.1.199, 7000, 10, {"cid": "app","i": 1,"pack": "TxaBrFw9esre/YnXrOF97G1J9e37l7ERT00WUeFyiY+j9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"9424b8f2c81d","uid": 0})

2024-07-01 21:13:52.565 INFO (SyncWorker_14) [custom_components.gree.climate] Error getting device encryption key!
2024-07-01 21:13:52.568 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:13:52.568 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-01 21:13:52.569 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-01 21:13:52.569 INFO (MainThread) [custom_components.gree.climate] min_temp(): 16
2024-07-01 21:13:52.569 INFO (MainThread) [custom_components.gree.climate] max_temp(): 30
2024-07-01 21:13:52.569 INFO (MainThread) [custom_components.gree.climate] target_temperature_step(): 1.0
2024-07-01 21:13:52.570 INFO (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet']
2024-07-01 21:13:52.570 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-01 21:13:52.570 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline
2024-07-01 21:13:52.570 INFO (MainThread) [custom_components.gree.climate] name(): Gree AC
2024-07-01 21:13:52.571 INFO (MainThread) [custom_components.gree.climate] supported_features(): 441
2024-07-01 21:13:53.788 INFO (MainThread) [custom_components.gree.climate] temp_sensor state changed | sensor.t_h_openspace_temperature from unknown to 26.1
2024-07-01 21:13:53.789 INFO (MainThread) [custom_components.gree.climate] Thermostat updated with changed temp_sensor state | 26.1
2024-07-01 21:13:53.789 INFO (MainThread) [custom_components.gree.climate] Current state temp_sensor: 26.1
2024-07-01 21:13:53.789 INFO (MainThread) [custom_components.gree.climate] temp_sensor state represents_float |26.1
2024-07-01 21:13:53.789 INFO (MainThread) [custom_components.gree.climate] Current temp: 26.1
2024-07-01 21:13:53.839 INFO (SyncWorker_61) [custom_components.gree.climate] update()
2024-07-01 21:13:53.840 INFO (SyncWorker_61) [custom_components.gree.climate] Retrieving HVAC encryption key

Maybe is the Encryption Key the problem?

You can open an issue on github. Or try what’s mentioned here, although I have seen others saying it does not work for them either…

What’s the path for the file.

Hot sure if this refers to your issue but had the same for some time and it was related to Gree plugin - it uses only one network interface for searching while my HAAS server used 2 interfaces (LAN + WiFi). Quick workaround was that I’ve switched off LAN card, then reloaded Gree plugin - devices were found, than I’ve switched on LAN.

After restart you shall remember to repeat that. I think this could be a ticket to be fixed in future releases, Gree plugin uses adress classes of first interface found…