Elimination of useless error messages at each connection attempt (also every 2 s) as in the figure:
New command, to fix the problem posed by verbose devices (see ISSUE#96).
COMMAND: SET_DATA_EVENT, values: event-data|event-dp-refresh|both. The command can be sent at any time to manage data reception.
Anonymization of the log: eliminated Tuya ID and Key from the log, filtered config node-red data.
better handling of CONNECT/DISCONNECT/RECONNECT: more fast, initial 'UNCONNECTED' msg, etc.
I hope that helps someone with the same problems as me.
m.s.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The
node-red-contib-tuya-smart-device
V. 5.1.0 uses tuyAPI 7.5.1 (last tuyAPI ves. 7.5.2, 24/03/2023) and it is very similar to the previous 5.0.1.As usual, I use in production an enhanced version (see pull request#115), which is not attached as usual, but you can download it from here.
Replace only the file
<nodered>\node_modules\node-red-contrib-tuya-smart-device\src\tuya-smart-device.js
I summarize the main points (see also ISSUE#83):
New command, to fix the problem posed by verbose devices (see ISSUE#96).
COMMAND: SET_DATA_EVENT, values:
event-data
|event-dp-refresh
|both
.The command can be sent at any time to manage data reception.
Anonymization of the log: eliminated
Tuya ID
andKey
from the log, filteredconfig
node-red data.better handling of
CONNECT
/DISCONNECT
/RECONNECT
: more fast, initial 'UNCONNECTED' msg, etc.I hope that helps someone with the same problems as me. m.s.