Giter Club home page Giter Club logo

Comments (5)

RobHofmann avatar RobHofmann commented on August 16, 2024

Can you provide the config you used? I use 2 gree climates myself, which work perfectly fine.

Please provide the following information:

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Configuration
Share your YAML here

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Platform:

  • OS: [e.g. HASSIO, Hassbian]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 0.92.1]

Additional context
Add any other context about the problem here.

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

Closing this for now. Feel free to reopen if something pops up!

from homeassistant-greeclimatecomponent.

cyberfly79 avatar cyberfly79 commented on August 16, 2024

Hi,

This is a raspberry pi 3b and raspbian. Home-assistant core running in docker (Home Assistant 0.111.3).
Very, very rarely all three climates work at the same time.
Itโ€™s like not waiting for an answer from the climate. They work perfectly from their own app. I tried to set the timeout but it didn't get any better.

It always responds to ping in about 1 ms.

image

yaml:

platform: gree
name: haloszoba
host: 192.168.1.74
mac: 'f4:91:1e:75:a2:3a'

platform: gree
name: foldszint
host: 192.168.1.81
mac: 'f4:91:1e:75:a2:a1'

platform: gree
name: vendegszoba
host: 192.168.1.77
mac: 'f4:91:1e:75:a2:47'

from homeassistant-greeclimatecomponent.

cyberfly79 avatar cyberfly79 commented on August 16, 2024

I turn on debug:
(there is always an answer to ping)

2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.1.74, 7000, 10, {"cid": "app","i": 1,"pack": "6kwCFcGeYwZV+VyBpi5DSa9F/dzKt/YymGm5ZLrvh6mj9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"f4911e75a23a","uid": 0})
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Fetched device encrytion key: b'9Op2Rs5Uv8Xy1Ab4'
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2020-07-15 19:30:02 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.1.75, 7000, 10, {"cid": "app","i": 1,"pack": "6kwCFcGeYwZV+VyBpi5DSV4kLAzvnrzfGPNhb27XhI2j9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"f4911e75a2a1","uid": 0})
2020-07-15 19:30:12 INFO (MainThread) [custom_components.gree.climate] Setting up Gree climate platform
2020-07-15 19:30:12 INFO (MainThread) [custom_components.gree.climate] Adding Gree climate device to hass
2020-07-15 19:30:12 INFO (MainThread) [custom_components.gree.climate] Initialize the GREE climate device
2020-07-15 19:30:12 INFO (MainThread) [custom_components.gree.climate] Retrieving HVAC encryption key
2020-07-15 19:30:12 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.1.77, 7000, 10, {"cid": "app","i": 1,"pack": "6kwCFcGeYwZV+VyBpi5DSZE04YLjDsSmOJuLMuqAiU+j9mrs/0p7GUTdWxmNaBUt","t":"pack","tcid":"f4911e75a247","uid": 0})
2020-07-15 19:30:22 INFO (MainThread) [custom_components.gree.climate] name(): haloszoba
2020-07-15 19:30:22 INFO (MainThread) [custom_components.gree.climate] Gree climate device added to hass()
2020-07-15 19:30:22 INFO (MainThread) [custom_components.gree.climate] Starting SyncState
2020-07-15 19:30:22 INFO (MainThread) [custom_components.gree.climate] Fetching(192.168.1.74, 7000, 10, {"cid":"app","i":0,"pack":"fPDi74KkUQsKEozf7UTelGVIJv1nnzwI312bHPLKLCheo4o6crfn7rDlmk9KOKyK1OX3NNAjr7r0PmKarsmKm5vkekJLU8htJsRWKU+eGy2HtdLCjHoaZ1VQ1YQBhcD/hAoOtYuuBBvqXsGHfYjVXPcJhJWGfqEXJeGRaQqdQ8f29tmNiVaoVlsuOWCSCSc0sl/Y9ZpEiax75PPcEQx8k7K4k4Q8FmjiW8oL7rGessM8kiShqYR1HaoxaqIRpYn6y5XS1hcaVNNX+4MXgdpf4XmZ7SR9qyahltuaNSwwhl4=","t":"pack","tcid":"f4911e75a23a","uid":0})
2020-07-15 19:30:32 ERROR (MainThread) [homeassistant.components.climate] Error while setting up gree platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, 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
2020-07-15 19:30:32 ERROR (MainThread) [homeassistant.components.climate] Error while setting up gree platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, 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
2020-07-15 19:30:32 ERROR (MainThread) [homeassistant.components.climate] Error while setting up gree platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 441, in _async_add_entity
await entity.async_added_to_hass()
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 760, in async_added_to_hass
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

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on August 16, 2024

And if you add just 2? will it stay stable then? In my own setup I have 2 AC's which have been stable since the beginning.

I dont see any weird stuff in the logs other than Timeouts. I moved away from my RPi because it wasnt fast enough for my installation (I got a pretty extensive installation). So you could try to setup Home Assistant on some faster hardware maybe, just to test. Other than than I can't say anything else than "something doesnt respond in time", wether it be network, the ac or the hass installation.

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.