Gree Intergration Connection Reset

Hi All,

My Gree Climate integration throw error every 5 minutes:

homeassistant    | 2021-12-01 16:00:47 ERROR (MainThread) [homeassistant] Error doing job: Fatal write error on datagram transport
homeassistant    | Traceback (most recent call last):
homeassistant    |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
homeassistant    |     self._sock.sendto(data, addr)
homeassistant    | TypeError: str, bytes or bytearray expected, not NoneType
homeassistant    | 2021-12-01 16:00:47 ERROR (MainThread) [greeclimate.network] Connection was closed unexpectedly
homeassistant    | Traceback (most recent call last):
homeassistant    |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
homeassistant    |     self._sock.sendto(data, addr)
homeassistant    | TypeError: str, bytes or bytearray expected, not NoneType
homeassistant    | 2021-12-01 16:05:47 ERROR (MainThread) [homeassistant] Error doing job: Fatal write error on datagram transport
homeassistant    | Traceback (most recent call last):
homeassistant    |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
homeassistant    |     self._sock.sendto(data, addr)
homeassistant    | TypeError: str, bytes or bytearray expected, not NoneType
homeassistant    | 2021-12-01 16:05:47 ERROR (MainThread) [greeclimate.network] Connection was closed unexpectedly
homeassistant    | Traceback (most recent call last):
homeassistant    |   File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
homeassistant    |     self._sock.sendto(data, addr)
homeassistant    | TypeError: str, bytes or bytearray expected, not NoneType

Home Assistant version:

System Health

version: core-2021.11.5
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 5.10.0-9-amd64
arch: x86_64
timezone: Europe/Budapest


GitHub API: ok
Github API Calls Remaining: 4998
Installed Version: 1.18.0
Stage: running
Available Repositories: 975
Installed Repositories: 3


logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok


dashboards: 2
resources: 1
views: 6
mode: storage

Docker Compose file:

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:2021.11.5"
    volumes:
      - /opt/home-assistant/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

Can somebody please help me figure out the problem?

Thanks!

1 Like

I have the same issue:

2021-12-03 17:38:18 ERROR (MainThread) [homeassistant] Error doing job: Fatal write error on datagram transport
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
    self._sock.sendto(data, addr)
TypeError: str, bytes or bytearray expected, not NoneType
2021-12-03 17:38:19 ERROR (MainThread) [greeclimate.network] Connection was closed unexpectedly
Traceback (most recent call last):
  File "/usr/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
    self._sock.sendto(data, addr)
TypeError: str, bytes or bytearray expected, not NoneType

No docker, home assistant inslled from pip (rpi3).
homeassistant 2021.11.5
Python 3.9.8 (main, Nov 11 2021, 13:46:37)

Did somebody solve that problem?
On the latest HA version I have same stable error:

2021-12-24 18:26:00 ERROR (MainThread) [greeclimate.network] Connection was closed unexpectedly
Traceback (most recent call last):

File “/usr/local/lib/python3.9/asyncio/selector_events.py”, line 1056, in sendto
self._sock.sendto(data, addr)
TypeError: str, bytes or bytearray expected, not NoneType

Hi,

I’ve the same problem.

ERROR (MainThread) [greeclimate.network] Connection was closed unexpectedly
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
    self._sock.sendto(data, addr)
TypeError: str, bytes or bytearray expected, not NoneType