Open fmarzocca opened 5 months ago
Do you need to reduce the Log or the data throughput? Usually, the log is not a problem: I copy-paste the log to an editor (Notepad++), and then... The unique solution for the log is to customize the code by adding a filter based on the ID that leads to the decimation of messages.
But, I see from messages that you have a serious CONNECTION problem. Usually, any device sends only one CONNECTION message at the start! Or (alternative) the device is intentionally disconnected and you want to reduce messages? See ISSUE#83. One (partial) solution is to use a dynamic connection interval mechanism. For example, see 'dynamic retry' here: https://github.com/msillano/tuyaDAEMON/wiki/20.-ver.-2.0--milestones#devices-control
About the data throughput (I have devices that send data every second !) some options are presented here: https://github.com/msillano/tuyaDEAMON-applications/tree/main/daemon.energy#step-1-fine-tuning-tuyadeamon Best regards.
Hi Marco,
no, the problem is the log which gets full of "tuya" lines. I am used to watch and verify the log daily, and those hundreds of lines keep me confused.
I have this problem too. I have a device that is not always connected to the socket, and nodered is retrying to connect. It is not needed to log every connection error, maybe only once when device goes offline.
I send to logs to a graylog server and it fills the storage / mess the stats. I miss real error messages
If this cannot be fixed, I must remove the palette as I am missing important NodeRed messages. Can't continue like this.
I get spammed with messages like this. Can not find where this is in the source code:
"Error: Error from socket: connect EHOSTUNREACH 192.168.x.x:6668"
There are also
"Device not connected. Can't send the GET commmand"
but is not that frequent
Both errors are fine, sometimes it is OK if the device is unplugged
I noticed that this palette is cluttering too much the log. I have hundreds of these lines:
Is there a way to reduce the logging of the palette?