disforw / goveelife

Home Assistant Govee integration using the newest API for ALL Govee WiFi devices
21 stars 2 forks source link

Many Errors in Logs #13

Open KyleStilkey opened 3 months ago

KyleStilkey commented 3 months ago

Been running this for a few weeks and appreciate the support you have provided but I've notice a lot of error logs now just alone from this, by many I mean thousands of error entries.

Here are the ones I'm noticing in my logs and hope they can help you.

This error originated from a custom integration.

Logger: custom_components.goveelife.fan
Source: custom_components/goveelife/fan.py:192
integration: Govee Life (documentation)
First occurred: 12:53:06 AM (3415 occurrences)
Last logged: 11:39:06 PM

GoveeLife - 137ed4adfc5061a2_fan: preset_mode: invalid value: {'workMode': 3, 'modeValue': 0}
GoveeLife - 1c25d4adfc44801a_fan: preset_mode: invalid value: {'workMode': 1, 'modeValue': 5}
GoveeLife - 0b7bd4adfcbb5420_fan: preset_mode: invalid value: {'workMode': 1, 'modeValue': 8}
GoveeLife - 10476074f413d7cc_fan: preset_mode: invalid value: {'workMode': 1, 'modeValue': 7}
GoveeLife - 11c5d4adfce89568_fan: preset_mode: invalid value: {'workMode': 3, 'modeValue': 0}
This error originated from a custom integration.

Logger: custom_components.goveelife.utils
Source: custom_components/goveelife/utils.py:200
integration: Govee Life (documentation)
First occurred: 12:52:54 AM (747 occurrences)
Last logged: 11:49:33 PM

f7b6562921f5c6eca1eddf89fb5a767c - async_GoveeAPI_GetDeviceState: Failed: 'NoneType' object is not subscriptable (builtins.TypeError)
f7b6562921f5c6eca1eddf89fb5a767c - async_GoveeAPI_GetDeviceState: Failed: 'int' object is not subscriptable (builtins.TypeError)
This error originated from a custom integration.

Logger: custom_components.goveelife.switch
Source: custom_components/goveelife/switch.py:122
integration: Govee Life (documentation)
First occurred: 12:53:06 AM (689 occurrences)
Last logged: 11:49:32 PM

GoveeLife - 5bc3a4c138d1f7f4_switch: state: invalid value:
This error originated from a custom integration.

Logger: custom_components.goveelife.utils
Source: custom_components/goveelife/utils.py:142
integration: Govee Life (documentation)
First occurred: 12:52:54 AM (747 occurrences)
Last logged: 11:49:33 PM

f7b6562921f5c6eca1eddf89fb5a767c - async_GoveeAPI_POSTRequest: Too many API request - limit is 10000/Account/Day

I am unsure if that last error about the API request limit is correct or what because I'm getting it constantly but still can control my devices when usually the limits hit I get 0 response from the old Govee integration or if it is true and some how even when I set a much longer time limit on this, it's still reaching the max limit when set from 60 to 300 or the settings not working? I'm unsure.

KyleStilkey commented 3 months ago

Updated to make the error logs readable.