-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home assistant log errors when device disconnected #3
Comments
Yeah this definitely need addressing somehow as this really fills the logs unnecessarily exactly every minute, if the device gets unplugged. Perhaps changing the components log level will avoid spamming the log 2020-10-29 00:37:19 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:38:15 ERROR (SyncWorker_23) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:38:15 ERROR (SyncWorker_23) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:38:15 ERROR (SyncWorker_23) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:38:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:39:15 ERROR (SyncWorker_35) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:39:15 ERROR (SyncWorker_35) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:39:15 ERROR (SyncWorker_35) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:39:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:40:15 ERROR (SyncWorker_3) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:40:15 ERROR (SyncWorker_3) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:40:15 ERROR (SyncWorker_3) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:40:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:41:15 ERROR (SyncWorker_47) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:41:15 ERROR (SyncWorker_47) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:41:15 ERROR (SyncWorker_47) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:41:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:42:15 ERROR (SyncWorker_49) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:42:15 ERROR (SyncWorker_49) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:42:15 ERROR (SyncWorker_49) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:42:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:43:15 ERROR (SyncWorker_27) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:43:15 ERROR (SyncWorker_27) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:43:15 ERROR (SyncWorker_27) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:43:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:44:15 ERROR (SyncWorker_25) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:44:15 ERROR (SyncWorker_25) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:44:15 ERROR (SyncWorker_25) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:44:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:45:15 ERROR (SyncWorker_53) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:45:15 ERROR (SyncWorker_53) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:45:15 ERROR (SyncWorker_53) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:45:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:46:15 ERROR (SyncWorker_4) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:46:15 ERROR (SyncWorker_4) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:46:15 ERROR (SyncWorker_4) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:46:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:47:15 ERROR (SyncWorker_24) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:47:15 ERROR (SyncWorker_24) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:47:15 ERROR (SyncWorker_24) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:47:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:48:15 ERROR (SyncWorker_53) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:48:15 ERROR (SyncWorker_53) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:48:15 ERROR (SyncWorker_53) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:48:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:49:15 ERROR (SyncWorker_34) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:49:15 ERROR (SyncWorker_34) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:49:15 ERROR (SyncWorker_34) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:49:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:50:15 ERROR (SyncWorker_30) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:50:15 ERROR (SyncWorker_30) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:50:15 ERROR (SyncWorker_30) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:50:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:51:15 ERROR (SyncWorker_0) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:51:15 ERROR (SyncWorker_0) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:51:15 ERROR (SyncWorker_0) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:51:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:52:15 ERROR (SyncWorker_6) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:52:15 ERROR (SyncWorker_6) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:52:15 ERROR (SyncWorker_6) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:52:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:53:15 ERROR (SyncWorker_55) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:53:15 ERROR (SyncWorker_55) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:53:15 ERROR (SyncWorker_55) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:53:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:54:15 ERROR (SyncWorker_25) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:54:15 ERROR (SyncWorker_25) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:54:15 ERROR (SyncWorker_25) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:54:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:55:15 ERROR (SyncWorker_60) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:55:15 ERROR (SyncWorker_60) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:55:15 ERROR (SyncWorker_60) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:55:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:56:15 ERROR (SyncWorker_46) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:56:15 ERROR (SyncWorker_46) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:56:15 ERROR (SyncWorker_46) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:56:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:57:15 ERROR (SyncWorker_1) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:57:15 ERROR (SyncWorker_1) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:57:15 ERROR (SyncWorker_1) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:57:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:58:15 ERROR (SyncWorker_17) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:58:15 ERROR (SyncWorker_17) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:58:15 ERROR (SyncWorker_17) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:58:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 00:58:46 ERROR (Thread-7) [homeassistant.components.cast.media_player] Failed to cast media http://192.168.1.245:8889/. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2020-10-29 00:59:15 ERROR (SyncWorker_20) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 00:59:15 ERROR (SyncWorker_20) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 00:59:15 ERROR (SyncWorker_20) [root] MideaClient::get_device_status: invalid API response
2020-10-29 00:59:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:00:15 ERROR (SyncWorker_24) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:00:15 ERROR (SyncWorker_24) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:00:15 ERROR (SyncWorker_24) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:00:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:01:15 ERROR (SyncWorker_21) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:01:15 ERROR (SyncWorker_21) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:01:15 ERROR (SyncWorker_21) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:01:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:02:15 ERROR (SyncWorker_9) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:02:15 ERROR (SyncWorker_9) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:02:15 ERROR (SyncWorker_9) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:02:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:03:15 ERROR (SyncWorker_26) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:03:15 ERROR (SyncWorker_26) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:03:15 ERROR (SyncWorker_26) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:03:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:04:15 ERROR (SyncWorker_62) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:04:15 ERROR (SyncWorker_62) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:04:15 ERROR (SyncWorker_62) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:04:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:05:15 ERROR (SyncWorker_52) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:05:15 ERROR (SyncWorker_52) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:05:15 ERROR (SyncWorker_52) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:05:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:06:15 ERROR (SyncWorker_19) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:06:15 ERROR (SyncWorker_19) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:06:15 ERROR (SyncWorker_19) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:06:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:07:15 ERROR (SyncWorker_48) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:07:15 ERROR (SyncWorker_48) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:07:15 ERROR (SyncWorker_48) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:07:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:08:15 ERROR (SyncWorker_59) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:08:15 ERROR (SyncWorker_59) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:08:15 ERROR (SyncWorker_59) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:08:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:09:15 ERROR (SyncWorker_53) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:09:15 ERROR (SyncWorker_53) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:09:15 ERROR (SyncWorker_53) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:09:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:10:15 ERROR (SyncWorker_50) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:10:15 ERROR (SyncWorker_50) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:10:15 ERROR (SyncWorker_50) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:10:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR.
2020-10-29 01:11:15 ERROR (SyncWorker_3) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line."
2020-10-29 01:11:15 ERROR (SyncWorker_3) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
2020-10-29 01:11:15 ERROR (SyncWorker_3) [root] MideaClient::get_device_status: invalid API response
2020-10-29 01:11:15 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR. |
I have the exact same issue however i think it is related with the lib and not the custom component. |
I have the exact same issue too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
thanks for developing this HA custom component. It works well with my Comfee MDDF-20DEN7-WF dehumidifier.
There is one issue though: when the device is disconnected from the network (e.g. when not plugged into power outlet or when there are wifi issues) then home assistant logs the following errors which are repeated every minute or so:
Sep 27 10:33:05 raspi4 hass[24343]: 2020-09-27 10:33:05 ERROR (SyncWorker_41) [root] MideaClient::get_device_status: invalid API response Sep 27 10:33:05 raspi4 hass[24343]: 2020-09-27 10:33:05 ERROR (MainThread) [custom_components.midea_dehumidifier.humidifier] midea-dehumidifier: get_device_status ERROR. Sep 27 10:34:05 raspi4 hass[24343]: 2020-09-27 10:34:05 ERROR (SyncWorker_49) [root] MideaClient::send_api_request: errorCode=3123, errorMessage="the appliance is off line." Sep 27 10:34:05 raspi4 hass[24343]: 2020-09-27 10:34:05 ERROR (SyncWorker_49) [root] MideaClient::appliance_transparent_send: result=ERROR in API response: result key not found
and if the device was online before, the sensor values sensor.midea_dehumidifier_xxxxxxxxxxxxx_humidity, sensor.midea_current_humidity and sensor.midea_target_humidity keep their states and do not change to 'not available' or 'unknown'. When restarting home assistant the sensor states change reflecting that the device is disconnected. The log errors keep showing up.
Is there a way to handle the disconnected state in a way home assistant typically does it? I mean unavailable sensors are shown as unavailable until they connect or reconnect. The number of error messages should be reduced as well so that they don't flood the logs.
I'm not a great programmer so I don't know how much I'm asking for, hopefully not a whole lot.
Thanks
The text was updated successfully, but these errors were encountered: