vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
47 stars 15 forks source link

Tuning node-red-contib-tuya-smart-device V. 5.1.0 #118

Closed msillano closed 1 year ago

msillano commented 1 year ago

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):

  1. Elimination of useless error messages at each connection attempt (also every 2 s) as in the figure:

opera_DoZCsHDLqD

  1. 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.

  2. Anonymization of the log: eliminated Tuya ID and Key from the log, filtered config node-red data.

  3. 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.

stale[bot] commented 1 year ago

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.

stale[bot] commented 1 year ago

Auto closing the issue