bigmoby / fglair_for_homeassistant

❄️ FGLair heat pump controller integration
MIT License
48 stars 4 forks source link

Entity becoming "unavailable" every few minutes #77

Closed mtbBrian closed 10 months ago

mtbBrian commented 10 months ago

System Health details

System Information

version core-2023.11.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone America/New_York
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.33.0 Stage | running Available Repositories | 1396 Downloaded Repositories | 25
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 11.1 -- | -- update_channel | stable supervisor_version | supervisor-2023.10.1 agent_version | 1.6.0 docker_version | 24.0.6 disk_total | 219.4 GB disk_used | 9.9 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.6.0), Terminal & SSH (9.7.1), Mosquitto broker (6.3.1), Samba share (10.0.2), AdGuard Home (4.8.17), Cloudflared (4.2.10), Frigate Proxy (1.3), ESPHome (2023.10.6), Samba Backup (5.2.0)
Dashboards dashboards | 2 -- | -- resources | 15 views | 11 mode | storage
Recorder oldest_recorder_run | October 27, 2023 at 2:08 PM -- | -- current_recorder_run | November 5, 2023 at 9:25 AM estimated_db_size | 410.62 MiB database_engine | sqlite database_version | 3.41.2

Checklist

Describe the issue

My Fujitsu mini-split will become "unavailable" every few minutes for a few seconds or minutes before resuming normal operation in HA.

I confirmed that https://user-field.aylanetworks.com and https://ads-field.aylanetworks.com are not being blocked by AdGuard. Perhaps the issue is with the cloud service and not with integration.

Thank you for your attention

Reproduction steps

1. 2. 3. ...

Debug logs

Traceback   (most recent    call last):                                                                 
"File ""/u" sr/src/homeas   "sistant/homeassistant/helpers/template.py"", line 694, in async_render_to_info"                                                                    
render  _info._result   = self.async_render(                                                                    
        ^^^^^^^^^^^^^^^^^^                                                                  
Traceback   (most recent    call last):                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 209, in api_wrapper"                                                                   
respon  se = await se   lf._session.post(                                                                   
    ^^^^^^^^    ^^^^^^^^^^^^^^^^^                                                                   
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/client.py"", line 536, in _request"                                                                   
conn =  await self._    connector.connect(                                                                  
    ^^^^^^^^^^^^    ^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 540, in connect"                                                                 
proto   #NAME?  "_create_connection(req, traces, timeout)"                                                                  
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 901, in _create_connection"                                                                  
"_, pro"    to = await se   "lf._create_direct_connection(req, traces, timeout)"                                                                    
    ^^^^^^^^    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 1169, in _create_direct_connection"                                                                  
raise   ClientConnect   "orError(req.connection_key, exc) from exc"                                                                 
aiohttp.cl  ient_exceptio   ns.ClientConnectorError: Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                 

The above   exception was   the direct cause of the following exception:                                                                    

Traceback   (most recent    call last):                                                                 
"File ""/u" sr/src/homeas   "sistant/homeassistant/helpers/entity.py"", line 696, in async_update_ha_state"                                                                 
await   self.async_de   vice_update()                                                                   
"File ""/u" sr/src/homeas   "sistant/homeassistant/helpers/entity.py"", line 957, in async_device_update"                                                                   
await   self.async_up   date()                                                                  
"File ""/c" onfig/custom_   "components/fglair_heatpump_controller/climate.py"", line 351, in async_update"                                                                 
self._  properties =    await self._fujitsu_device.async_update_properties()                                                                    
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/splitac.py"", line 60, in async_update_properties"                                                                   
self.s  et_properties   (await self._client.async_get_device_properties(self._dsn))                                                                 
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                   
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 130, in async_get_device_properties"                                                                   
access  _token = awai   t self.async_authenticate()                                                                 
    ^^^^    ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 171, in async_authenticate"                                                                    
respon  se = await se   lf.api_wrapper(                                                                 
    ^^^^^^^^    ^^^^^^^^^^^^^^^                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 235, in api_wrapper"                                                                   
raise   FGLairGeneral   Exception() from exception                                                                  
pyfujitsug  eneral.except   ions.FGLairGeneralException: FGLairBaseException has been raised                                                                    
11/6/2023   32:53.7 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   32:57.0 ERROR (MainThread) [homeassistant.components.nws] Error requesting NWS observation station KUKT data: Cannot connect to host api.weather.gov:443 ssl:default [Try again]                                                                    
11/6/2023   33:30.8 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   34:35.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   34:35.5 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   34:53.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   38:15.9 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   38:15.9 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   38:53.3 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   38:53.3 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   39:53.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   42:01.4 ERROR (MainThread) [custom_components.weatherflow] Error fetching weatherflow data: Error while retreiving data: Error requesting data from WeatherFlow: Cannot connect to host swd.weatherflow.com:443 ssl:default [Try again]                                                                 
11/6/2023   42:01.4 ERROR (MainThread) [custom_components.weatherflow] Error fetching weatherflow data: Error while retreiving data: Error requesting data from WeatherFlow: Cannot connect to host swd.weatherflow.com:443 ssl:default [Try again]                                                                 
11/6/2023   42:43.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   42:43.5 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   42:53.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   42:58.5 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.ac_uty_a0cc2bf0cf32 is taking over 10 seconds                                                                 
11/6/2023   44:22.0 ERROR (MainThread) [homeassistant.components.nws] Error requesting NWS forecast station KUKT data: Cannot connect to host api.weather.gov:443 ssl:default [Try again]                                                                   
11/6/2023   46:53.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   46:56.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   46:56.5 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   46:56.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   46:56.5 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.ac_uty_a0cc2bf0cf32 fails                                                                  
Traceback   (most recent    call last):                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 1155, in _create_direct_connection"                                                                  
hosts   #NAME?  io.shield(host_resolved)                                                                    
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 1155, in _create_direct_connection"                                                                  
hosts   #NAME?  io.shield(host_resolved)                                                                    
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 874, in _resolve_host"                                                                   
addrs   #NAME?  "_resolver.resolve(host, port, family=self._family)"                                                                    
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/resolver.py"", line 33, in resolve"                                                                   
infos   #NAME?  _loop.getaddrinfo(                                                                  
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/asyncio/base_events.py"", line 867, in getaddrinfo"                                                                 
return  await self.r    un_in_executor(                                                                 
    ^^^^^^^^^^^^    ^^^^^^^^^^^^^^^                                                                 
"File ""/u" sr/local/lib/   "python3.11/concurrent/futures/thread.py"", line 58, in run"                                                                    
result  = self.fn(*s    "elf.args, **self.kwargs)"                                                                  
    ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/socket.py"", line 962, in getaddrinfo"                                                                  
for re  s in _socket.   "getaddrinfo(host, port, family, type, proto, flags):"                                                                  
    ^^^^^^^^    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                 
socket.gai  error: [Errno   -3] Try again                                                                   

The above   exception was   the direct cause of the following exception:                                                                    

Traceback   (most recent    call last):                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 209, in api_wrapper"                                                                   
respon  se = await se   lf._session.post(                                                                   
    ^^^^^^^^    ^^^^^^^^^^^^^^^^^                                                                   
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/client.py"", line 536, in _request"                                                                   
conn =  await self._    connector.connect(                                                                  
    ^^^^^^^^^^^^    ^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 540, in connect"                                                                 
proto   #NAME?  "_create_connection(req, traces, timeout)"                                                                  
    ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 901, in _create_connection"                                                                  
"_, pro"    to = await se   "lf._create_direct_connection(req, traces, timeout)"                                                                    
    ^^^^^^^^    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                  
"File ""/u" sr/local/lib/   "python3.11/site-packages/aiohttp/connector.py"", line 1169, in _create_direct_connection"                                                                  
raise   ClientConnect   "orError(req.connection_key, exc) from exc"                                                                 
aiohttp.cl  ient_exceptio   ns.ClientConnectorError: Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                 

The above   exception was   the direct cause of the following exception:                                                                    

Traceback   (most recent    call last):                                                                 
"File ""/u" sr/src/homeas   "sistant/homeassistant/helpers/entity.py"", line 696, in async_update_ha_state"                                                                 
await   self.async_de   vice_update()                                                                   
"File ""/u" sr/src/homeas   "sistant/homeassistant/helpers/entity.py"", line 957, in async_device_update"                                                                   
await   self.async_up   date()                                                                  
"File ""/c" onfig/custom_   "components/fglair_heatpump_controller/climate.py"", line 351, in async_update"                                                                 
self._  properties =    await self._fujitsu_device.async_update_properties()                                                                    
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                    
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/splitac.py"", line 60, in async_update_properties"                                                                   
self.s  et_properties   (await self._client.async_get_device_properties(self._dsn))                                                                 
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                   
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 130, in async_get_device_properties"                                                                   
access  _token = awai   t self.async_authenticate()                                                                 
    ^^^^    ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 171, in async_authenticate"                                                                    
respon  se = await se   lf.api_wrapper(                                                                 
    ^^^^^^^^    ^^^^^^^^^^^^^^^                                                                 
"File ""/u" sr/local/lib/   "python3.11/site-packages/pyfujitsugeneral/client.py"", line 235, in api_wrapper"                                                                   
raise   FGLairGeneral   Exception() from exception                                                                  
pyfujitsug  eneral.except   ions.FGLairGeneralException: FGLairBaseException has been raised                                                                    
11/6/2023   49:43.8 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://ads-field.aylanetworks.com/apiv1/devices.json - Cannot connect to host ads-field.aylanetworks.com:443 ssl:default [Try again]                                                                 
11/6/2023   49:43.8 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   50:16.0 INFO (MainThread) [custom_components.fglair_heatpump_controller] Fetching fglair_heatpump_controller data recovered                                                                 
11/6/2023   50:16.0 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] listing all supported hvac_modes [[<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>, <HVACMode.COOL: 'cool'>, <HVACMode.AUTO: 'auto'>, <HVACMode.DRY: 'dry'>, <HVACMode.FA"    N_ONL   Y:  'fa n_only  '>]]                                                
11/6/2023   50:16.0 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] returning swing modes [['vertical', 'horizontal', 'both', 'Vertical_1', 'Vertical_2', 'Vertical_3', 'Vertical_4', 'Vertical_5', 'Vertical_6', 'Vertical_7', 'Vertical_8'"    ", 'Ho" riz ont "al_1',"    'Hori   zo  nt  "al_2', 'H" orizo   ntal    "_3', 'Hori"    zo  "ntal_4',"  'Hori   zont    al_ 5']]
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return current operation_mode [6] ; operation_mode_desc [heat]                                                                    
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return fan_mode [auto]                                                                    
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] preset eco setting: 1                                                                 
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] swing value 0                                                                 
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] mode value [Vertical_7]                                                                   
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] vertical swing value [0]                                                                  
11/6/2023   50:16.0 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] horizontal swing value [0]                                                                    
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] Update FujitsuClimate device by async_update                                                                  
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller] Finished fetching fglair_heatpump_controller data in 3.043 seconds (success: True)                                                                    
11/6/2023   50:48.5 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] listing all supported hvac_modes [[<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>, <HVACMode.COOL: 'cool'>, <HVACMode.AUTO: 'auto'>, <HVACMode.DRY: 'dry'>, <HVACMode.FA"    N_ONL   Y:  'fa n_only  '>]]                                                
11/6/2023   50:48.5 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] returning swing modes [['vertical', 'horizontal', 'both', 'Vertical_1', 'Vertical_2', 'Vertical_3', 'Vertical_4', 'Vertical_5', 'Vertical_6', 'Vertical_7', 'Vertical_8'"    ", 'Ho" riz ont "al_1',"    'Hori   zo  nt  "al_2', 'H" orizo   ntal    "_3', 'Hori"    zo  "ntal_4',"  'Hori   zont    al_ 5']]
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return current operation_mode [6] ; operation_mode_desc [heat]                                                                    
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return fan_mode [auto]                                                                    
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] preset eco setting: 1                                                                 
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] swing value 0                                                                 
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] mode value [Vertical_7]                                                                   
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] vertical swing value [0]                                                                  
11/6/2023   50:48.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] horizontal swing value [0]                                                                    
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate return device name [AC-UTY-a0cc2bf0cf32]                                                                   
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return fan_mode [auto]                                                                    
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return current operation_mode [6] ; operation_mode_desc [heat]                                                                    
11/6/2023   50:49.3 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] returning swing modes [['vertical', 'horizontal', 'both', 'Vertical_1', 'Vertical_2', 'Vertical_3', 'Vertical_4', 'Vertical_5', 'Vertical_6', 'Vertical_7', 'Vertical_8'"    ", 'Ho" riz ont "al_1',"    'Hori   zo  nt  "al_2', 'H" orizo   ntal    "_3', 'Hori"    zo  "ntal_4',"  'Hori   zont    al_ 5']]
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] swing value 0                                                                 
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] mode value [Vertical_7]                                                                   
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] vertical swing value [0]                                                                  
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] horizontal swing value [0]                                                                    
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate return device name [AC-UTY-a0cc2bf0cf32]                                                                   
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate finish init for device [AC-UTY-a0cc2bf0cf32]                                                                   
11/6/2023   50:49.3 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] listing all supported hvac_modes [[<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>, <HVACMode.COOL: 'cool'>, <HVACMode.AUTO: 'auto'>, <HVACMode.DRY: 'dry'>, <HVACMode.FA"    N_ONL   Y:  'fa n_only  '>]]                                                
11/6/2023   50:49.3 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] returning swing modes [['vertical', 'horizontal', 'both', 'Vertical_1', 'Vertical_2', 'Vertical_3', 'Vertical_4', 'Vertical_5', 'Vertical_6', 'Vertical_7', 'Vertical_8'"    ", 'Ho" riz ont "al_1',"    'Hori   zo  nt  "al_2', 'H" orizo   ntal    "_3', 'Hori"    zo  "ntal_4',"  'Hori   zont    al_ 5']]
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return current operation_mode [6] ; operation_mode_desc [heat]                                                                    
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] return fan_mode [auto]                                                                    
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] preset eco setting: 1                                                                 
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] swing value 0                                                                 
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] mode value [Vertical_7]                                                                   
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] vertical swing value [0]                                                                  
11/6/2023   50:49.3 DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] horizontal swing value [0]                                                                    
11/6/2023   51:23.5 ERROR (MainThread) [pyfujitsugeneral] Error fetching information from https://user-field.aylanetworks.com/users/sign_in.json - Cannot connect to host user-field.aylanetworks.com:443 ssl:default [Try again]                                                                   
11/6/2023   51:23.5 ERROR (MainThread) [custom_components.fglair_heatpump_controller] Error fetching fglair_heatpump_controller data:                                                                   
11/6/2023   51:23.5 DEBUG (MainThread) [custom_components.fglair_heatpump_controller] Finished fetching fglair_heatpump_controller data in 5.009 seconds (success: False)                                                                   
11/6/2023   51:23.5 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] listing all supported hvac_modes [[<HVACMode.OFF: 'off'>, <HVACMode.HEAT: 'heat'>, <HVACMode.COOL: 'cool'>, <HVACMode.AUTO: 'auto'>, <HVACMode.DRY: 'dry'>, <HVACMode.FA"    N_ONL   Y:  'fa n_only  '>]]                                                
11/6/2023   51:23.5 "DEBUG (MainThread) [custom_components.fglair_heatpump_controller.climate] FujitsuClimate device [AC-UTY-a0cc2bf0cf32] returning swing modes [['vertical', 'horizontal', 'both', 'Vertical_1', 'Vertical_2', 'Vertical_3', 'Vertical_4', 'Vertical_5', 'Vertical_6', 'Vertical_7', 'Vertical_8'"    ", 'Ho" riz ont "al_1',"    'Hori   zo  nt  "al_2', 'H" orizo   ntal    "_3', 'Hori"    zo  "ntal_4',"  'Hori   zont    al_ 5']]

Diagnostics dump

No response

bigmoby commented 10 months ago

Hi @mtbBrian thank you for reporting

I confirmed that https://user-field.aylanetworks.com/ and https://ads-field.aylanetworks.com/ are not being blocked by AdGuard. Perhaps the issue is with the cloud service and not with integration.

but with the new versions (the latest is 0.3.3) there's no changes with the cloud connection 🤔 Is it always reproducible?

mtbBrian commented 10 months ago

The errors in the logs continue every few minutes continuously. I noticed this when first switched to the addon. You were releasing frequent updates so I held off to see if this resolved itself. So far it hasn't. The resulting toggling to unavailable status is the most notable negative outcome of these logs.

image

mtbBrian commented 10 months ago

Not sure if it is meaningful, but on startup I get this warning:

Logger: homeassistant.components.mqtt.mixins Source: components/mqtt/mixins.py:1310 Integration: MQTT (documentation, issues) First occurred: 5:38:31 PM (1 occurrences) Last logged: 5:38:31 PM

MQTT device name is equal to entity name in your config {'name': 'AC000W0029XXXXX', 'unique_id': 'a0cc2bf0cf32', 'device': {'identifiers': ['hisense_ac_a0cc2bf0cf32'], 'manufacturer': 'Hisense (fglair-us)', 'model': 'AP-WA1E', 'name': 'AC000W0029XXXXX', 'sw_version': 'bc 2.6.17-fgl2 06/29/20 09:03:57 ID jre/mfg/2dfbf5d', 'connections': []}, 'availability': [{'topic': 'hisense_ac/LWT', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'hisense_ac/a0cc2bf0cf32/available/status', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'precision': 1.0, 'temperature_unit': <UnitOfTemperature.FAHRENHEIT: '°F'>, 'fan_mode_command_topic': 'hisense_ac/a0cc2bf0cf32/fan_speed/command', 'fan_mode_state_topic': 'hisense_ac/a0cc2bf0cf32/fan_speed/status', 'fan_modes': ['auto', 'quiet', 'low', 'medium', 'high'], 'mode_command_topic': 'hisense_ac/a0cc2bf0cf32/operation_mode/command', 'mode_state_topic': 'hisense_ac/a0cc2bf0cf32/operation_mode/status', 'modes': ['off', 'fan_only', 'heat', 'cool', 'dry', 'auto'], 'swing_mode_command_topic': 'hisense_ac/a0cc2bf0cf32/af_vertical_swing/command', 'swing_mode_state_topic': 'hisense_ac/a0cc2bf0cf32/af_vertical_swing/status', 'swing_modes': ['on', 'off'], 'temperature_command_topic': 'hisense_ac/a0cc2bf0cf32/adjust_temperature/command', 'temperature_state_topic': 'hisense_ac/a0cc2bf0cf32/adjust_temperature/status', 'max_temp': 86.0, 'min_temp': 61.0, 'payload_not_available': 'offline', 'optimistic': False, 'payload_on': 'ON', 'temp_step': 1.0, 'enabled_by_default': True, 'encoding': 'utf-8', 'max_humidity': 99.0, 'payload_available': 'online', 'min_humidity': 30.0, 'payload_off': 'OFF', 'availability_mode': 'latest', 'qos': 0, 'retain': False, 'preset_modes': []}, this is not expected. Please correct your configuration. The entity name will be set to null

bigmoby commented 10 months ago

ERROR (MainThread) [custom_components.weatherflow] Error fetching weatherflow data: Error while retreiving data: Error requesting data from WeatherFlow: Cannot connect to host swd.weatherflow.com:443 ssl:default [Try again]

In your log there're so many other connection issues not related to my integration so I suppose your local network has some problems. Anyway I don't understand this second logs...this fglair integration has no mqtt support.