Skip to content
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

Disable / Silent logging output #27

Open
magenbrot opened this issue Jun 3, 2021 · 2 comments
Open

Disable / Silent logging output #27

magenbrot opened this issue Jun 3, 2021 · 2 comments

Comments

@magenbrot
Copy link

Hey!
thank you for developing this integration. It's very useful for me.

I only have a small problem currently. I can't reduce the log messages that this integration writes in the homeassistant logfile.

My default log level is "info". Additionally I tried reducing the log level for this integration to 'warn'.

default: info
logs:
  custom_components.midea_dehumidifier: warn
  custom_components.midea_dehumidifier.humidifier: warn
  custom_components.humidifier.midea_dehumidifier: warn
  custom_components.sensor.midea_dehumidifier: warn

However I still get the following messages:

2021-06-03 09:40:50 INFO (SyncWorker_57) [root] MideaClient::send_api_request: response_status=200, response_reason=OK
2021-06-03 09:40:50 INFO (SyncWorker_57) [root] fcCon: Current humidity reported by device = 51
2021-06-03 09:40:50 INFO (SyncWorker_57) [root] MideaClient::get_device_status: DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:41:49 INFO (SyncWorker_14) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:42:49 INFO (SyncWorker_55) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:43:49 INFO (SyncWorker_63) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:44:49 INFO (SyncWorker_62) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:45:49 INFO (SyncWorker_7) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=51, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:46:50 INFO (SyncWorker_16) [root] MideaClient::send_api_request: response_status=200, response_reason=OK
2021-06-03 09:46:50 INFO (SyncWorker_16) [root] fcCon: Current humidity reported by device = 52
2021-06-03 09:46:50 INFO (SyncWorker_16) [root] MideaClient::get_device_status: DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=52, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:46:50 INFO (MainThread) [homeassistant.components.automation.device_mideadehumidifier_fan_speed_change] DEVICE - MideaDehumidifier - fan speed change: Running automation actions
2021-06-03 09:46:50 INFO (MainThread) [homeassistant.components.automation.device_mideadehumidifier_fan_speed_change] DEVICE - MideaDehumidifier - fan speed change: Executing step call service
2021-06-03 09:46:50 INFO (MainThread) [homeassistant.components.automation.device_mideadehumidifier_mideadehumidifier_mode_change] DEVICE - MideaDehumidifier - MideaDehumidifier mode change: Running automation actions
2021-06-03 09:46:50 INFO (MainThread) [homeassistant.components.automation.device_mideadehumidifier_mideadehumidifier_mode_change] DEVICE - MideaDehumidifier - MideaDehumidifier mode change: Executing step call service
2021-06-03 09:47:49 INFO (SyncWorker_24) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=52, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]
2021-06-03 09:48:49 INFO (SyncWorker_29) [root] MideaClient::get_device_status (cached): DeHumidification [powerMode=0, mode=3, Filter=False, Water tank=False, Current humidity=52, Current humidity (decimal)=0, Wind speed=80, Set humidity=45, Set humidity (decimal)=0, ionSetSwitch=0, isDisplay=True, dryClothesSetSwitch=0, Up&Down Swing=0]

Any idea how I can turn those off?

@dellorogiulio
Copy link

Hi @magenbrot , I recently forked both hacs and python repo to fix this annoying problem and to reduced the polling rate from 5 to 1 minute. If you wanna try (I use this version already, you can look for the EVA II PRO WiFi Midea Inventor Dehumidifier custom integration V2 directly the HACS integrations.
Please make sure to link my repository and not the original one.

@barban-dev
Copy link
Owner

The next release of this integration will be linked to a less verbose version of the python library (v.1.0.7).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants