RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
318 stars 106 forks source link

Integracion with Home Assistant #132

Closed bertocea85 closed 6 months ago

bertocea85 commented 2 years ago

Describe the bug From home assist I send an action on/off, temperature, etc... it does not respond. In the ewpesmart app you see the action but after a few seconds it returns to the initial state

Configuration

Logs Logger: homeassistant.core Source: custom_components/gree/climate.py:276 Integration: Gree A/C (documentation) First occurred: 18:16:31 (5 occurrences) Last logged: 18:20:19

Error executing service: <ServiceCall climate.set_hvac_mode (c:01GH9HFN5G4CRR7X8EM9JVS9VW): entity_id=['climate.first_ac'], hvac_mode=off> Error executing service: <ServiceCall climate.set_hvac_mode (c:01GH9HJZ0NHKEKFGFPB0W1WSWJ): hvac_mode=off, entity_id=['climate.first_ac']> Error executing service: <ServiceCall climate.set_hvac_mode (c:01GH9HKENZ1QJ56GWBP69DV02A): hvac_mode=off, entity_id=['climate.first_ac']> Error executing service: <ServiceCall climate.turn_off (c:01GH9HMCMQ2K2PTRD9801XXC23): entity_id=['climate.first_ac']> Error executing service: <ServiceCall climate.set_hvac_mode (c:01GH9HPKZEFPG8619HZCQDRX4M): entity_id=['climate.first_ac'], hvac_mode=off> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/core.py", line 1756, in catch_exceptions await coro_or_task File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 207, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 497, in async_set_hvac_mode await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/gree/climate.py", line 799, in set_hvac_mode self.SyncState({'Pow': 0}) File "/config/custom_components/gree/climate.py", line 450, in SyncState self.SendStateToAc(self._timeout) File "/config/custom_components/gree/climate.py", line 276, in SendStateToAc data, addr = clientSock.recvfrom(64000) TimeoutError: timed out

tomaskun commented 1 year ago

Any news? I have same problem

RobHofmann commented 1 year ago

There are multiple (closed) issues on this specific message. It simply means that your HASS can't reach the AC unit. There can be many reasons for this. It's impossible to debug this remotely unfortunately.

Make sure to check your network, firewalls & host information etc etc.

Rudoxxxx commented 1 year ago

Failed to restart Home Assistant The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: mapping values are not allowed here in "/config/climate.yaml", line 7, column 28