Giter Club home page Giter Club logo

Comments (27)

Hagakurje avatar Hagakurje commented on August 16, 2024 1

Did you try a portscan against them?
I works! I dont know why, a lot of remove, add, reboot...

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024 1

Thanks for sharing @asev ! I will try it as soon as possible and come back ;)

UPDATE: It is actually WORKING!!!! THANKS :)

from homeassistant-greeclimatecomponent.

wacher74 avatar wacher74 commented on August 16, 2024

What the modell you have?
I use Amber AC, Gree+ app and wifi are set up months ago.
Home Assistant integration is done today. I didn't have to use encryption_key.

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

Hi there wacher74. I have a model called BORA AC. You can see more info here http://www.bestcoolcyprus.com/images/pdfs/Bora_technical.pdf
I didn't try to use it without encryption key to be honest 😁
Gree+ app is working just fine. I will try to test without an encryption key and come back.

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

Unfortunately without an encryption_key HA doesnt see the AC unit at all.

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

You are receiving a timeout. This generally means the endpoint you are trying to talk to isn't listening or isnt responding in time.

How do you know for sure you are getting information FROM the AC? By default Home Assistant sets some values in this component.

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

When I am changing the status and the temperature of the AC using the remote control then these changes are reflected back to HA.

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

Interesting. Can you enable debug logging and post the output of the homeassistant.log?

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

Ok.
Before starting Grafeio A/C: https://snipboard.io/sZuOfK.jpg
After starting Grafeio A/C with remote control and setting temp at 25C: https://snipboard.io/r8Niav.jpg

Below are the whole logging output:
https://pastebin.com/m6cgjtAr

At the end I tried to change the state of Grafeio A/C through HA.

Thanks,
Savvas

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

It seems to be fetching fine, but the updating goes wrong indeed. It receives a timeout, but I can't see why.

I'm not sure how to proceed on this. I doubt this issue can be fixed in code. This might be an issue with the protocol implementation on the device.

Do you have a specific app for this AC? or is it a generic gree app?

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

First of all thank you for the time you are spending for this issue.
I am using GREE+ app https://play.google.com/store/apps/details?id=com.gree.greeplus

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

Hmm, this would suggest a generic GREE protocol. What kind of AC do you have? and does it come with a manual?

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

It is called as GREE BORA-DV Inverter EcoDesign. This is the manual: https://drive.google.com/file/d/1Dr1UKCraDlbWtZRiownptImF2e5Tmq63/view

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

Can't find any info on the protocol implementation. Im kind of lost here. I dont know how to proceed. The logging shows it works up until you try to change something, giving you a timeout. This does not make sense at all.

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

Did you manage to get this to work?

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

Unfortunately no...

from homeassistant-greeclimatecomponent.

asev avatar asev commented on August 16, 2024

Hello. I have identical issue with C&H SUPREME Inverter CH-S09FTXAM2S.
From EWPE Smart app AC control works fine.
On Home Assistant I can see AC values, but can't change them.

Error message is also the same

2020-01-26 10:23:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1251, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 201, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 335, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 357, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 422, in async_set_hvac_mode
    await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gree/climate.py", line 754, in set_hvac_mode
    self.SyncState({'Mod': self._hvac_modes.index(hvac_mode), 'Pow': 1})
  File "/config/custom_components/gree/climate.py", line 426, in SyncState
    self.SendStateToAc(self._timeout)
  File "/config/custom_components/gree/climate.py", line 266, in SendStateToAc
    data, addr = clientSock.recvfrom(64000)
socket.timeout: timed out

from homeassistant-greeclimatecomponent.

Hagakurje avatar Hagakurje commented on August 16, 2024

Same problem. I have Gree Smart GWH09QB-K3DNB6G, and Gree+ android app works.
But when I try:

telnet 192.168.4.22 7000
telnet: Unable to connect to remote host: Connection timed out

Maybe wrong port? Or some changes in gree protocol?

climate.yaml

- platform: gree
  name: Gree9
  host: 192.168.4.22
  port: 7000
  mac: 'f4:91:1e:8e:5e:80'
  target_temp_step: 1

log

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 120, in coro
    res = func(*args, **kw)
  File "/config/custom_components/gree/climate.py", line 115, in async_setup_platform
    GreeClimate(hass, name, ip_addr, port, mac_addr, timeout, target_temp_step, temp_sensor_entity_id, lights_entity_id, xfan_entity_id, health_entity_id, powersave_entity_id, sleep_entity_id, eightdegheat_entity_id, hvac_modes, fan_modes, swing_modes, encryption_key, uid)
  File "/config/custom_components/gree/climate.py", line 160, in __init__
    self._encryption_key = self.GetDeviceKey().encode("utf8")
  File "/config/custom_components/gree/climate.py", line 237, in GetDeviceKey
    return self.FetchResult(cipher, self._ip_addr, self._port, self._timeout, jsonPayloadToSend)['key']
  File "/config/custom_components/gree/climate.py", line 220, in FetchResult
    data, addr = clientSock.recvfrom(64000)
socket.timeout: timed out

from homeassistant-greeclimatecomponent.

wacher74 avatar wacher74 commented on August 16, 2024

192.168.4.x is not a usual IP range, where did you found it?

from homeassistant-greeclimatecomponent.

Hagakurje avatar Hagakurje commented on August 16, 2024

192.168.4.x is not a usual IP range, where did you found it?

It must be only usual ip? I have more then one network
11

from homeassistant-greeclimatecomponent.

wacher74 avatar wacher74 commented on August 16, 2024

No, I don't think that it must be usual ip :)
But the error lines of telnet and HA both point to some/same network related error.
You have 2 AC, both of them are inaccesible?
Did you try a portscan against them?

from homeassistant-greeclimatecomponent.

asev avatar asev commented on August 16, 2024

Finally I fixed it! ❄️
My solution was to change MAC address format from 12-34-56-78-AB-CD to 12:34:56:78:ab:cd.

from homeassistant-greeclimatecomponent.

savvasha avatar savvasha commented on August 16, 2024

Hi Asev. So the correct format is "-" or ":"??

from homeassistant-greeclimatecomponent.

asev avatar asev commented on August 16, 2024

For me it started to work with 12:34:56:78:ab:cd

from homeassistant-greeclimatecomponent.

m-alzahrani avatar m-alzahrani commented on August 16, 2024

Its working but I still have the same error keep happening

`Logger: homeassistant.helpers.entity
Source: custom_components/gree/climate.py:220
First occurred: 3:14:39 PM (11 occurrences)
Last logged: 5:50:12 PM

Update for climate.malak_ac fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 472, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gree/climate.py", line 627, in update
self.SyncState()
File "/config/custom_components/gree/climate.py", line 410, in SyncState
currentValues = self.GreeGetValues(optionsToFetch)
File "/config/custom_components/gree/climate.py", line 241, in GreeGetValues
return self.FetchResult(self.CIPHER, self._ip_addr, self._port, self._timeout, jsonPayloadToSend)['dat']
File "/config/custom_components/gree/climate.py", line 220, in FetchResult
data, addr = clientSock.recvfrom(64000)
socket.timeout: timed out `
I didnt include encryption in config

from homeassistant-greeclimatecomponent.

cej0t4 avatar cej0t4 commented on August 16, 2024

Some problem...
On Home Assistant I can see AC values, but can't change them.

climate.yaml

- platform: gree
  name: Gree9
  host: 192.168.1.11
  port: 7000
  mac: 'XX:XX:XX:XX:XX:XX'
  target_temp_step: 1

log

2020-07-27 20:22:44 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_fan_mode (c:e4dfd9b5499546979d2424df913a62ba): entity_id=['climate.gree_hvac'], fan_mode=medium>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1281, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1300, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 422, in async_set_fan_mode
    await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gree/climate.py", line 745, in set_fan_mode
    self.SyncState({'WdSpd': str(self._fan_modes.index(fan)), 'Tur': 0, 'Quiet': 0})
  File "/config/custom_components/gree/climate.py", line 426, in SyncState
    self.SendStateToAc(self._timeout)
  File "/config/custom_components/gree/climate.py", line 266, in SendStateToAc
    data, addr = clientSock.recvfrom(64000)
socket.timeout: timed out

Mi WIFI GREE is ME31-00/C4
The APP Gree+ works perfectly

from homeassistant-greeclimatecomponent.

jodewee avatar jodewee commented on August 16, 2024

Hi, may i ask how you fixed it? Do you want to share your yaml,code?

from homeassistant-greeclimatecomponent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.