Gree.climate platform not found

I am trying to install gree control from this web site

I have copy gree.py to * /config/custom_components/climate/ (also i have try to copy gree.py to * /config/custom_components)

But every time I get response like this:

Platform not found: climate.gree

I also instal pyton3.

Does anybody have this scripts working?

I don’t use this platform but it needs to be placed in your “HA root folder/custom_components/climate/gree.py”

Then edit your configuration.yaml as per the instructions. Then restart home assistant. On reboot it will state custom component is being used in the log.

And why are u installing python3 etc. when you are using hass.io?

I have now find out that component can not be instaled
I get this feedback

Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, in get_component module = importlib.import_module(path) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/config/custom_components/climate/gree.py", line 21, in <module> from homeassistant.helpers.restore_state import async_get_last_state ImportError: cannot import name 'async_get_last_state'

You better post an issue on the component’s github page.

Did you fix this? Which version of HASS are you running?

Also: try installing this component using HACS. This makes your life easier :).

Yes, it’s true :smiley: My life is easier now :smiley:

Cool enjoy!

Can you just give me example what i must write in climate.yaml to turn on xfan?

Thanx a lot

Hi!

First of all you need to create an input_boolean in your configuration. Something like this:

input_boolean:
  bedroom_ac_xfan:
    name: Bedroom AC XFan
    initial: off

Next you can include this new input_boolean in your AC config like this:

climate:
  - platform: gree
    name: Bedroom AC
    host: 192.168.0.123
    port: 7000
    mac: 'FF:AA:00:DD:CC:EE'
    target_temp_step: 1
    xfan: input_boolean.bedroom_ac_xfan

In the above example please note the last line. This is where you bind the input_boolean.bedroom_ac_xfan to the XFan of your AC. To toggle this, you can use the following services:

input_boolean.turn_off
input_boolean.turn_on
input_boolean.toggle

Let me know if you run into issues.

1 Like

@Robb I installed it through HACS but I don’t know how to continue. The manual says “!!! PLEASE NOTE !!!: Don’t use this method if you are using HACS.” but I don’t know if it pertains to the first step or the whole setup.

Can you expand the README with manual and HACS instalation separately?

Start from 2 in the readme :slight_smile:

1 Like

Indeed what @nickrout says! Start from step 2.

I updated the readme.

How I can understand if my AC is compatible?
All Gree models are good?

The github readme lists what models it has been tested on.

I saw and thanks
But I have a Gree air condition system, but seems not in the list
The progret is Gree.climate. Is not for Gree brand devices?

Sorry Robb, after some tentative, I set up all ok and added button for sleep mode.
It turn on the feature good, but not turn off.

I think that I need to define services, as the post fro XFan. Correct?
How and where I need to define?

Thanks in advance

1 Like

Hi. I have Gree Smart GWH09QB-K3DNB6G. I connect it to WIFI using Gree+ android app. But when I try telnet 192.168.4.22 7000
telnet: Unable to connect to remote host: Connection timed out
Maybe wrong port? Or wrong conditioner?

Try nmap and see what ports are open.

Hi. It is my first using nmap, is it correct?

nmap -Pn -sT -sU -p0-65535 192.168.4.22
Starting Nmap 7.70 ( https://nmap.org ) at 2020-03-18 09:18 EET
Nmap scan report for 192.168.4.22
Host is up (0.0041s latency).
All 131072 scanned ports on 192.168.4.22 are filtered (65536) or open|filtered (65536)
MAC Address: F4:91:1E:8E:5E:80 (Zhuhai Ewpe Information Technology)

Nmap done: 1 IP address (1 host up) scanned in 2630.76 seconds

I works! I dont know why, a lot of remove, add, reboot…

1 Like