simeonovp / node-red-contrib-tuya-devices

Support for Tuya devices in SmartHome projects using Node-RED. The goal of the project is to allow using local devices supports Tuya in Node-Red
MIT License
6 stars 1 forks source link

Can't retrieve dps 17 on smart socket #4

Open arenagabriel opened 3 months ago

arenagabriel commented 3 months ago

With WIFI smart sockets (Aubess Smart Socket 20A/EM & 电量计量插座), I can't retrieve dps 17 (add_elec in kwh) with refresh operation.

Every minute, I inject a message with operation = "REFRESH". For the two devices, I can retrieve dps 19 (power) refreshed correctly. Device nodes are set with datapoint 19 and single output. On device logs in platform.tuya.com, I can see the report every minute. Same configuration with datapoint 17 don't work. And I can't see report every minute on device logs.

With smart life application, energy in kwh is visible. In platform.tuya.com, I can see report on dps 17 every 30 min. So I think the device send correctly dps 17, and so, it is not calculated by the application.

So, for the nodered module, operation refresh with a device node can be used for every dps ? Should I send dps expected in payload ? (with some test, it seems not to work).