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

Unable to control Gree AC4600

Open lcapriotti opened this issue 6 months ago • 6 comments

After adding a Gree AC4600 unit via HA UI results in an unavailable entity. Unit has updated firmware 1.38 as per the Android app.

To Reproduce

Steps to reproduce the behavior:

  1. Go to HACS
  2. Use/install/upgrade Gree A/C to 2.21.0
  3. Add unit providing IP, MAC address
  4. Open Gree A/C new entity, status is 'unavailable'

Screenshots

Image

Image

Platform:

  • OS: HASSIO
  • Browser: Chrome
  • Version: 137.0.7151.69

Logs

2025-06-09 18:01:49.867 DEBUG (MainThread) [custom_components.gree.climate] should_poll() 2025-06-09 18:01:49.868 DEBUG (SyncWorker_16) [custom_components.gree.climate] update() 2025-06-09 18:01:49.868 INFO (SyncWorker_16) [custom_components.gree.climate] Retrieving HVAC encryption key 2025-06-09 18:01:49.869 DEBUG (SyncWorker_16) [custom_components.gree.climate] Fetching(192.168.0.161, 7000, 10, {"cid": "app","i": 1,"pack": "(...)","t":"pack","tcid":"xx-xx-xx-xx-xx-xx","uid": 0, "tag" : "(...)"}) 2025-06-09 18:01:59.879 INFO (SyncWorker_16) [custom_components.gree.climate] Error getting device encryption key! 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] temperature_unit(): °C 2025-06-09 18:01:59.880 DEBUG (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'>] 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] min_temp(): 16 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] max_temp(): 30 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] target_temperature_step(): None 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet'] 2025-06-09 18:01:59.880 DEBUG (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'] 2025-06-09 18:01:59.880 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] name(): GndFloor 2025-06-09 18:01:59.880 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425

lcapriotti avatar Jun 09 '25 16:06 lcapriotti

hi, try to set Encryption version: 2 instead of default value: 1 I followed another issue which marks the same case regarding encryption version: https://github.com/RobHofmann/HomeAssistant-GreeClimateComponent/issues/233

szastan avatar Jun 10 '25 15:06 szastan

I deleted the entity and re-created it, to be certain about encryption version:

Image

Same results unfortunately:

Image

Log lines:

2025-06-10 18:26:21.455 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform 2025-06-10 18:26:21.463 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass 2025-06-10 18:26:21.463 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device 2025-06-10 18:26:21.463 INFO (MainThread) [custom_components.gree.climate] Unit of measurement: °C 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] name(): GndFloorAC 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] name(): GndFloorAC 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] temperature_unit(): °C 2025-06-10 18:26:21.464 DEBUG (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'>] 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] min_temp(): 16 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] max_temp(): 30 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] target_temperature_step(): None 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet'] 2025-06-10 18:26:21.464 DEBUG (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'] 2025-06-10 18:26:21.464 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:21.464 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass() 2025-06-10 18:26:21.465 DEBUG (MainThread) [custom_components.gree.climate] update() 2025-06-10 18:26:21.465 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key 2025-06-10 18:26:21.466 DEBUG (MainThread) [custom_components.gree.climate] Fetching(192.168.0.161, 7000, 10, {"cid": "app","i": 1,"pack": "(...))","t":"pack","tcid":"c0-39-37-57-5f-46","uid": 0, "tag" : "(..))"}) 2025-06-10 18:26:31.477 INFO (MainThread) [custom_components.gree.climate] Error getting device encryption key! 2025-06-10 18:26:31.477 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:31.477 DEBUG (MainThread) [custom_components.gree.climate] temperature_unit(): °C 2025-06-10 18:26:31.477 DEBUG (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'>] 2025-06-10 18:26:31.477 DEBUG (MainThread) [custom_components.gree.climate] min_temp(): 16 2025-06-10 18:26:31.477 DEBUG (MainThread) [custom_components.gree.climate] max_temp(): 30 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] target_temperature_step(): None 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet'] 2025-06-10 18:26:31.478 DEBUG (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'] 2025-06-10 18:26:31.478 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] name(): GndFloorAC 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] temperature_unit(): °C 2025-06-10 18:26:31.478 DEBUG (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'>] 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] min_temp(): 16 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] max_temp(): 30 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] target_temperature_step(): None 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] fan_list(): ['Auto', 'Low', 'Medium-Low', 'Medium', 'Medium-High', 'High', 'Turbo', 'Quiet'] 2025-06-10 18:26:31.478 DEBUG (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'] 2025-06-10 18:26:31.478 INFO (MainThread) [custom_components.gree.climate] available(): Device is offline 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] name(): GndFloorAC 2025-06-10 18:26:31.478 DEBUG (MainThread) [custom_components.gree.climate] supported_features(): 425 2025-06-10 18:26:31.479 DEBUG (MainThread) [custom_components.gree.climate] should_poll() 2025-06-10 18:27:31.480 DEBUG (MainThread) [custom_components.gree.climate] should_poll() 2025-06-10 18:27:31.480 DEBUG (SyncWorker_7) [custom_components.gree.climate] update() 2025-06-10 18:27:31.480 INFO (SyncWorker_7) [custom_components.gree.climate] Retrieving HVAC encryption key 2025-06-10 18:27:31.482 DEBUG (SyncWorker_7) [custom_components.gree.climate] Fetching(192.168.0.161, 7000, 10, {"cid": "app","i": 1,"pack": "(..))","t":"pack","tcid":"c0-39-37-57-5f-46","uid": 0, "tag" : "(..))"})

lcapriotti avatar Jun 10 '25 16:06 lcapriotti

I'm getting the same error after looking through the logs.

Enter the IP and MAC address, set encryption to 2, but the same screen shot error as yours.

Image Image

JohnLough avatar Jun 11 '25 00:06 JohnLough

@RobHofmann

(Gree) root@DietPi:/GreeMQTT# nmap -sU -p 7000 192.168.0.63
Starting Nmap 7.93 ( https://nmap.org/ ) at 2025-06-22 02:04 UTC
Nmap scan report for 192.168.0.63
Host is up (0.058s latency).

PORT STATE SERVICE
7000/udp closed afs3-fileserver
MAC Address: **** (Gree Electric Appliances, OF Zhuhai)

Nmap done: 1 IP address (1 host up) scanned in 0.21 seconds
(Gree) root@DietPi:/GreeMQTT#

My other AirCons on the same network have state as OPEN and they work. This one does not.

JohnLough avatar Jun 24 '25 21:06 JohnLough

means that UDP port 7000 on 192.168.0.63 is closed. Nmap tried to probe it, got an explicit “port unreachable” reply, and therefore marked it closed rather than open or filtered.

So this means your Gree Device is unreachable. It might be wrong details (ip and/or port) or simply an incompatible device.

RobHofmann avatar Jun 24 '25 21:06 RobHofmann

simply an incompatible device.

I would be guessing this as NMAP reported it as (Gree Electric Appliances, OF Zhuhai)

Thanks for the quick response.

JohnLough avatar Jun 24 '25 21:06 JohnLough