Hi @LaggAt see below copy of my log from the time it goes from being online to offline as seen in the log. The light is still connected to wifi as seen in the govee app and once turned on in the app the light reappears in HA.
021-05-06 01:01:15 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: ‘XXXX’, ‘model’: ‘H6199’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘off’}, {‘brightness’: 50}, {‘color’: {‘r’: 255, ‘b’: 255, ‘g’: 255}}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=‘XXXX’, model=‘H6199’, device_name=‘living_room_tv_light’, controllable=True, retrievable=True, support_cmds=[‘turn’, ‘brightness’, ‘color’, ‘colorTem’], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=127, color=(255, 255, 255), color_temp=0, timestamp=1620226875.31712, source=<GoveeSource.API: ‘api’>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-05-06 01:01:15 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.314 seconds
2021-05-06 01:01:19 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/config/custom_components/fronius_inverter/sensor.py”, line 319, in async_update
await self._update()
File “/config/custom_components/fronius_inverter/sensor.py”, line 367, in _update
self._data = (await self.fetch_data(self._build_url()))[‘Body’][‘Data’]
File “/config/custom_components/fronius_inverter/sensor.py”, line 335, in fetch_data
response = await self._session.get(url, timeout=10)
File “/usr/local/lib/python3.8/site-packages/aiohttp/client.py”, line 619, in _request
break
File “/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py”, line 656, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/config/custom_components/fronius_inverter/sensor.py”, line 116, in fetch_data
await fetcher.async_update()
File “/config/custom_components/fronius_inverter/sensor.py”, line 322, in async_update
except asyncio.TimeoutError:
NameError: name ‘asyncio’ is not defined
2021-05-06 01:01:19 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/config/custom_components/fronius_inverter/sensor.py”, line 319, in async_update
await self._update()
File “/config/custom_components/fronius_inverter/sensor.py”, line 381, in _update
self._data = (await self.fetch_data(self._build_url()))[‘Body’][‘Data’][‘Site’]
File “/config/custom_components/fronius_inverter/sensor.py”, line 335, in fetch_data
response = await self._session.get(url, timeout=10)
File “/usr/local/lib/python3.8/site-packages/aiohttp/client.py”, line 619, in _request
break
File “/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py”, line 656, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/config/custom_components/fronius_inverter/sensor.py”, line 116, in fetch_data
await fetcher.async_update()
File “/config/custom_components/fronius_inverter/sensor.py”, line 322, in async_update
except asyncio.TimeoutError:
NameError: name ‘asyncio’ is not defined
2021-05-06 01:01:20 ERROR (MainThread) [custom_components.fronius_inverter.sensor] Failed to update: connection error
2021-05-06 01:01:25 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-05-06 01:01:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-05-06 01:01:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] Rate limit total: 100, remaining: 99 in 59.786585092544556 seconds
2021-05-06 01:01:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: ‘XXXX’, ‘model’: ‘H6199’, ‘properties’: [{‘online’: ‘false’}, {‘powerState’: ‘off’}, {‘brightness’: 50}, {‘color’: {‘r’: 255, ‘b’: 255, ‘g’: 255}}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=‘XXXX’, model=‘H6199’, device_name=‘living_room_tv_light’, controllable=True, retrievable=True, support_cmds=[‘turn’, ‘brightness’, ‘color’, ‘colorTem’], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=False, power_state=False, brightness=127, color=(255, 255, 255), color_temp=0, timestamp=1620226885.352289, source=<GoveeSource.API: ‘api’>, error=None, lock_set_until=0, lock_get_until=0,
learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-05-06 01:01:25 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.351 seconds
2021-05-06 01:01:28 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Timeout occurred while connecting to WLED device at 192.168.1.35