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

Settings for Disable all logs #265

Open
mrykin opened this issue Apr 25, 2021 · 13 comments
Open

Settings for Disable all logs #265

mrykin opened this issue Apr 25, 2021 · 13 comments
Assignees
Labels
enhancement New feature or request

Comments

@mrykin
Copy link

mrykin commented Apr 25, 2021

Please add the settings for disable this logs:

[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":true}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":false}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":true}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":false}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":true}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] Sending Yandex Outlet {"1":false}
[Tuya] Heard back from Yandex Outlet with command 8
[Tuya] setColorTemperature: 232
[Tuya] Sending Hall Lamp 2 {"21":"white","23":389}
[Tuya] Heard back from Hall Lamp 2 with command 8
[Tuya] setColorTemperature: 232
[Tuya] Sending Hall Lamp 2 {"21":"white","23":389}
[Tuya] Heard back from Hall Lamp 2 with command 8
[Tuya] Sending Hall Lamp 2 {"20":false}
[Tuya] Heard back from Hall Lamp 2 with command 8
[Tuya] Sending Bathroom 1 {"20":false}
[Tuya] Sending Bathroom 2 {"20":false}
[Tuya] Heard back from Bathroom 2 with command 8
[Tuya] Heard back from Bathroom 1 with command 8```
@mrykin mrykin added the bug Something isn't working label Apr 25, 2021
@ElphaX
Copy link
Contributor

ElphaX commented Apr 25, 2021

Thanks for this! All logs other than the setColorTemperature should be hidden if you have the latest version of the plugin. A new major update will be out soon that will enable a global debug mode option which otherwise will hide ~99% of messages from this plugin.

@ElphaX ElphaX added enhancement New feature or request and removed bug Something isn't working labels Apr 25, 2021
@ElphaX ElphaX self-assigned this Apr 26, 2021
@mrykin
Copy link
Author

mrykin commented Apr 26, 2021

I have the last version. setColorTemperature - is not hidden.
image

image

I'll wait for the update, thanks!

@rcoletti116
Copy link

rcoletti116 commented May 4, 2021

The latest changes with the log clean up was not published in a release. Last release was 3/25, Log changes were 4/10.

@ElphaX
Copy link
Contributor

ElphaX commented May 4, 2021

I was including beta releases in my comment, nevertheless a public release with several updates are around the corner.

@alejandroeclair
Copy link

alejandroeclair commented May 16, 2021

Please provide us with a way to disable logs, or to change their verbosity to only errors. This is way too much logging...
image

@iRayanKhan
Copy link
Owner

Please provide us with a way to disable logs, or to change their verbosity to only errors. This is way too much logging...

As Edwin has said, an update is being worked on.

You are free to compile the plugin from the master branch yourself, or wait for a beta/release. We're not here to rush out bad updates.

@CGDaveMac
Copy link

Did the debug option not make it into the August release?

@adragan10
Copy link

Wondering the same thing..

@shubhamshah02
Copy link

Please provide us with a way to disable logs, or to change their verbosity to only errors. This is way too much logging...

As Edwin has said, an update is being worked on.

You are free to compile the plugin from the master branch yourself, or wait for a beta/release. We're not here to rush out bad updates.

Is this update out yet?

@jfmach
Copy link

jfmach commented Jun 29, 2022

@shubhamshah02 @adragan10 @CGDaveMac @alejandroeclair @rcoletti116 @mrykin FYI you can just change the code to hide the messages you do not want, as follows:

  1. Navigate to the module's library folder (mine is /usr/local/lib/node_modules/homebridge-tuya/lib/)
  2. Edit file TuyaAccessory.js
  3. Comment all log entries you want to get rid of (Tuya DEBUG is a good start) by adding // at the beginning of the line of code. For instance:
    //console.log(`[Tuya DEBUG] reconnect called for ${this.context.name}`);
  4. Restart homebridge

@dibsies
Copy link

dibsies commented Jul 26, 2022

^I will check this out. Thank you.

Does anyone know if this plugin been abandoned? It's been over a year since there have been any updates and it looks like this disable log function was never implemented.

@dibsies
Copy link

dibsies commented Jul 28, 2022

I think a ton of the logging I see comes from the bulbs tracking daylight color temps through the day. Is there any way to disable that? Example:

[Tuya] Heard back from Entry 3 with command 8 [Tuya] Heard back from Entry 1 with command 8 [Tuya] Heard back from Hall 2 with command 8 [Tuya] Heard back from Chandelier 2 with command 8 [Tuya] setColorTemperature: 215 [Tuya] Sending Chandelier 1 {"21":"white","23":440} [Tuya] Heard back from Chandelier 1 with command 8 [Tuya] setColorTemperature: 215 [Tuya] Sending Paseo 2 {"21":"white","23":440} [Tuya] setColorTemperature: 215 [Tuya] Sending Paseo 1 {"21":"white","23":440} [Tuya] setColorTemperature: 292 [Tuya] Sending Hall 1 {"21":"white","23":155} [Tuya] setColorTemperature: 215 [Tuya] Sending Chandelier 4 {"21":"white","23":440} [Tuya] setColorTemperature: 215 [Tuya] Sending Entry 2 {"21":"white","23":440} [Tuya] Heard back from Paseo 2 with command 8 [Tuya] Heard back from Paseo 1 with command 8 [Tuya] Heard back from Hall 1 with command 8 [Tuya] Heard back from Entry 2 with command 8 [Tuya] Heard back from Chandelier 4 with command 8 [Tuya] setColorTemperature: 215 [Tuya] Sending Chandelier 5 {"21":"white","23":440} [Tuya] setColorTemperature: 215 [Tuya] Sending Chandelier 3 {"21":"white","23":440} [Tuya] Heard back from Chandelier 5 with command 8 [Tuya] Heard back from Chandelier 3 with command 8 [Tuya] setColorTemperature: 215 [Tuya] Sending Entry 1 {"21":"white","23":440} [Tuya] setColorTemperature: 215 [Tuya] Sending Entry 3 {"21":"white","23":440} [Tuya] setColorTemperature: 215 [Tuya] Sending Chandelier 2 {"21":"white","23":440} [Tuya] setColorTemperature: 292 [Tuya] Sending Hall 2 {"21":"white","23":155} [Tuya] Heard back from Entry 3 with command 8

@05TEVE
Copy link
Collaborator

05TEVE commented Jan 16, 2024

Reviving a slightly old post :) I have pushed a fix for this in 3.1.0 (beta is published to NPM with this ready for testing).
Debug logging can be toggled on using the Debug toggle from the homebridge UI.

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

No branches or pull requests